Class StateModelComplexeStateImpl
- java.lang.Object
-
- org.nuiton.eugene.models.state.xml.StateModelStateImpl
-
- org.nuiton.eugene.models.state.xml.StateModelComplexeStateImpl
-
- All Implemented Interfaces:
StateModelComplexState
,StateModelState
- Direct Known Subclasses:
StateModelStateChartImpl
public class StateModelComplexeStateImpl extends StateModelStateImpl implements StateModelComplexState
StateModelComplexeStateImpl.java- Author:
- chatellier
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,StateModelState>
mapState
States'set of this state-
Fields inherited from class org.nuiton.eugene.models.state.xml.StateModelStateImpl
listTransitions, name
-
-
Constructor Summary
Constructors Constructor Description StateModelComplexeStateImpl()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addState(StateModelState state)
Add a stateStateModelState
getInitialState()
Return the non initial state pointed by the initial state of the state set.Collection<StateModelState>
getStates()
Return the states setboolean
isComplex()
State complex status-
Methods inherited from class org.nuiton.eugene.models.state.xml.StateModelStateImpl
addTransition, getName, getTransitions, isFinal, isInitial, setName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuiton.eugene.models.state.StateModelState
getName, getTransitions
-
-
-
-
Field Detail
-
mapState
protected Map<String,StateModelState> mapState
States'set of this state
-
-
Method Detail
-
addState
public void addState(StateModelState state)
Add a state- Parameters:
state
- the state
-
getStates
public Collection<StateModelState> getStates()
Description copied from interface:StateModelComplexState
Return the states set- Specified by:
getStates
in interfaceStateModelComplexState
- Returns:
- a collection of states
-
isComplex
public boolean isComplex()
Description copied from interface:StateModelState
State complex status- Specified by:
isComplex
in interfaceStateModelState
- Overrides:
isComplex
in classStateModelStateImpl
- Returns:
- true if the state is complex
-
getInitialState
public StateModelState getInitialState()
Description copied from interface:StateModelComplexState
Return the non initial state pointed by the initial state of the state set. Exemple : myComplexeState = ( init1 -> state2 -> state3 -> final4 ) myComplexeState.getInitialState() will return state2.- Specified by:
getInitialState
in interfaceStateModelComplexState
- Returns:
- a state
-
-