|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.squirrelframework.foundation.fsm.impl.TimedStateImpl<T,S,E,C>
public class TimedStateImpl<T extends StateMachine<T,S,E,C>,S,E,C>
| Field Summary | |
|---|---|
protected Actions<T,S,E,C> |
entryActions
|
protected Actions<T,S,E,C> |
exitActions
|
protected S |
stateId
|
| Method Summary | |
|---|---|
void |
accept(Visitor visitor)
Accepts a #Visitor. |
void |
addChildState(MutableState<T,S,E,C> childState)
|
void |
addEntryAction(Action<T,S,E,C> newAction)
|
void |
addEntryActions(List<Action<T,S,E,C>> newActions)
|
void |
addExitAction(Action<T,S,E,C> newAction)
|
void |
addExitActions(List<Action<T,S,E,C>> newActions)
|
MutableTransition<T,S,E,C> |
addTransitionOn(E event)
|
ImmutableTransition<T,S,E,C> |
checkConflictTransitions(ImmutableTransition<T,S,E,C> target,
List<ImmutableTransition<T,S,E,C>> allTransitions)
|
ImmutableState<T,S,E,C> |
enterByHistory(StateContext<T,S,E,C> stateContext)
Enters this state by its history depending on its HistoryType. |
ImmutableState<T,S,E,C> |
enterDeep(StateContext<T,S,E,C> stateContext)
Enters this state is deep mode: mode if there is one. |
ImmutableState<T,S,E,C> |
enterShallow(StateContext<T,S,E,C> stateContext)
Enters this state is shallow mode: The entry action is executed and the initial state is entered in shallow mode if there is one. |
void |
entry(StateContext<T,S,E,C> stateContext)
Entry state with state context |
void |
exit(StateContext<T,S,E,C> stateContext)
Exit state with state context |
Set<E> |
getAcceptableEvents()
|
List<ImmutableTransition<T,S,E,C>> |
getAllTransitions()
|
C |
getAutoFireContext()
|
E |
getAutoFireEvent()
|
List<ImmutableState<T,S,E,C>> |
getChildStates()
|
StateCompositeType |
getCompositeType()
|
List<Action<T,S,E,C>> |
getEntryActions()
|
List<Action<T,S,E,C>> |
getExitActions()
|
HistoryType |
getHistoryType()
|
long |
getInitialDelay()
|
ImmutableState<T,S,E,C> |
getInitialState()
|
protected String |
getKey(T stateMachine)
|
int |
getLevel()
|
ImmutableState<T,S,E,C> |
getParentState()
|
String |
getPath()
|
S |
getStateId()
|
ImmutableState<T,S,E,C> |
getThis()
|
long |
getTimeInterval()
|
List<ImmutableTransition<T,S,E,C>> |
getTransitions(E event)
|
boolean |
hasChildStates()
|
void |
internalFire(StateContext<T,S,E,C> stateContext)
Notify transitions when receiving event. |
boolean |
isFinalState()
|
boolean |
isParallelState()
|
boolean |
isRegion()
|
boolean |
isRootState()
|
void |
prioritizeTransitions()
|
void |
setAutoFireContext(C context)
|
void |
setAutoFireEvent(E event)
|
void |
setCompositeType(StateCompositeType compositeType)
|
void |
setFinal(boolean isFinal)
|
void |
setHistoryType(HistoryType historyType)
|
void |
setInitialDelay(long initialDelay)
|
void |
setInitialState(MutableState<T,S,E,C> childInitialState)
|
void |
setLevel(int level)
|
void |
setParentState(MutableState<T,S,E,C> parent)
|
void |
setTimeInterval(long timeInterval)
|
String |
toString()
|
void |
verify()
Verify state correctness |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.squirrelframework.foundation.fsm.MutableState |
|---|
addChildState, addEntryAction, addEntryActions, addExitAction, addExitActions, addTransitionOn, prioritizeTransitions, setCompositeType, setFinal, setHistoryType, setInitialState, setLevel, setParentState |
| Methods inherited from interface org.squirrelframework.foundation.fsm.ImmutableState |
|---|
enterByHistory, enterDeep, enterShallow, entry, exit, getAcceptableEvents, getAllTransitions, getChildStates, getCompositeType, getEntryActions, getExitActions, getHistoryType, getInitialState, getLevel, getParentState, getPath, getStateId, getThis, getTransitions, hasChildStates, internalFire, isFinalState, isParallelState, isRegion, isRootState, verify |
| Methods inherited from interface org.squirrelframework.foundation.fsm.Visitable |
|---|
accept |
| Field Detail |
|---|
protected final S stateId
protected final Actions<T extends StateMachine<T,S,E,C>,S,E,C> entryActions
protected final Actions<T extends StateMachine<T,S,E,C>,S,E,C> exitActions
| Method Detail |
|---|
public long getTimeInterval()
getTimeInterval in interface ImmutableTimedState<T extends StateMachine<T,S,E,C>,S,E,C>public E getAutoFireEvent()
getAutoFireEvent in interface ImmutableTimedState<T extends StateMachine<T,S,E,C>,S,E,C>public void setTimeInterval(long timeInterval)
setTimeInterval in interface MutableTimedState<T extends StateMachine<T,S,E,C>,S,E,C>public void setAutoFireEvent(E event)
setAutoFireEvent in interface MutableTimedState<T extends StateMachine<T,S,E,C>,S,E,C>public void setInitialDelay(long initialDelay)
setInitialDelay in interface MutableTimedState<T extends StateMachine<T,S,E,C>,S,E,C>public long getInitialDelay()
getInitialDelay in interface ImmutableTimedState<T extends StateMachine<T,S,E,C>,S,E,C>public void setAutoFireContext(C context)
setAutoFireContext in interface MutableTimedState<T extends StateMachine<T,S,E,C>,S,E,C>public C getAutoFireContext()
getAutoFireContext in interface ImmutableTimedState<T extends StateMachine<T,S,E,C>,S,E,C>public S getStateId()
getStateId in interface ImmutableState<T extends StateMachine<T,S,E,C>,S,E,C>public List<Action<T,S,E,C>> getEntryActions()
getEntryActions in interface ImmutableState<T extends StateMachine<T,S,E,C>,S,E,C>public List<Action<T,S,E,C>> getExitActions()
getExitActions in interface ImmutableState<T extends StateMachine<T,S,E,C>,S,E,C>public List<ImmutableTransition<T,S,E,C>> getAllTransitions()
getAllTransitions in interface ImmutableState<T extends StateMachine<T,S,E,C>,S,E,C>public List<ImmutableTransition<T,S,E,C>> getTransitions(E event)
getTransitions in interface ImmutableState<T extends StateMachine<T,S,E,C>,S,E,C>public Set<E> getAcceptableEvents()
getAcceptableEvents in interface ImmutableState<T extends StateMachine<T,S,E,C>,S,E,C>public void prioritizeTransitions()
prioritizeTransitions in interface MutableState<T extends StateMachine<T,S,E,C>,S,E,C>public void entry(StateContext<T,S,E,C> stateContext)
ImmutableState
entry in interface ImmutableState<T extends StateMachine<T,S,E,C>,S,E,C>public void exit(StateContext<T,S,E,C> stateContext)
ImmutableState
exit in interface ImmutableState<T extends StateMachine<T,S,E,C>,S,E,C>public ImmutableState<T,S,E,C> getParentState()
getParentState in interface ImmutableState<T extends StateMachine<T,S,E,C>,S,E,C>public List<ImmutableState<T,S,E,C>> getChildStates()
getChildStates in interface ImmutableState<T extends StateMachine<T,S,E,C>,S,E,C>public boolean hasChildStates()
hasChildStates in interface ImmutableState<T extends StateMachine<T,S,E,C>,S,E,C>public void setParentState(MutableState<T,S,E,C> parent)
setParentState in interface MutableState<T extends StateMachine<T,S,E,C>,S,E,C>public ImmutableState<T,S,E,C> getInitialState()
getInitialState in interface ImmutableState<T extends StateMachine<T,S,E,C>,S,E,C>public void setInitialState(MutableState<T,S,E,C> childInitialState)
setInitialState in interface MutableState<T extends StateMachine<T,S,E,C>,S,E,C>public ImmutableState<T,S,E,C> enterByHistory(StateContext<T,S,E,C> stateContext)
ImmutableStateHistoryType. The Entry method has to be called
already.
enterByHistory in interface ImmutableState<T extends StateMachine<T,S,E,C>,S,E,C>stateContext - the state context.
HistoryType)public ImmutableState<T,S,E,C> enterDeep(StateContext<T,S,E,C> stateContext)
ImmutableState
enterDeep in interface ImmutableState<T extends StateMachine<T,S,E,C>,S,E,C>stateContext - the event context.
public ImmutableState<T,S,E,C> enterShallow(StateContext<T,S,E,C> stateContext)
ImmutableState
enterShallow in interface ImmutableState<T extends StateMachine<T,S,E,C>,S,E,C>public MutableTransition<T,S,E,C> addTransitionOn(E event)
addTransitionOn in interface MutableState<T extends StateMachine<T,S,E,C>,S,E,C>public void addEntryAction(Action<T,S,E,C> newAction)
addEntryAction in interface MutableState<T extends StateMachine<T,S,E,C>,S,E,C>public void addEntryActions(List<Action<T,S,E,C>> newActions)
addEntryActions in interface MutableState<T extends StateMachine<T,S,E,C>,S,E,C>public void addExitAction(Action<T,S,E,C> newAction)
addExitAction in interface MutableState<T extends StateMachine<T,S,E,C>,S,E,C>public void addExitActions(List<Action<T,S,E,C>> newActions)
addExitActions in interface MutableState<T extends StateMachine<T,S,E,C>,S,E,C>public void internalFire(StateContext<T,S,E,C> stateContext)
ImmutableState
internalFire in interface ImmutableState<T extends StateMachine<T,S,E,C>,S,E,C>public boolean isRootState()
isRootState in interface ImmutableState<T extends StateMachine<T,S,E,C>,S,E,C>public boolean isFinalState()
isFinalState in interface ImmutableState<T extends StateMachine<T,S,E,C>,S,E,C>public void setFinal(boolean isFinal)
setFinal in interface MutableState<T extends StateMachine<T,S,E,C>,S,E,C>public void accept(Visitor visitor)
Visitable#Visitor.
accept in interface Visitablevisitor - the visitor.public int getLevel()
getLevel in interface ImmutableState<T extends StateMachine<T,S,E,C>,S,E,C>public void setLevel(int level)
setLevel in interface MutableState<T extends StateMachine<T,S,E,C>,S,E,C>public void addChildState(MutableState<T,S,E,C> childState)
addChildState in interface MutableState<T extends StateMachine<T,S,E,C>,S,E,C>public HistoryType getHistoryType()
getHistoryType in interface ImmutableState<T extends StateMachine<T,S,E,C>,S,E,C>public void setHistoryType(HistoryType historyType)
setHistoryType in interface MutableState<T extends StateMachine<T,S,E,C>,S,E,C>public StateCompositeType getCompositeType()
getCompositeType in interface ImmutableState<T extends StateMachine<T,S,E,C>,S,E,C>public void setCompositeType(StateCompositeType compositeType)
setCompositeType in interface MutableState<T extends StateMachine<T,S,E,C>,S,E,C>public boolean isParallelState()
isParallelState in interface ImmutableState<T extends StateMachine<T,S,E,C>,S,E,C>public String toString()
toString in class Objectpublic boolean isRegion()
isRegion in interface ImmutableState<T extends StateMachine<T,S,E,C>,S,E,C>public void verify()
ImmutableState
verify in interface ImmutableState<T extends StateMachine<T,S,E,C>,S,E,C>
public ImmutableTransition<T,S,E,C> checkConflictTransitions(ImmutableTransition<T,S,E,C> target,
List<ImmutableTransition<T,S,E,C>> allTransitions)
public ImmutableState<T,S,E,C> getThis()
getThis in interface ImmutableState<T extends StateMachine<T,S,E,C>,S,E,C>protected String getKey(T stateMachine)
public String getPath()
getPath in interface ImmutableState<T extends StateMachine<T,S,E,C>,S,E,C>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||