Class OOCSIStateMachine.State
java.lang.Object
nl.tue.id.oocsi.client.behavior.state.OOCSIStateMachine.State
- Enclosing class:
- OOCSIStateMachine
public class OOCSIStateMachine.State
extends java.lang.Object
internal state representation
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
enter()
trigger the enter handler, if it is given and not nullvoid
execute()
trigger the execute handler, if it is given and not nullvoid
exit()
trigger the exit handler, if it is given and not nullvoid
setEnter(Handler handler)
set the enter handler (any time after creation of this state)void
setExecute(Handler handler)
set the execute handler (any time after creation of this state)void
setExit(Handler handler)
set the exit handler (any time after creation of this state)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
State
constructor that sets the given handlers for enter, execute, and exit- Parameters:
enter
-execute
-exit
-
-
-
Method Details
-
enter
public void enter()trigger the enter handler, if it is given and not null -
setEnter
set the enter handler (any time after creation of this state)- Parameters:
handler
-
-
execute
public void execute()trigger the execute handler, if it is given and not null -
setExecute
set the execute handler (any time after creation of this state)- Parameters:
handler
-
-
exit
public void exit()trigger the exit handler, if it is given and not null -
setExit
set the exit handler (any time after creation of this state)- Parameters:
handler
-
-