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