Class StateModelStateImpl
- java.lang.Object
-
- org.nuiton.eugene.models.state.xml.StateModelStateImpl
-
- All Implemented Interfaces:
StateModelState
- Direct Known Subclasses:
StateModelComplexeStateImpl
,StateModelSimpleStateImpl
public class StateModelStateImpl extends Object implements StateModelState
StateModelStateImpl.java- Author:
- chatellier
-
-
Field Summary
Fields Modifier and Type Field Description protected List<StateModelTransition>
listTransitions
Transition listprotected String
name
State name
-
Constructor Summary
Constructors Constructor Description StateModelStateImpl()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTransition(StateModelTransition transition)
Add transitionString
getName()
Get the state nameList<StateModelTransition>
getTransitions()
Return the state's transition setboolean
isComplex()
State complex statusboolean
isFinal()
boolean
isInitial()
void
setName(String name)
Set state name
-
-
-
Field Detail
-
name
protected String name
State name
-
listTransitions
protected List<StateModelTransition> listTransitions
Transition list
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:StateModelState
Get the state name- Specified by:
getName
in interfaceStateModelState
- Returns:
- state name
-
setName
public void setName(String name)
Set state name- Parameters:
name
- the name
-
addTransition
public void addTransition(StateModelTransition transition)
Add transition- Parameters:
transition
- a transition
-
getTransitions
public List<StateModelTransition> getTransitions()
Description copied from interface:StateModelState
Return the state's transition set- Specified by:
getTransitions
in interfaceStateModelState
- Returns:
- a list of transition
-
isComplex
public boolean isComplex()
Description copied from interface:StateModelState
State complex status- Specified by:
isComplex
in interfaceStateModelState
- Returns:
- true if the state is complex
-
isFinal
public boolean isFinal()
-
isInitial
public boolean isInitial()
-
-