at:tutorial:reflection
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
at:tutorial:reflection [2007/05/03 16:31] – stimberm | at:tutorial:reflection [2007/06/29 11:14] – Added stijnm | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | < | ||
- | |||
====== Reflective Programming ====== | ====== Reflective Programming ====== | ||
Line 69: | Line 67: | ||
Whereas the example provided above may seem a little contrived, the reflective capabilities of AmbientTalk allow it to be extended with many abstraction relating to distributed computing for mobile ad hoc networks (AmbientTalk' | Whereas the example provided above may seem a little contrived, the reflective capabilities of AmbientTalk allow it to be extended with many abstraction relating to distributed computing for mobile ad hoc networks (AmbientTalk' | ||
+ | |||
+ | ===== Meta-Object Protocol ===== | ||
+ | |||
+ | The Meta-Object Protocol of AmbientTalk can be divided into a series of independent protocols. Whereas the full semantics and signature of the meta-methods can be found in the [[http:// | ||
+ | |||
+ | The **Message Passing Protocol** consists of methods to deal with both synchronous and asynchronous message sending. It provides necessary hooks to intercept both the reception of asynchronous messages and the invocation of synchronous messages. Moreover, it provides a hook to intercept asynchronous messages being sent by the object, allowing the object to add additional metadata to the message. The '' | ||
+ | |||
+ | The **Object Passing Protocol** consists of two methods '' | ||
+ | |||
+ | The **Slot Access and Modification Protocol** consists of operations which allow trapping both access and modification to slots. These operations are further refined based on whether they transitively search the dynamic or lexical parent chain. For instance, for the lookup of a variable, '' | ||
+ | |||
+ | The **Structural Access Protocol** consists of operations used list all available slots, get access to a first-class slot representation and to add new slots to an existing object. The '' | ||
+ | |||
+ | The **Instantiation Protocol** consists of the '' | ||
+ | |||
+ | The **Relational Testing Protocol** consists of the methods '' | ||
+ | |||
+ | The **Type Testing Protocol** consists of the methods '' | ||
+ | |||
+ | The **Evaluation Protocol** ensures that any AmbientTalk object can be part of a parse tree, and therefore every object provides meaningful implementations of the '' |
at/tutorial/reflection.txt · Last modified: 2010/11/16 16:32 by tvcutsem