Mobile devices with various methods of connectivity are now for many people becoming the primary gateway to the internet and also a major storage point for personal information. This is in addition to the normal range of personal computers and furthermore sensor devices plus internet based providers. Combining these devices together and lately the applications and the information stored by those applications is a major challenge of interoperability. This can be achieved through numerous, individual and personal information spaces in which persons, groups of persons, etc. can place, share, interact and manipulate webs of information with their own locally agreed semantics without necessarily conforming to an unobtainable, global whole. These information spaces, often referred to as smart spaces, are extensions of the ‘Giant Global Graph’ in which one can apply semantics and reasoning at a local level.
In one embodiment, information spaces are working spaces embedded with distributed infrastructures spanned around computers, information appliances, and sensors that allow people to work efficiently through access to information from computers or other devices. An information space can be rendered by the computation devices physically presented as heterogeneous networks (wired and wireless). However, despite the fact that information presented by information spaces can be distributed with different granularity, still there are challenges to achieve scalable high context information processing within heterogeneous environments such as Nokia's Mobile Clouds®. One such challenge is to create adaptive computation platforms to enhance the information processing power of a device as it interacts with various external information processors.
Therefore, there is a need for an approach for creating adaptive computation platforms to provide granular and reflective process migration in combination with information processors.
According to one embodiment, a method comprises identifying an execution context bound to a user context at a device, the execution context corresponding to one or more processes executing at the device. The method also comprises causing, at least in part, decomposition of the execution context into one or more closure primitives and respective process states, wherein the one or more closure primitives represent computation closures of the one or more processes. The method further comprises causing, at least in part, serialization of the one or more closure primitives, the process states, or a combination thereof.
According to another embodiment, an apparatus comprising at least one processor, and at least one memory including computer program code, the at least one memory and the computer program code configured to, with the at least one processor, cause, at least in part, the apparatus to identify an execution context bound to a user context at a device, the execution context corresponding to one or more processes executing at the device. The apparatus is also caused to cause, at least in part, decomposition of the execution context into one or more closure primitives and respective process states, wherein the one or more closure primitives represent computation closures of the one or more processes. The apparatus is further caused to cause, at least in part, serialization of the one or more closure primitives, the process states, or a combination thereof.
According to another embodiment, a computer-readable storage medium carrying one or more sequences of one or more instructions which, when executed by one or more processors, cause, at least in part, an apparatus to identify an execution context bound to a user context at a device, the execution context corresponding to one or more processes executing at the device. The apparatus is also caused to cause, at least in part, decomposition of the execution context into one or more closure primitives and respective process states, wherein the one or more closure primitives represent computation closures of the one or more processes. The apparatus is further caused to cause, at least in part, serialization of the one or more closure primitives, the process states, or a combination thereof.
According to another embodiment, an apparatus comprises means for identifying an execution context bound to a user context at a device, the execution context corresponding to one or more processes executing at the device. The apparatus also comprises means for causing, at least in part, decomposition of the execution context into one or more closure primitives and respective process states, wherein the one or more closure primitives represent computation closures of the one or more processes. The apparatus further comprises means for causing, at least in part, serialization of the one or more closure primitives, the process states, or a combination thereof.
According to another embodiment, a method comprises retrieving one or more closure primitives and respective process states from a storage, the one or more closure primitives representing at least a portion of a set of closure primitives comprising an execution context corresponding to one or more processes. The method also comprises causing, at least in part, locking of the one or more closure primitives in the storage. The method further comprises determining a consistency of the one or more closure primitives. The method also comprises causing, at least in part, aggregation of the one or more primitives and the respective process states to reconstruct at least a portion of the execution context based, at least in part, on the consistency determination.
According to another embodiment, an apparatus comprising at least one processor, and at least one memory including computer program code, the at least one memory and the computer program code configured to, with the at least one processor, cause, at least in part, the apparatus to retrieve one or more closure primitives and respective process states from a storage, the one or more closure primitives representing at least a portion of a set of closure primitives comprising an execution context corresponding to one or more processes. The apparatus is also caused to cause, at least in part, locking of the one or more closure primitives in the storage. The apparatus is further caused to determine a consistency of the one or more closure primitives. The apparatus is also caused to cause, at least in part, aggregation of the one or more primitives and the respective process states to reconstruct at least a portion of the execution context based, at least in part, on the consistency determination.
According to another embodiment, a computer-readable storage medium carrying one or more sequences of one or more instructions which, when executed by one or more processors, cause, at least in part, an apparatus to retrieve one or more closure primitives and respective process states from a storage, the one or more closure primitives representing at least a portion of a set of closure primitives comprising an execution context corresponding to one or more processes. The apparatus is also caused to cause, at least in part, locking of the one or more closure primitives in the storage. The apparatus is further caused to determine a consistency of the one or more closure primitives. The apparatus is also caused to cause, at least in part, aggregation of the one or more primitives and the respective process states to reconstruct at least a portion of the execution context based, at least in part, on the consistency determination.
According to another embodiment, an apparatus comprises means for retrieving one or more closure primitives and respective process states from a storage, the one or more closure primitives representing at least a portion of a set of closure primitives comprising an execution context corresponding to one or more processes. The apparatus also comprises means for causing, at least in part, locking of the one or more closure primitives in the storage. The apparatus further comprises means for determining a consistency of the one or more closure primitives. The apparatus also comprises means for causing, at least in part, aggregation of the one or more primitives and the respective process states to reconstruct at least a portion of the execution context based, at least in part, on the consistency determination.
Still other aspects, features, and advantages of the invention are readily apparent from the following detailed description, simply by illustrating a number of particular embodiments and implementations, including the best mode contemplated for carrying out the invention. The invention is also capable of other and different embodiments, and its several details can be modified in various obvious respects, all without departing from the spirit and scope of the invention. Accordingly, the drawings and description are to be regarded as illustrative in nature, and not as restrictive.
The embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings:
Examples of a method, apparatus, and computer program for construction and aggregation distributed computations are disclosed, where the computations can be processed reflectively. In the following description, for the purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the invention. It is apparent, however, to one skilled in the art that the embodiments of the invention may be practiced without these specific details or with an equivalent arrangement. In other instances, well-known structures and devices are shown in block diagram form in order to avoid unnecessarily obscuring the embodiments of the invention.
As used herein, the term “information space” or “smart space” refers to an aggregated information set from different sources. This multi-sourcing is very flexible since it accounts and relies on the observation that the same piece of information can come from different sources. For example, the same information (e.g., contact information for a particular contact) can appear in the same information space from multiple sources (e.g., a locally stored contacts database, a public directory, a work contact database, etc.). In one embodiment, information within the information space or smart space is represented using Semantic Web standards such as Resource Description Framework (RDF), RDF Schema (RDFS), OWL (Web Ontology Language), FOAF (Friend of a Friend ontology), rule sets in RuleML (Rule Markup Language), etc. Furthermore, as used herein, RDF refers to a family of World Wide Web Consortium (W3C) specifications originally designed as a metadata data model. It has come to be used as a general method for conceptual description or modeling of information that is implemented in web resources; using a variety of syntax formats. Although various embodiments are described with respect to information spaces and RDF, it is contemplated that the approach described herein may be used with other structures and conceptual description methods used to create models of information.
As used herein, the term reflective computing refers to the capability of a system to reason or act upon itself. A reflective system is a system that provides a representation of its own behavior which is amenable to inspection and adaptation. Reflection enables both inspection and adaptation of systems at run time. Inspection allows the current state of the system to be observed while adaptation allows the system's behavior to be altered at run time to better. Although various embodiments are described with respect to reflective computing, it is contemplated that the approach described herein may be used with other computation systems and architectures
The basic concept of information space technology provides access to distributed information for various devices within the scope of the information space, in such a way that the distributed nature of the information is hidden from users and it appears to a user as if all the accessed information is stored on the same device. The information space also enables a user to have control over information distribution by transferring information between devices that the user has access to. For example, a user may want to transfer information among work devices, home devices, and portable devices. Current technologies enable a user of a mobile device to manipulate contexts such as data and information via the elements of a user interface of their user equipment. However, a user does not have control over the distribution of computations and processes related to or acting on the data and information within the information space. In other words, an information space in general does not provide a user (e.g., an owner of a collection of information distributed over the information space) with the ability to control distribution of related computations and processes of, for instance, applications acting on the information. For example, a contact management application that processes contact information distributed within one or more information spaces generally executes on a single device (e.g., with all processes and computations of the application also executing on the same device) to operate on the distributed information. In some cases (e.g., when computations are complex, the data set is large, etc.), providing a means to also distribute the related computations in addition to the information space is advantageous.
In order to achieve this goal, a system 100 of
In one embodiment, each high context set of computations can be represented as closed sets of processes (e.g. transitive closures) such that closures can be executed separately (e.g. through distributed processing equipments). The transitive closures can be traversed in order to present the granular reflective processes attached to each particular execution context. The mechanism of system 100 provides distributed deductive closures as a recyclable set of pre-computed, computation closures that can be distributed among various devices and infrastructures or being shared among the users of one or more information space by being stored on any storage locations related to the information spaces. Furthermore, the mechanism provides user with visual programming as fragments of computation, where each representation on the user interface can be bound to the computation closure it is based on.
As shown in
The UEs 107a-107i are any type of mobile terminal, fixed terminal, or portable terminal including a mobile handset, station, unit, device, multimedia computer, multimedia tablet, Internet node, communicator, desktop computer, laptop computer, notebook computer, netbook computer, tablet computer, Personal Digital Assistants (PDAs), audio/video player, digital camera/camcorder, positioning device, television receiver, radio broadcast receiver, electronic book device, game device, or any combination thereof, including the accessories and peripherals of these devices, or any combination thereof. It is also contemplated that the UE 107a-107i can support any type of interface to the user (such as “wearable” circuitry, etc.).
In one embodiment, the UEs 107a-107i are respectively equipped with one or more user interfaces (UI) 109a-109i. Each UI 109a-109i may consist of several UI elements (not shown) at any time, depending on the service that is being used. UI elements may be icons representing user contexts such as information (e.g., music information, contact information, video information, etc.), functions (e.g., setup, search, etc.) and/or processes (e.g., download, play, edit, save, etc.). Additionally, each UI element may be bound to a context/process by granular migration. In one embodiment, granular migration enables processes to be implicitly or explicitly migrated between devices, information spaces, and other infrastructure. The process migration can be initiated for example by means of single-cast (e.g., to just another UE 107) or multicast (e.g., to multiple other UEs 107). Additionally, process migration may be triggered via gesture recognition, wherein the user preselects a particular set of UI elements and makes a gesture to simulate “pouring” the selected UE elements from one device to another.
As seen in
In one embodiment, the distributed computation construction infrastructure 103 consists of information about computations 117a and processes 119a-119k for each UE 107a-107i. The information may include information such as input parameters, input types and formats, output types and formats, process structure, flow of data, communication means and parameter passing among processes 119a-119k, etc.
The computations information enables a UE 107a-107i to divide computations into their primary computation closures, wherein each computation closure can be executed separately from other computation closures belonging to the same computation. For example, computations related to a music download may be divided into a search process for finding the most suitable download site, an verification process to determine whether the user is eligible for downloading from the site, an initialization process for verifying adequate resource (e.g. storage space) for the file to be downloaded, a process for verifying the type of the music file and associated playing environment, a process for determining whether the player is available on the UE 107, a process to activate the player after completion of the download, etc. In one embodiment, these processes or the computation closure derived from the processes may be executed independently from each other. Following execution of the independent processes, the data and parameters resulting from the execution can be exchanged to be able to aggregate results and make operation of the music application available in an information space environment. Moreover, division of the music-related computations into independent processes may vary based on factors such characteristics of the UE, restrictions of the download site, the music file type, the player type and requirements, etc. In one embodiment, division of computations into their primary processes or computation closures is managed by the distributed computation construction infrastructure 103. In addition, when the computation closures are serialized into, for instance, an information syntax such as RDF triples and stored via an information space, the information space incorporating the serialized computation closures are also known as a computation space.
By way of example, the UEs 107a-107i of sets 101a-101n, distributed computation construction infrastructure 103, and the information spaces 113a-113n communicate with each other and other components of the communication network 105 using well known, new or still developing protocols. In this context, a protocol includes a set of rules defining how the network nodes within the communication network 105 interact with each other based on information sent over the communication links. The protocols are effective at different layers of operation within each node, from generating and receiving physical signals of various types, to selecting a link for transferring those signals, to the format of information indicated by those signals, to identifying which software application executing on a computer system sends or receives the information. The conceptually different layers of protocols for exchanging information over a network are described in the Open Systems Interconnection (OSI) Reference Model.
Communications between the network nodes are typically effected by exchanging discrete packets of data. Each packet typically comprises (1) header information associated with a particular protocol, and (2) payload information that follows the header information and contains information that may be processed independently of that particular protocol. In some protocols, the packet includes (3) trailer information following the payload and indicating the end of the payload information. The header includes information such as the source of the packet, its destination, the length of the payload, and other properties used by the protocol. Often, the data in the payload for the particular protocol includes a header and payload for a different protocol associated with a different, higher layer of the OSI Reference Model. The header for a particular protocol typically indicates a type for the next protocol contained in its payload. The higher layer protocol is said to be encapsulated in the lower layer protocol. The headers included in a packet traversing multiple heterogeneous networks, such as the Internet, typically include a physical (layer 1) header, a data-link (layer 2) header, an internetwork (layer 3) header and a transport (layer 4) header, and various application headers (layer 5, layer 6 and layer 7) as defined by the OSI Reference Model.
The distributed computation construction infrastructure 103 receives a request for computation distribution. In one embodiment, the request may have been generated by a UE 107 based on a user gesture such as for example pushing an icon of the UI 109 towards another UE 107 which may indicate that the user wants the process associated with the icon to be executed in the other UE 107. In another embodiment, the request for computation distribution may be generated by a component of an information space linked to the UE 107, by an independent component having connectivity to the UEs 107 and the information spaces via the communication network 105, or a combination thereof.
In some embodiments, the request for computation distribution may be initiated by determining to detect an event for specifying one or more computation closures for transfer among a first device, a second device, and/or a back end server (e.g., a cloud computing server). It is contemplated that the transfer may either from the first device to second device and/or the back end server, or from the second device and/or the back end server to the device. Further, the event may include a user input directing the distribution, a determination by the distributed computation construction infrastructure 103, a computation or bandwidth load balancing event, a determination of available network or computational resources, and the like.
The request for computation distribution may include information about the computation that is going to be distributed, including input, output, processing requirements, etc. The request may also include information about the origin and the destination of a computation. For example, a user may want to distribute the computations associated with encoding a video file from one format to another (a typically highly processor and resource intensive task). In this example, the video file is stored in the user's information space 115 or otherwise available over the communication network 105 (e.g., downloaded from a source over the Internet), and therefore accessible from the UEs 107. Accordingly, the user may make a manual request to distribute the computations associated with the video encoding to one or more other devices, a backend server, cloud computing components, and/or any other component capable of performing at least a portion of the encoding functions. By way of example, the manual request may be made via a graphical user interface by dragging an icon or other depiction of the computations to command areas depicted in the user interface. These command areas, for instance, may be representative of physical or virtual locations of the other UEs 107 or devices that can support or perform the distributed computations. In other cases, the distribution can be initiated automatically by the system 100 based on one or more criteria via a request generator (not shown) in conjunction with the distributed computation construction infrastructure 103.
In one embodiment, following the receipt of the computation distribution request, the execution context determination module 201 retrieves and analyzes the information regarding the computation and determines the execution components involved in the computation. For the above example, the execution context may include video playing, audio playing, etc and related settings, parameters, memory states, etc. The identified execution context may be stored in a local storage 213, in a storage space associated with the information space 113a-113n, sent directly to the execution content decomposition module 203, or a combination thereof.
In another embodiment, the execution context decomposition module 203 breaks each execution context into its primitive or basic building blocks (e.g., primitive computation closures) or the sub-processes of the whole execution context. For example the video playing execution may be decomposed into computations or processes that support tasks such as, searching for available players, check the compatibility of video file with the players found, select the player, activate the selected player, etc. Each of the decomposed sub-processes may have certain specifications and requirements to effect execution of the processes in an information space 115 or computation space such as input and output medium and type, how parameters or results are to be passed to other processes, runtime environments, etc. In order for a process to be executed in a standalone fashion without being part of a larger process, a computation closure can be generated for the process. A computation closure includes the process and the specifications and requirements associated with the process that can be executed independently for subsequent aggregation.
In one embodiment, the closure definition module 205 generates computation closures for the sub-processes extracted by the execution context decomposition module 203 and stores the closures in the database 213. The stored closures may be used for slicing computations into smaller independent processes to be executed by various available UEs 107a-107i, using the data which may be stored on the distributed information spaces 115a-115j.
In another embodiment the local storage 213 is used for storing cached computation closures from a remote server, wherein a remote server may be any type of backend device having connectivity to the distributed computation construction infrastructure 103 via the information spaces 113 and the communication network 103. The remote server may also be another device such as a UE 107-107n. Additionally, the local storage 213 may contain local computation closures which may not be completely synchronized with the rest of the devices and utilized only locally.
In yet another embodiment, the closure serialization module 207 utilizes the defined closures by closure definition module 205 and produces the serialized granular computation elements.
In one embodiment, the closure serialization may be generated and stored using Resource Description Framework (RDF) format. RDF is a family of World Wide Web Consortium (W3C) specifications originally designed as a metadata data model. It has come to be used as a general method for conceptual description or modeling of information that is implemented in web resources; using a variety of syntax formats. The underlying structure of any expression in RDF is a collection of triples, each consisting of three disjoint sets of nodes including a subject, a predicate and an object. A subject is an RDF URI reference (U) or a Blank Node (B), a predicate is an RDF URI reference (U), and an object is an RDF URI reference (U), a literal (L) or a Blank Node (B). A set of such triples is called an RDF graph. Table 1 shows an example RDF graph structure.
The granularity may be achieved by the basic format of operation (e.g. RDF) within the specific computation environment. Furthermore, the reflectivity of processes (i.e. the capability of processes to provide a representation of their own behavior to be used for inspection and/or adaptation) may be achieved by encoding the behavior of the computation in RDF format. Additionally, the context may be assumed to be partly predetermined and stored as RDF in the information space and partly be extracted from the execution environment. It is noted that the RDF structures can be seen as subgraphs, RDF molecules (i.e., the building block of RDF graphs) or named graphs in the semantic information broker (SIB) of information spaces.
In certain embodiments serializing the closures associated with a certain execution context enables the closures to be freely distributed among multiple UEs 107 and/or devices including remote processors associated with the UEs 107 by one or more user information spaces 113a-113n via the communication network 105. The processes of closure assigning and migration to run-time environments may be performed automatically based on factors such as the required processing power for each process, system load, capabilities of the available run-time environments, etc. Following the migration of each computation closure to its designated run-time environment, the run-time environment may communicate with the distributed computation construction infrastructure 103 regarding the receipt of the closures through components referred to as agents. Upon receiving the communication from an agent, closure consistency determination module 209 verifies the consistency of the closures which, as explained before, are in RDF graph format. The consistency verification ensures that the computation closure content for each closure is accurate, contains all the necessary information for execution, the flow of data and instructions is correct according to the original computation and has not been damaged during the serialization and migration process. If the closures pass the consistency check or is otherwise approved, per step 211, the closure aggregation module 211 reconstructs each component of the execution context based on the content of the computation closures. Once an execution context is reconstructed, the agents of the run-time environment can resume the execution of the execution context component that it initially received as computation closures in RDF format. In one embodiment, the resumption of the execution may be combined with one or more other results of other executions of at least a portion of the execution context.
In one embodiment, per step 301, the distributed computation construction infrastructure 103, identifies a user context. A user context as used herein refers to the type of activity that user is conducting on one or more UEs. A user context may be listening to music, talking on the phone, text messaging, playing a game, working with an application, etc. In step 303 the execution context determination module 201 determines a collection of executions and processes associated with the user context. Depending on the type of a user context various processes and executions may be performed. For example, playing a game may involve processes such as audio/visual presentation, search, etc. In step 305 the execution context decomposition module 203 breaks the execution context into smaller processes that can be executed independently and their combination may reconstruct the original execution context. The closure definition module 205 receives the decomposed processes and generates computation closures equivalent of each process. Each closure is a standalone process that can be executed independently from the other closures. Following the definition of computation closures, the closure serialization module 207 serializes the closures according to an information syntax format. By way of example, the serialization process may include identification of factors such as input, output, parameter exchange, hardware requirements that are required for proper execution of a process. The factors may be linked, attached or assigned to the closure to be further utilized for the execution. A serialized closure is ready for migration to the desired run-time environment.
If the consistency is not approved, the closure aggregation module 211 may report the error to the execution context decomposition module 203 per step 409 and request correction. In one embodiment, upon receiving the alert, the execution context decomposition module 203 may investigate the reason for occurrence of the error. Once the reason is detected, the execution context decomposition module 203 may take action for resolving the issue, for example by restarting the whole process of context decomposition process. The closure consistency determination module may alert the closure definition module if the issue is a closure definition error, or may initiate requesting process related information from related resources to ensure that the initially received process requirements were accurate. In one embodiment, each module of the distributed computation construction infrastructure 103 may verify its own previous results for accuracy. In another embodiment, a separate module may be added for troubleshooting.
If the closure consistency is approved, per step 411 the closure aggregation module 211 aggregates the primitive closures and utilizes the related requirements and information such as respective process starts to reconstruct the original execution context or a portion of the context. This is because the execution context may have been decomposed into several parts in step 305 and each decomposed part may have been serialized into a set of one or more computation closures per step 307. Therefore, each serialized set of closures may have been migrated to and executed by a different run-time environment. The execution of aggregated closures may then be resumed by the agents of each run-time environment.
It is noted that the standalone property of computation closures shows that the closures are transitive meaning that the results of execution of one or more processes from a closure will also be a member of the closure.
It is noted that a communications medium can be physical or logical/virtual, but all managed by an information management infrastructure (not shown) as virtual run-time environment high-context information (information processing context is seen as snapshot in the form of sub-graph). The sharing of the user and execution contexts and reflective process execution of the application on KP 711a-711n of UE 107b is managed by the information management infrastructure. The information management infrastructure 103 shares and provides reasoning about user and execution contexts between UE 107a and UE 107b with SIBs 601 and 607. For example UE 107a may be a mobile wireless device and UE 107b may be a stationary wireless device.
The distributed computation construction infrastructure 103 enables decomposition and aggregation of user and execution context information and scheduling of the run-time environment. This enables changes to be made to one or more user contexts 707 and 719 and execution contexts (not shown). Changes to user and execution contexts may include starting, executing, scheduling, dispersing, and aggregating of information within the environment of the information space set 113a processes or tasks wrapped through KPs 709a-709n and 711a-711n or other KPs functionalities such as process scheduling 701 and 713, memory management 703 and 715, system calls 705 and 717, etc.
KPs 709a-709n and 711a-711n and their corresponding information in the form of RDF sub-graph dispersion and aggregation may be performed by selective recycling apparatus of the information space set 113a and/or the distribution. Selective recycling may be driven by a recovery-conscious scheduler that may be part of the information space environment scheduler and supported by information provided by the computation environment processes/tasks scheduler 701 and 713. The user contexts 707 and 719 and the execution contexts (not shown) may be dynamically assigned and triggered and allocated according to a particular or operating system task management. It is noted that the terms KP and relevant information within SIB, represented as RDF sub-graph sets are abstract enough to be presented through other procedural aspects of the computation environment (e.g. a higher abstraction level).
In one embodiment, following the receipt of one or more user contexts 707 and 719 and additional execution contexts by UE 107b from UE 107a, and other relevant information over a communications medium, the UE 107b executes or shares the reflective state of the application by a KP 711a-711n. Upon completion of the process, the UE 107b may determine the information shared with SIB 607 through corresponding KP 711a-711n. This determination may result in closing a secure communication link with UE 107a. Prior to closing the communication connection, the UE 107b may share one or more user and execution contexts with UE 107a over the communications medium for continued execution of the application by KP 709a-709n in UE 107a. The sharing of the user and execution contexts and execution of the application on UE 107a is managed by the information management infrastructure. Such virtual run-time environment enables shared user and execution context sessions between UE 107a and UE 107b.
In another embodiment, prior to closing of the communication connection, the UE 107b may share an initial portion of the updated user and execution context with UE 107a over a initial communication connection and share the remaining portion of the updated user and execution contexts with UE 107a over the last communication connection for continued execution of the application on UE 107a. The adaptive computation platform described enables granular information processing context migration capability for a computing device to enhance the processing power of the devices within the information space environment.
In this example, assuming that the extracted computation closure, closure_1 is supposed to be executed on the user equipment 107a, the user equipment 107a extracts the computation closure closure_1 from the computation closure store 813 using the Get command 815.
In one embodiment, the decision of the equipment on which a computation closure is executed, may be made by a user by pushing, or flicking specific icons of the user interface associated with a process on one user equipment towards another user equipment (e.g. 107a). In another embodiment, the equipment executing a computation closure may be automatically assigned. The extracted closure_1 is projected into a closure with the user device context (process states) and the object 817 is produced. The block 819 represents the reconstruction of the closure into the initial context by the closure aggregation module 211. The aggregated context may then be executed in the run-time environment 821 of UE 107b by Agent3.
In another embodiment, the block 803 may be a user equipment and block 821a backend device or both blocks 801 and 821 may be UEs. In this embodiment the decomposition and aggregation processes are similar to the above example with the difference that closure_1 is extracted from a process on the UE 801.
Upon receiving the process migration information x at the UE 107b, execution of the code 915 on the received information may activate the closure aggregation module 211 from the distributed computation construction infrastructure 103 to reconstruct the process information including the context. The closure consistency determination module 209 may also check the consistency of the received information with the receiving platform UE 107b. If the consistency requirement is met, the context reconstruction may be performed according to the RDF 911 in SIB 601. Execution of the code 917 on the UE 107b may trigger resumption of the execution of migrated process by the new platform UE 107b.
The receiving agent 1003, sends a request for a data manipulation service 1007 via function 1015, and receives as a result from data manipulation service 1007 a computation policy P regarding the closure primitives X. The computation policy may include regulations, access rights, execution rights, or any policies that may affect the execution of the closure primitives X. The receiving agent 1003 may get more closure primitives mandated by policy P through the information conversion service 1009 per step 1017. In one embodiment, the information conversion service 1009 may work under the supervision of the distributed computation construction infrastructure 103.
Per function 1019, the receiving agent 1003 utilizes a cryptographic service 1011 to verify the authenticity of the certificates received for closure primitives X according to the received policy P. If the certificates are approved, per step 1021 the receiving agent 1003 requests for a primitive execution service 1005 for the combination of closure primitives. As discussed in
The processes described herein for construction and aggregation of distributed computations may be advantageously implemented via software, hardware, firmware or a combination of software and/or firmware and/or hardware. For example, the processes described herein, including for providing user interface navigation information associated with the availability of services, may be advantageously implemented via processor(s), Digital Signal Processing (DSP) chip, an Application Specific Integrated Circuit (ASIC), Field Programmable Gate Arrays (FPGAs), etc. Such exemplary hardware for performing the described functions is detailed below.
A bus 1110 includes one or more parallel conductors of information so that information is transferred quickly among devices coupled to the bus 1110. One or more processors 1102 for processing information are coupled with the bus 1110.
A processor (or multiple processors) 1102 performs a set of operations on information as specified by computer program code related to construction and aggregation of distributed computations. The computer program code is a set of instructions or statements providing instructions for the operation of the processor and/or the computer system to perform specified functions. The code, for example, may be written in a computer programming language that is compiled into a native instruction set of the processor. The code may also be written directly using the native instruction set (e.g., machine language). The set of operations include bringing information in from the bus 1110 and placing information on the bus 1110. The set of operations also typically include comparing two or more units of information, shifting positions of units of information, and combining two or more units of information, such as by addition or multiplication or logical operations like OR, exclusive OR (XOR), and AND. Each operation of the set of operations that can be performed by the processor is represented to the processor by information called instructions, such as an operation code of one or more digits. A sequence of operations to be executed by the processor 1102, such as a sequence of operation codes, constitute processor instructions, also called computer system instructions or, simply, computer instructions. Processors may be implemented as mechanical, electrical, magnetic, optical, chemical or quantum components, among others, alone or in combination.
Computer system 1100 also includes a memory 1104 coupled to bus 1110. The memory 1104, such as a random access memory (RAM) or other dynamic storage device, stores information including processor instructions for construction and aggregation of distributed computations. Dynamic memory allows information stored therein to be changed by the computer system 1100. RAM allows a unit of information stored at a location called a memory address to be stored and retrieved independently of information at neighboring addresses. The memory 1104 is also used by the processor 1102 to store temporary values during execution of processor instructions. The computer system 1100 also includes a read only memory (ROM) 1106 or other static storage device coupled to the bus 1110 for storing static information, including instructions, that is not changed by the computer system 1100. Some memory is composed of volatile storage that loses the information stored thereon when power is lost. Also coupled to bus 1110 is a non-volatile (persistent) storage device 1108, such as a magnetic disk, optical disk or flash card, for storing information, including instructions, that persists even when the computer system 1100 is turned off or otherwise loses power.
Information, including instructions for construction and aggregation of distributed computations, is provided to the bus 1110 for use by the processor from an external input device 1112, such as a keyboard containing alphanumeric keys operated by a human user, or a sensor. A sensor detects conditions in its vicinity and transforms those detections into physical expression compatible with the measurable phenomenon used to represent information in computer system 1100. Other external devices coupled to bus 1110, used primarily for interacting with humans, include a display device 1114, such as a cathode ray tube (CRT) or a liquid crystal display (LCD), or plasma screen or printer for presenting text or images, and a pointing device 1116, such as a mouse or a trackball or cursor direction keys, or motion sensor, for controlling a position of a small cursor image presented on the display 1114 and issuing commands associated with graphical elements presented on the display 1114. In some embodiments, for example, in embodiments in which the computer system 1100 performs all functions automatically without human input, one or more of external input device 1112, display device 1114 and pointing device 1116 is omitted.
In the illustrated embodiment, special purpose hardware, such as an application specific integrated circuit (ASIC) 1120, is coupled to bus 1110. The special purpose hardware is configured to perform operations not performed by processor 1102 quickly enough for special purposes. Examples of application specific ICs include graphics accelerator cards for generating images for display 1114, cryptographic boards for encrypting and decrypting messages sent over a network, speech recognition, and interfaces to special external devices, such as robotic arms and medical scanning equipment that repeatedly perform some complex sequence of operations that are more efficiently implemented in hardware.
Computer system 1100 also includes one or more instances of a communications interface 1170 coupled to bus 1110. Communication interface 1170 provides a one-way or two-way communication coupling to a variety of external devices that operate with their own processors, such as printers, scanners and external disks. In general the coupling is with a network link 1178 that is connected to a local network 1180 to which a variety of external devices with their own processors are connected. For example, communication interface 1170 may be a parallel port or a serial port or a universal serial bus (USB) port on a personal computer. In some embodiments, communications interface 1170 is an integrated services digital network (ISDN) card or a digital subscriber line (DSL) card or a telephone modem that provides an information communication connection to a corresponding type of telephone line. In some embodiments, a communication interface 1170 is a cable modem that converts signals on bus 1110 into signals for a communication connection over a coaxial cable or into optical signals for a communication connection over a fiber optic cable. As another example, communications interface 1170 may be a local area network (LAN) card to provide a data communication connection to a compatible LAN, such as Ethernet. Wireless links may also be implemented. For wireless links, the communications interface 1170 sends or receives or both sends and receives electrical, acoustic or electromagnetic signals, including infrared and optical signals, that carry information streams, such as digital data. For example, in wireless handheld devices, such as mobile telephones like cell phones, the communications interface 1170 includes a radio band electromagnetic transmitter and receiver called a radio transceiver. In certain embodiments, the communications interface 1170 enables connection to the communication network 105 for distributed computation construction and aggregation to the UE set 101.
The term “computer-readable medium” as used herein refers to any medium that participates in providing information to processor 1102, including instructions for execution. Such a medium may take many forms, including, but not limited to computer-readable storage medium (e.g., non-volatile media, volatile media), and transmission media. Non-transitory media, such as non-volatile media, include, for example, optical or magnetic disks, such as storage device 1108. Volatile media include, for example, dynamic memory 1104. Transmission media include, for example, coaxial cables, copper wire, fiber optic cables, and carrier waves that travel through space without wires or cables, such as acoustic waves and electromagnetic waves, including radio, optical and infrared waves. Signals include man-made transient variations in amplitude, frequency, phase, polarization or other physical properties transmitted through the transmission media. Common forms of computer-readable media include, for example, a floppy disk, a flexible disk, hard disk, magnetic tape, any other magnetic medium, a CD-ROM, CDRW, DVD, any other optical medium, punch cards, paper tape, optical mark sheets, any other physical medium with patterns of holes or other optically recognizable indicia, a RAM, a PROM, an EPROM, a FLASH-EPROM, any other memory chip or cartridge, a carrier wave, or any other medium from which a computer can read. The term computer-readable storage medium is used herein to refer to any computer-readable medium except transmission media.
Logic encoded in one or more tangible media includes one or both of processor instructions on a computer-readable storage media and special purpose hardware, such as ASIC 1120.
Network link 1178 typically provides information communication using transmission media through one or more networks to other devices that use or process the information. For example, network link 1178 may provide a connection through local network 1180 to a host computer 1182 or to equipment 1184 operated by an Internet Service Provider (ISP). ISP equipment 1184 in turn provides data communication services through the public, world-wide packet-switching communication network of networks now commonly referred to as the Internet 1190.
A computer called a server host 1192 connected to the Internet hosts a process that provides a service in response to information received over the Internet. For example, server host 1192 hosts a process that provides information representing video data for presentation at display 1114. It is contemplated that the components of system 1100 can be deployed in various configurations within other computer systems, e.g., host 1182 and server 1192.
At least some embodiments of the invention are related to the use of computer system 1100 for implementing some or all of the techniques described herein. According to one embodiment of the invention, those techniques are performed by computer system 1100 in response to processor 1102 executing one or more sequences of one or more processor instructions contained in memory 1104. Such instructions, also called computer instructions, software and program code, may be read into memory 1104 from another computer-readable medium such as storage device 1108 or network link 1178. Execution of the sequences of instructions contained in memory 1104 causes processor 1102 to perform one or more of the method steps described herein. In alternative embodiments, hardware, such as ASIC 1120, may be used in place of or in combination with software to implement the invention. Thus, embodiments of the invention are not limited to any specific combination of hardware and software, unless otherwise explicitly stated herein.
The signals transmitted over network link 1178 and other networks through communications interface 1170, carry information to and from computer system 1100. Computer system 1100 can send and receive information, including program code, through the networks 1180, 1190 among others, through network link 1178 and communications interface 1170. In an example using the Internet 1190, a server host 1192 transmits program code for a particular application, requested by a message sent from computer 1100, through Internet 1190, ISP equipment 1184, local network 1180 and communications interface 1170. The received code may be executed by processor 1102 as it is received, or may be stored in memory 1104 or in storage device 1108 or other non-volatile storage for later execution, or both. In this manner, computer system 1100 may obtain application program code in the form of signals on a carrier wave.
Various forms of computer readable media may be involved in carrying one or more sequence of instructions or data or both to processor 1102 for execution. For example, instructions and data may initially be carried on a magnetic disk of a remote computer such as host 1182. The remote computer loads the instructions and data into its dynamic memory and sends the instructions and data over a telephone line using a modem. A modem local to the computer system 1100 receives the instructions and data on a telephone line and uses an infra-red transmitter to convert the instructions and data to a signal on an infra-red carrier wave serving as the network link 1178. An infrared detector serving as communications interface 1170 receives the instructions and data carried in the infrared signal and places information representing the instructions and data onto bus 1110. Bus 1110 carries the information to memory 1104 from which processor 1102 retrieves and executes the instructions using some of the data sent with the instructions. The instructions and data received in memory 1104 may optionally be stored on storage device 1108, either before or after execution by the processor 1102.
In one embodiment, the chip set or chip 1200 includes a communication mechanism such as a bus 1201 for passing information among the components of the chip set 1200. A processor 1203 has connectivity to the bus 1201 to execute instructions and process information stored in, for example, a memory 1205. The processor 1203 may include one or more processing cores with each core configured to perform independently. A multi-core processor enables multiprocessing within a single physical package. Examples of a multi-core processor include two, four, eight, or greater numbers of processing cores. Alternatively or in addition, the processor 1203 may include one or more microprocessors configured in tandem via the bus 1201 to enable independent execution of instructions, pipelining, and multithreading. The processor 1203 may also be accompanied with one or more specialized components to perform certain processing functions and tasks such as one or more digital signal processors (DSP) 1207, or one or more application-specific integrated circuits (ASIC) 1209. A DSP 1207 typically is configured to process real-world signals (e.g., sound) in real time independently of the processor 1203. Similarly, an ASIC 1209 can be configured to performed specialized functions not easily performed by a more general purpose processor. Other specialized components to aid in performing the inventive functions described herein may include one or more field programmable gate arrays (FPGA) (not shown), one or more controllers (not shown), or one or more other special-purpose computer chips.
In one embodiment, the chip set or chip 1200 includes merely one or more processors and some software and/or firmware supporting and/or relating to and/or for the one or more processors.
The processor 1203 and accompanying components have connectivity to the memory 1205 via the bus 1201. The memory 1205 includes both dynamic memory (e.g., RAM, magnetic disk, writable optical disk, etc.) and static memory (e.g., ROM, CD-ROM, etc.) for storing executable instructions that when executed perform the inventive steps described herein to construct distributed computations. The memory 1205 also stores the data associated with or generated by the execution of the inventive steps.
Pertinent internal components of the telephone include a Main Control Unit (MCU) 1303, a Digital Signal Processor (DSP) 1305, and a receiver/transmitter unit including a microphone gain control unit and a speaker gain control unit. A main display unit 1307 provides a display to the user in support of various applications and mobile terminal functions that perform or support the steps of construction and aggregation of distributed computations. The display 13 includes display circuitry configured to display at least a portion of a user interface of the mobile terminal (e.g., mobile telephone). Additionally, the display 1307 and display circuitry are configured to facilitate user control of at least some functions of the mobile terminal. An audio function circuitry 1309 includes a microphone 1311 and microphone amplifier that amplifies the speech signal output from the microphone 1311. The amplified speech signal output from the microphone 1311 is fed to a coder/decoder (CODEC) 1313.
A radio section 1315 amplifies power and converts frequency in order to communicate with a base station, which is included in a mobile communication system, via antenna 1317. The power amplifier (PA) 1319 and the transmitter/modulation circuitry are operationally responsive to the MCU 1303, with an output from the PA 1319 coupled to the duplexer 1321 or circulator or antenna switch, as known in the art. The PA 1319 also couples to a battery interface and power control unit 1320.
In use, a user of mobile terminal 1301 speaks into the microphone 1311 and his or her voice along with any detected background noise is converted into an analog voltage. The analog voltage is then converted into a digital signal through the Analog to Digital Converter (ADC) 1323. The control unit 1303 routes the digital signal into the DSP 1305 for processing therein, such as speech encoding, channel encoding, encrypting, and interleaving. In one embodiment, the processed voice signals are encoded, by units not separately shown, using a cellular transmission protocol such as global evolution (EDGE), general packet radio service (GPRS), global system for mobile communications (GSM), Internet protocol multimedia subsystem (IMS), universal mobile telecommunications system (UMTS), etc., as well as any other suitable wireless medium, e.g., microwave access (WiMAX), Long Term Evolution (LTE) networks, code division multiple access (CDMA), wideband code division multiple access (WCDMA), wireless fidelity (WiFi), satellite, and the like.
The encoded signals are then routed to an equalizer 1325 for compensation of any frequency-dependent impairments that occur during transmission though the air such as phase and amplitude distortion. After equalizing the bit stream, the modulator 1327 combines the signal with a RF signal generated in the RF interface 1329. The modulator 1327 generates a sine wave by way of frequency or phase modulation. In order to prepare the signal for transmission, an up-converter 1331 combines the sine wave output from the modulator 1327 with another sine wave generated by a synthesizer 1333 to achieve the desired frequency of transmission. The signal is then sent through a PA 1319 to increase the signal to an appropriate power level. In practical systems, the PA 1319 acts as a variable gain amplifier whose gain is controlled by the DSP 1305 from information received from a network base station. The signal is then filtered within the duplexer 1321 and optionally sent to an antenna coupler 1335 to match impedances to provide maximum power transfer. Finally, the signal is transmitted via antenna 1317 to a local base station. An automatic gain control (AGC) can be supplied to control the gain of the final stages of the receiver. The signals may be forwarded from there to a remote telephone which may be another cellular telephone, other mobile phone or a land-line connected to a Public Switched Telephone Network (PSTN), or other telephony networks.
Voice signals transmitted to the mobile terminal 1301 are received via antenna 1317 and immediately amplified by a low noise amplifier (LNA) 1337. A down-converter 1339 lowers the carrier frequency while the demodulator 1341 strips away the RF leaving only a digital bit stream. The signal then goes through the equalizer 1325 and is processed by the DSP 1305. A Digital to Analog Converter (DAC) 1343 converts the signal and the resulting output is transmitted to the user through the speaker 1345, all under control of a Main Control Unit (MCU) 1303—which can be implemented as a Central Processing Unit (CPU) (not shown).
The MCU 1303 receives various signals including input signals from the keyboard 1347. The keyboard 1347 and/or the MCU 1303 in combination with other user input components (e.g., the microphone 1311) comprise a user interface circuitry for managing user input. The MCU 1303 runs a user interface software to facilitate user control of at least some functions of the mobile terminal 1301 to construct distributed computations. The MCU 1303 also delivers a display command and a switch command to the display 1307 and to the speech output switching controller, respectively. Further, the MCU 1303 exchanges information with the DSP 1305 and can access an optionally incorporated SIM card 1349 and a memory 1351. In addition, the MCU 1303 executes various control functions required of the terminal. The DSP 1305 may, depending upon the implementation, perform any of a variety of conventional digital processing functions on the voice signals. Additionally, DSP 1305 determines the background noise level of the local environment from the signals detected by microphone 1311 and sets the gain of microphone 1311 to a level selected to compensate for the natural tendency of the user of the mobile terminal 1301.
The CODEC 1313 includes the ADC 1323 and DAC 1343. The memory 1351 stores various data including call incoming tone data and is capable of storing other data including music data received via, e.g., the global Internet. The software module could reside in RAM memory, flash memory, registers, or any other form of writable storage medium known in the art. The memory device 1351 may be, but not limited to, a single memory, CD, DVD, ROM, RAM, EEPROM, optical storage, or any other non-volatile storage medium capable of storing digital data.
An optionally incorporated SIM card 1349 carries, for instance, important information, such as the cellular phone number, the carrier supplying service, subscription details, and security information. The SIM card 1349 serves primarily to identify the mobile terminal 1301 on a radio network. The card 1349 also contains a memory for storing a personal telephone number registry, text messages, and user specific mobile terminal settings.
While the invention has been described in connection with a number of embodiments and implementations, the invention is not so limited but covers various obvious modifications and equivalent arrangements, which fall within the purview of the appended claims. Although features of the invention are expressed in certain combinations among the claims, it is contemplated that these features can be arranged in any combination and order.