public abstract class AbstractAutomaton extends AbstractTucsonAgent
Modifier and Type | Field and Description |
---|---|
protected static java.lang.Class<?>[] |
argType |
protected java.lang.Object[] |
arguments |
protected java.lang.String |
state |
completionEvents
Constructor and Description |
---|
AbstractAutomaton(java.lang.String aid) |
Modifier and Type | Method and Description |
---|---|
protected void |
become(java.lang.String s)
To change state.
|
protected void |
become(java.lang.String s,
java.lang.Object[] args)
To change state
|
protected abstract void |
boot()
Init state.
|
protected void |
end()
End state.
|
protected void |
error()
Error state.
|
protected void |
main()
Main FSA cycle.
|
getContext, getTucsonAgentId, go, myName, myNode, myport, operationCompleted, operationCompleted, say, setContext
protected static java.lang.Class<?>[] argType
protected java.lang.Object[] arguments
protected java.lang.String state
public AbstractAutomaton(java.lang.String aid) throws TucsonInvalidAgentIdException
aid
- name of the agent (must be a valid Prolog term)TucsonInvalidAgentIdException
- if the given String is not a valid representation of a
ReSpecT agent identifierTerm
protected void become(java.lang.String s)
s
- the string representing the state to becomeprotected void become(java.lang.String s, java.lang.Object[] args)
s
- the string representing the state to becomeargs
- arguments to be used in the target stateprotected abstract void boot()
protected void end() throws TucsonOperationNotPossibleException
TucsonOperationNotPossibleException
- if the requested operation cannot be carried outprotected void error()
protected final void main()
main
in class AbstractTucsonAgent