|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.openai.util.fsm.State | +--net.openai.ai.hybrid.fsmagent.AgentState | +--net.openai.ai.hybrid.fsmagent.InputForwardingState | +--net.openai.ai.hybrid.fsmagent.SleepState
This AgentState sleeps for a given time. This state will forward its input to its output.
Constructor Summary | |
SleepState()
Constructs a new SleepState with a sleep time of 0 milliseconds. |
|
SleepState(int sleepTime)
Constructs a new SleepState with the specified sleep time. |
Method Summary | |
protected java.lang.Object |
executeState()
The main body of execution for the SleepState. |
int |
getSleepTime()
Returns the sleep time for the SleepState in milliseconds. |
void |
setSleepTime(int sleepTime)
Sets the sleep time for the SleepState in milliseconds. |
Methods inherited from class net.openai.ai.hybrid.fsmagent.InputForwardingState |
enter, exit, getInputData |
Methods inherited from class net.openai.ai.hybrid.fsmagent.AgentState |
displayMessage, getAgent |
Methods inherited from class net.openai.util.fsm.State |
addStateListener, addTransition, addTransition, getEndStateFlag, getName, getStartStateFlag, getTransitions, removeStateListener, removeTransition, setEndStateFlag, setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SleepState()
public SleepState(int sleepTime)
sleepTime
- The time to sleep in milliseconds.Method Detail |
public final void setSleepTime(int sleepTime)
sleepTime
- The time to sleep in milliseconds.public final int getSleepTime()
protected final java.lang.Object executeState()
executeState
in class AgentState
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |