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>mapStateStates'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 voidaddState(StateModelState state)Add a stateStateModelStategetInitialState()Return the non initial state pointed by the initial state of the state set.Collection<StateModelState>getStates()Return the states setbooleanisComplex()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:StateModelComplexStateReturn the states set- Specified by:
getStatesin interfaceStateModelComplexState- Returns:
- a collection of states
-
isComplex
public boolean isComplex()
Description copied from interface:StateModelStateState complex status- Specified by:
isComplexin interfaceStateModelState- Overrides:
isComplexin classStateModelStateImpl- Returns:
- true if the state is complex
-
getInitialState
public StateModelState getInitialState()
Description copied from interface:StateModelComplexStateReturn 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:
getInitialStatein interfaceStateModelComplexState- Returns:
- a state
-
-