Class StateModelTransitionImpl
- java.lang.Object
-
- org.nuiton.eugene.models.state.xml.StateModelTransitionImpl
-
- All Implemented Interfaces:
StateModelTransition
public class StateModelTransitionImpl extends Object implements StateModelTransition
StateModelTransitionImpl- Author:
- chatellier
-
-
Constructor Summary
Constructors Constructor Description StateModelTransitionImpl()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StateModelState
getDestinationState()
Return the destination stateString
getEvent()
Return the event nameString
getStateName()
Get toState namevoid
setEvent(String event)
Set transition eventvoid
setState(StateModelState state)
Permet de positionner un lien sur l'instance de l'état.void
setToState(String stateName)
ToState name
-
-
-
Field Detail
-
stateName
protected String stateName
Destination state name
-
event
protected String event
Event
-
state
protected StateModelState state
Destination state reference
-
-
Method Detail
-
setToState
public void setToState(String stateName)
ToState name- Parameters:
stateName
- name
-
getStateName
public String getStateName()
Get toState name- Returns:
- the stateName
-
setState
public void setState(StateModelState state)
Permet de positionner un lien sur l'instance de l'état. On ne peut pas le faire directement car le fichier xml n'est potentielement par ordonne, et par concequent, les etat n'ont pas encore ete traite.- Parameters:
state
- state to set
-
getDestinationState
public StateModelState getDestinationState()
Description copied from interface:StateModelTransition
Return the destination state- Specified by:
getDestinationState
in interfaceStateModelTransition
- Returns:
- a state
-
getEvent
public String getEvent()
Description copied from interface:StateModelTransition
Return the event name- Specified by:
getEvent
in interfaceStateModelTransition
- Returns:
- the event name
-
setEvent
public void setEvent(String event)
Set transition event- Parameters:
event
- event name
-
-