public final class _SendVF extends _Send
Send a request to an (indirect) actor.
SMBuilder smb = new SMBuilder();
smb._send(new Doubler(getMailbox()), new ObjectFunc() {
public Object get(StateMachine sm) {
return 21;
}
}, "rsp");
smb._return(new ObjectFunc() {
public Object get(StateMachine sm) {
return sm.get("rsp");
}
});
smb.call(rp);
Response:
42
| Constructor and Description |
|---|
_SendVF(_SMBuilder parentSMB,
Actor targetActor,
ObjectFunc request,
String resultName)
Create a _SendVF.
|
| Modifier and Type | Method and Description |
|---|---|
Request |
getRequest(SimpleMachine stateMachine)
Returns the request.
|
String |
getResultName()
Returns the name of the result, or null.
|
Actor |
getTargetActor(SimpleMachine stateMachine)
Returns the actor which is to receive the message.
|
public _SendVF(_SMBuilder parentSMB, Actor targetActor, ObjectFunc request, String resultName)
parentSMB - The parent builder.targetActor - The actor which is to receive the message.request - The (indirect) request.resultName - The name of the result, or null.public Actor getTargetActor(SimpleMachine stateMachine)
getTargetActor in class _SendstateMachine - The state machine.public Request getRequest(SimpleMachine stateMachine)
getRequest in class _SendstateMachine - The state machine.public String getResultName()
getResultName in class _SendCopyright © 2012. All Rights Reserved.