|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.amattioli.workstate.core.MetaState
it.amattioli.workstate.core.MetaRealState
public abstract class MetaRealState
A MetaRealState is the configuration of a RealState, a state in which
a Machine can remain indefinitely. A real state must have an
identifier (called tag) and may have:
| Constructor Summary | |
|---|---|
MetaRealState(String tag,
StateAction entry,
StateAction exit)
Build a new MetaRealState given its tag and its entry and exit
action. |
|
| Method Summary | |
|---|---|
void |
addAttribute(MetaAttribute newAttribute)
Add an attribute definition to this MetaState. |
void |
checkAttribute(String attributeName,
Object attributeValue)
|
boolean |
equals(Object o)
Two MetaStates are equals if they have the same class and the same tag. |
StateAction |
getEntryAction()
|
StateAction |
getExitAction()
|
String |
getTag()
|
Map<String,Object> |
initialAttributesValues()
|
boolean |
isAllowedAttribute(String attributeName)
Check if this MetaState has a parameter. |
String |
toString()
|
| Methods inherited from class it.amattioli.workstate.core.MetaState |
|---|
addAvailableEvents, addTransition, checkParentState, descendFrom, findTriggeredTransition, getAvailableEvents, getConfig, getParent, newState, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface it.amattioli.workstate.info.Receiver |
|---|
receive |
| Constructor Detail |
|---|
public MetaRealState(String tag,
StateAction entry,
StateAction exit)
MetaRealState given its tag and its entry and exit
action. The tag cannot be null or an empty string.
tag - this state identifierentry - the state entry action or null if no action must be executed
when the state is enteredexit - the state exit action or null if no action must be executed
when the state is exited
NullPointerException - if the tag is null
IllegalArgumentException - if the tag is an empty string| Method Detail |
|---|
public String getTag()
public StateAction getEntryAction()
public StateAction getExitAction()
public void addAttribute(MetaAttribute newAttribute)
MetaState.
newAttribute - the new attribute definition
NullPointerException - if the newAttribute parameter is null
IllegalArgumentException - if an attribute with the same tag already existspublic boolean isAllowedAttribute(String attributeName)
MetaState has a parameter.
attributeName - the parameter tag
MetaState has a parameter with the given tag
public void checkAttribute(String attributeName,
Object attributeValue)
throws WorkflowException
WorkflowExceptionpublic Map<String,Object> initialAttributesValues()
public String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||