edu.vub.at.actors
Interface AsyncMessage
AsyncMessage
Instances of the class ATAsyncMessage represent first-class asynchronous message sends.
They encapsulate a selector symbol and a table of arguments.
Additionally, a message -- being a first-class object, may be extended with extra fields and behaviour (attachments).
The receiver of an asynchronous message is determined only at message sending
time. The receiver is not stored directly within the asynchronous message, but is rather
passed as an extra parameter in the Object.meta_send(ATObject, ATAsyncMessage)
meta-level method.
- Author:
- tvcutsem
Method Summary |
Object |
process(Object receiver)
This method is responsible for processing the message in a certain actor. |
Methods inherited from interface edu.vub.at.objects.Object |
super |
getLocationLine
Object getLocationLine
getLocationFilename
Object getLocationFilename
process
Object process(Object receiver)
- This method is responsible for processing the message in a certain actor.
By default, process invokes the method corresponding to its selector:
def process(receiver) {
(reflect: receiver).invoke(receiver, self.selector, self.arguments)
}
- Parameters:
receiver
- the object that has been designated to receive the message