public abstract class Automaton
extends java.lang.Object
implements java.lang.Runnable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.lang.Class<?>[] |
argType
arguments class eventually associated to state transition
|
protected java.lang.Object[] |
arguments
arguments value eventually associated to state transition
|
protected java.lang.String |
state
method name representing state behaviour
|
Constructor and Description |
---|
Automaton() |
Modifier and Type | Method and Description |
---|---|
protected void |
become(java.lang.String s) |
protected void |
become(java.lang.String s,
java.lang.Object[] args) |
abstract void |
boot()
boot state of automaton
|
void |
end()
shutdown state
|
void |
error()
error state
|
void |
idle()
idle state
|
void |
run() |
protected java.lang.String state
protected java.lang.Object[] arguments
protected java.lang.Class<?>[] argType
protected void become(java.lang.String s)
protected void become(java.lang.String s, java.lang.Object[] args)
public abstract void boot()
public void run()
run
in interface java.lang.Runnable
public void idle()
public void end()
public void error()