|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cometway.states.StateModel
public class StateModel
Implementation of the StateModelInterface.
| Constructor Summary | |
|---|---|
StateModel(java.lang.String name)
Constructor for a state model. |
|
StateModel(java.lang.String name,
CommandInterface command,
TransitionInterface transition)
Constructor for a state model. |
|
| Method Summary | |
|---|---|
CommandInterface[] |
getCommands()
Returns an array of CommandInterfaces for this state. |
java.lang.String |
getName()
Returns the name of this state. |
TransitionInterface[] |
getTransitions()
Returns an array of TransitionInterfaces for this state. |
void |
setCommand(CommandInterface command)
Sets the specified CommandInterface as the only command for this state. |
void |
setCommands(CommandInterface[] commands)
Sets the specified array of CommandInterfaces as the commands for this state. |
void |
setTransition(TransitionInterface transition)
Sets the specified TransitionInterface as the only transition for this state. |
void |
setTransitions(TransitionInterface[] transitions)
Sets the specified array of TransitionInterface as the transitions for this state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StateModel(java.lang.String name)
name - name of this state.
public StateModel(java.lang.String name,
CommandInterface command,
TransitionInterface transition)
name - name of this state.command - a command for this state.transition - a transition for this state.| Method Detail |
|---|
public CommandInterface[] getCommands()
getCommands in interface StateModelInterfacepublic java.lang.String getName()
getName in interface StateModelInterfacepublic TransitionInterface[] getTransitions()
getTransitions in interface StateModelInterfacepublic void setCommand(CommandInterface command)
public void setCommands(CommandInterface[] commands)
public void setTransition(TransitionInterface transition)
public void setTransitions(TransitionInterface[] transitions)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||