1 / 23

Lecture 3

Lecture 3. From process-oriented to agent-oriented programming. Distributed object systems. Bond objects. Communication. Asynchronous communication. Event handling. Semantic understanding of messages. Probes. Bond basics. Distributed-object system.

rasher
Télécharger la présentation

Lecture 3

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lecture 3 • From process-oriented to agent-oriented programming. • Distributed object systems. • Bond objects. • Communication. • Asynchronous communication. • Event handling. • Semantic understanding of messages. Probes.

  2. Bond basics • Distributed-object system. • Message passing distributed object system. • Why? • Other systems, e.g. Jini are based upon Java RMI.

  3. Bond objects • A Bond object extends the standard Java object with: • Unique identifier. • Communication support. • Serialization and cloning. • Dynamic properties. • Multiple inheritance. • Visual Editor. • Light-weight objects (e.g. messages, shadows)

  4. Bond resident • Container Object. • Directory. Each object is registered at the time of creation. • Aliases. • Communication Engine – runs at a known port on a system with a given BondIPAddress

  5. Communication engine

  6. Local shadow of a remote object • We wish to communicate with a remote object as if it were local. To do so we need a local representative of the remote object. • Proxy in Voyager • Stub in RMI • Stubs are used to create VONs • Shadows are used to crfeate a local copy of a remote object.

  7. Communication with remote objects -bond shadows

  8. Virtual Object Networks, VONs

  9. Object mobility

  10. Message composition • The system supports messages in KQML and XML format. • Message composition – putting all pieces together: • The contents of the message. • The source. • The destination. • The sub-protocol – we’ll talk about them later. For now think of a subprotocol as a dialect that two objects understand…..

  11. KQML performatives • Categories of performatives: • Queries: ask; • Responses: tell; • Informational: • Generative: • Capability: • Networking:

  12. Asynchronous communication using reply-waiting slots

  13. Event handling • Java objects use listeners abstractions to capture events. • Corba uses an event service. • Bond uses event waiting slots.

  14. The subscribe-notify model. Event waiting slots.

  15. Subprotocols • Dialects. • Closed sets of messages required for a “conversation”. • Each message is stamped with the subprotocol it belongs to. • Each bond object: • has a property called subprotocols implemented that lists all the subprotocols it understands. • Implements the bondAccessSubprotocol

  16. Subprotocol inheritance • Static inheritance • Dynamic inheritance. Probes extend an object and allow it to speak a new protocol. • Probes are dynamic properties.

More Related