public abstract class _SMBuilder extends Object
Constructor and Description |
---|
_SMBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
_call(_SMBuilder smb)
Create a _Call.
|
void |
_call(_SMBuilder smb,
ObjectFunc request,
String resultName)
Create a _Call.
|
void |
_goto(String label)
Create a _Goto.
|
void |
_if(BooleanFunc condition,
String label)
Create an _IfF
|
void |
_if(boolean condition,
String label)
Create an _IfV
|
void |
_label(String label)
Assign a label to the location of the next operation to be created.
|
void |
_return(Object result)
Create a_ReturnV.
|
void |
_return(ObjectFunc result)
Create a_ReturnF.
|
void |
_send(ActorFunc targetActor,
ObjectFunc request)
Create a _SendFF.
|
void |
_send(ActorFunc targetActor,
ObjectFunc request,
String resultName)
Create a _SendFF.
|
void |
_send(ActorFunc targetActor,
Request request)
Create a _SendFV.
|
void |
_send(ActorFunc targetActor,
Request request,
String resultName)
Create a _SendFV.
|
void |
_send(Actor targetActor,
ObjectFunc request)
Create a _SendVF.
|
void |
_send(Actor targetActor,
ObjectFunc request,
String resultName)
Create a _SendVF.
|
void |
_send(Actor targetActor,
Request request)
Create a _SendVV.
|
void |
_send(Actor targetActor,
Request request,
String resultName)
Create a _SendVV.
|
void |
_set(Object value)
Create a _SetV.
|
void |
_set(ObjectFunc objectFunc)
Create a _SetF.
|
void |
_set(ObjectFunc objectFunc,
String resultName)
Create a _SetF.
|
void |
_set(Object value,
String resultName)
Create a _SetV.
|
void |
add(_Operation operation)
Add an _Operation to the operations.
|
void |
call(Object request,
RP rp)
Instantiate and execute a state machine.
|
void |
call(RP rp)
Instantiate and execute a state machine.
|
_Operation |
getOperation(int ndx)
Returns an operation.
|
int |
operationsSize()
Returns the number of operations.
|
Integer |
resolve(String label)
Returns the location assigned to a label.
|
abstract void |
send(Actor actor,
Request request,
RP rp)
Send a request to an actor.
|
public final Integer resolve(String label)
label
- The name assigned to a location,public final int operationsSize()
public final _Operation getOperation(int ndx)
ndx
- An index.public final void add(_Operation operation)
operation
- An operation performed by a state machine.public final void _send(Actor targetActor, Request request)
targetActor
- The actor which is to receive the message.request
- The request.public final void _send(Actor targetActor, Request request, String resultName)
targetActor
- The actor which is to receive the message.request
- The request.resultName
- The name of the result, or null.public final void _send(ActorFunc targetActor, ObjectFunc request)
targetActor
- The (indirect) actor which is to receive the message.request
- The (indirect) request.public final void _send(ActorFunc targetActor, ObjectFunc request, String resultName)
targetActor
- The (indirect) actor which is to receive the message.request
- The (indirect) request.resultName
- The name of the result, or null.public final void _send(Actor targetActor, ObjectFunc request)
targetActor
- The actor which is to receive the message.request
- The (indirect) request.public final void _send(Actor targetActor, ObjectFunc request, String resultName)
targetActor
- The actor which is to receive the message.request
- The (indirect) request.resultName
- The name of the result, or null.public final void _send(ActorFunc targetActor, Request request)
targetActor
- The (indirect) actor which is to receive the message.request
- The request.public final void _send(ActorFunc targetActor, Request request, String resultName)
targetActor
- The (indirect) actor which is to receive the message.request
- The request.resultName
- The name of the result, or null.public final void _return(Object result)
result
- The result returned.public final void _return(ObjectFunc result)
result
- The indirect result returned.public final void _set(ObjectFunc objectFunc)
objectFunc
- The (indirect) result.public final void _set(ObjectFunc objectFunc, String resultName)
objectFunc
- The (indirect) result.resultName
- The name of the result, or null.public final void _set(Object value)
value
- The result.public final void _set(Object value, String resultName)
value
- The result.resultName
- The name of the result, or null.public final void _label(String label)
label
- The label assigned to the location of the next operation.public final void _goto(String label)
label
- The identifier of where to go to.public final void _if(boolean condition, String label)
condition
- The condition.label
- The identifier of where to go to.public final void _if(BooleanFunc condition, String label)
condition
- The condition.label
- The identifier of where to go to.public final void _call(_SMBuilder smb)
smb
- The builder of the state machine to be executed.public final void _call(_SMBuilder smb, ObjectFunc request, String resultName)
smb
- The builder of the state machine to be executed.request
- An (indirect) optional argument passed when the state machine is invoked, or null.resultName
- The name of the result, or null.public final void call(RP rp) throws Exception
rp
- The response processor.Exception
- Any uncaught exceptions raised while executing the state machine.public final void call(Object request, RP rp) throws Exception
request
- An optional argument passed when the state machine is invoked.rp
- The response processor.Exception
- Any uncaught exceptions raised while executing the state machine.Copyright © 2012. All Rights Reserved.