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