public class TimedStateImpl<T extends StateMachine<T,S,E,C>,S,E,C> extends Object implements ImmutableTimedState<T,S,E,C>, MutableTimedState<T,S,E,C>
| Modifier and Type | Field and Description |
|---|---|
protected Actions<T,S,E,C> |
entryActions |
protected Actions<T,S,E,C> |
exitActions |
protected S |
stateId |
| Modifier and Type | Method and Description |
|---|---|
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<? extends Action<T,S,E,C>> newActions) |
void |
addExitAction(Action<T,S,E,C> newAction) |
void |
addExitActions(List<? extends 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 |
isChildStateOf(ImmutableState<T,S,E,C> input) |
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddChildState, addEntryAction, addEntryActions, addExitAction, addExitActions, addTransitionOn, prioritizeTransitions, setCompositeType, setFinal, setHistoryType, setInitialState, setLevel, setParentStateenterByHistory, enterDeep, enterShallow, entry, exit, getAcceptableEvents, getAllTransitions, getChildStates, getCompositeType, getEntryActions, getExitActions, getHistoryType, getInitialState, getLevel, getParentState, getPath, getStateId, getThis, getTransitions, hasChildStates, internalFire, isChildStateOf, isFinalState, isParallelState, isRegion, isRootState, verifyprotected 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
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)
ImmutableStateentry in interface ImmutableState<T extends StateMachine<T,S,E,C>,S,E,C>public void exit(StateContext<T,S,E,C> stateContext)
ImmutableStateexit 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)
ImmutableStateenterDeep 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)
ImmutableStateenterShallow 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<? extends 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<? extends 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)
ImmutableStateinternalFire 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)
VisitableVisitor.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 boolean isRegion()
isRegion in interface ImmutableState<T extends StateMachine<T,S,E,C>,S,E,C>public void verify()
ImmutableStateverify 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>public boolean isChildStateOf(ImmutableState<T,S,E,C> input)
isChildStateOf in interface ImmutableState<T extends StateMachine<T,S,E,C>,S,E,C>Copyright © 2013–2016. All rights reserved.