Package org.chenile.stm.model
Class StateDescriptor
java.lang.Object
org.chenile.stm.model.StateDescriptor
- All Implemented Interfaces:
TransientActionsAwareDescriptor
- Direct Known Subclasses:
AutomaticStateDescriptor
,ManualStateDescriptor
-
Field Summary
Modifier and TypeFieldDescriptionprotected STMAction<?>
protected STMAction<?>
protected boolean
private FlowDescriptor
private String
protected String
protected boolean
protected boolean
Is this state manual? (or a view state?)private Map<String,
Transition> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddMetaData
(String name, String value) addTransition
(Transition transition) boolean
entryAction
(STMAction<?> entryAction) exitAction
(STMAction<?> exitAction) flow()
STMAction<?>
STMAction<?>
getFlow()
getId()
boolean
boolean
boolean
void
merge
(StateDescriptor sd) void
setEntryAction
(STMAction<?> entryAction) void
setExitAction
(STMAction<?> exitAction) void
setFinalState
(boolean endState) void
setFlow
(FlowDescriptor flow) void
void
void
setInitialState
(boolean initialState) void
setManualState
(boolean manualState) void
setMetadata
(Map<String, String> metadata) void
setTransitions
(Map<String, Transition> transitions) toString()
toXml()
void
validate()
void
validate
(STMFlowStore flowStore)
-
Field Details
-
id
-
initialState
protected boolean initialState -
entryAction
-
finalState
protected boolean finalState -
metadata
-
exitAction
-
manualState
protected boolean manualStateIs this state manual? (or a view state?) -
transitions
-
flowId
-
flow
-
-
Constructor Details
-
StateDescriptor
public StateDescriptor()
-
-
Method Details
-
isFinalState
public boolean isFinalState() -
addMetaData
-
getMetadata
-
setFinalState
public void setFinalState(boolean endState) -
makeFinalState
-
getEntryAction
-
setEntryAction
- Specified by:
setEntryAction
in interfaceTransientActionsAwareDescriptor
-
entryAction
-
getExitAction
-
setMetadata
-
setExitAction
- Specified by:
setExitAction
in interfaceTransientActionsAwareDescriptor
-
exitAction
-
isManualState
public boolean isManualState() -
setManualState
public void setManualState(boolean manualState) -
getFlowId
-
setFlowId
-
setId
-
id
-
getId
-
setInitialState
public void setInitialState(boolean initialState) -
isInitialState
public boolean isInitialState() -
makeInitialState
-
setTransitions
-
getTransitions
-
addTransition
- Throws:
STMException
-
on
- Throws:
STMException
-
toString
-
checkIfonlyRetrievalTransitions
public boolean checkIfonlyRetrievalTransitions() -
validate
- Throws:
STMException
-
validate
- Throws:
STMException
-
getAllTransitionsIds
-
merge
-
toXml
-
flow
-
getFlow
-
setFlow
-