public class BasicState extends Object implements State
| Modifier and Type | Field and Description |
|---|---|
protected List<State> |
historyChildrens |
protected boolean |
historyState |
static String |
ROOT_STATE_NAME |
| Modifier | Constructor and Description |
|---|---|
protected |
BasicState(String name,
State parent,
DoneData doneData,
boolean finalState) |
protected boolean historyState
public static final String ROOT_STATE_NAME
protected BasicState(String name, State parent, DoneData doneData, boolean finalState) throws ConfigurationException
ConfigurationExceptionpublic static BasicState createRootState() throws ConfigurationException
ConfigurationExceptionpublic static BasicState createBasicState(String name, State parent) throws ConfigurationException
ConfigurationExceptionpublic static BasicState createFinalState(String name, State parent, DoneData donedata) throws ConfigurationException
ConfigurationExceptionpublic static BasicState createParallelState(String name, State parent) throws ConfigurationException
ConfigurationExceptionpublic boolean isRootState()
isRootState in interface Statepublic Transition addTransition(String event, String targetState)
addTransition in interface Statepublic Transition addTransition(State source, String event, String targetState)
addTransition in interface Statepublic Transition addTransition(State source, String event, String targetState, String guardCondition)
addTransition in interface Statepublic Transition addTransition(String event, String targetState, String guarCondition)
addTransition in interface Statepublic Transition addInternalTransition(String event, String targetState)
addInternalTransition in interface Statepublic Transition addInternalTransition(String event, String targetState, String guarCondition)
addInternalTransition in interface Statepublic Transition addInternalTransition(State source, String event, String targetState)
addInternalTransition in interface Statepublic Transition addInternalTransition(State source, String event, String targetState, String guarCondition)
addInternalTransition in interface Statepublic int compareTo(State right)
compareTo in interface Comparable<State>public boolean isDescendant(State otherState)
isDescendant in interface Statepublic List<Transition> getTransitions()
getTransitions in interface Statepublic void addTransition(Transition transition)
addTransition in interface Statepublic List<Executable> getOnEntryExecutables()
getOnEntryExecutables in interface Statepublic void addOnEntryExecutable(Executable varName)
addOnEntryExecutable in interface Statepublic void addOnEntryExecutables(List<Executable> varNames)
addOnEntryExecutables in interface Statepublic void clearAndSetOnEntryExecutables(List<Executable> varNames)
clearAndSetOnEntryExecutables in interface Statepublic List<Executable> getOnExitExecutables()
getOnExitExecutables in interface Statepublic void addOnExitExecutable(Executable executable)
addOnExitExecutable in interface Statepublic void addOnExitExecutables(List<Executable> executables)
addOnExitExecutables in interface Statepublic void clearAndSetOnExitExecutables(List<Executable> executables)
clearAndSetOnExitExecutables in interface Statepublic List<Invoke> getInvokes()
getInvokes in interface Statepublic void addInvokes(List<Invoke> invokes)
addInvokes in interface Statepublic void clearAndSetInvokes(List<Invoke> invokes)
clearAndSetInvokes in interface Statepublic DataModel getDataModel()
getDataModel in interface Statepublic List<State> getBreadCrumb()
getBreadCrumb in interface Statepublic int getDocumentOrder()
getDocumentOrder in interface Statepublic void setDocumentOrder(int documentOrder)
setDocumentOrder in interface Statepublic boolean hasChildrens()
hasChildrens in interface Statepublic List<State> getChildrens()
getChildrens in interface Statepublic List<State> getHistoryStates()
getHistoryStates in interface Statepublic InitialState getInitialState()
getInitialState in interface Statepublic void setInitialState(InitialState initialState) throws ConfigurationException
setInitialState in interface StateConfigurationExceptionpublic void setInitialStateName(String initialStateName) throws ConfigurationException
setInitialStateName in interface StateConfigurationExceptionpublic boolean isHistoryState()
isHistoryState in interface Statepublic HistoryTypes getHistoryType()
getHistoryType in interface Statepublic boolean isParallel()
isParallel in interface Statepublic void setParallel(boolean parallel)
setParallel in interface Statepublic DoneData getDoneData()
getDoneData in interface Statepublic static void main(String[] args) throws ConfigurationException
ConfigurationExceptionCopyright © 2015. All rights reserved.