public final class _SendFF extends _Send
Send an (indirect) request to an (indirect) actor.
SMBuilder smb = new SMBuilder(); smb._send(new ActorFunc() { public Actor get(StateMachine sm) { return 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 |
---|
_SendFF(_SMBuilder parentSMB,
ActorFunc targetActor,
ObjectFunc request,
String resultName)
Create a _SendFF.
|
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 _SendFF(_SMBuilder parentSMB, ActorFunc targetActor, ObjectFunc request, String resultName)
parentSMB
- The parent builder.targetActor
- The (indirect) actor which is to receive the message.request
- The (indirect) request.resultName
- The name of the result, or null.public Actor getTargetActor(SimpleMachine stateMachine) throws Exception
getTargetActor
in class _Send
stateMachine
- The state machine.Exception
public Request getRequest(SimpleMachine stateMachine)
getRequest
in class _Send
stateMachine
- The state machine.public String getResultName()
getResultName
in class _Send
Copyright © 2012. All Rights Reserved.