|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.evelopers.unimod.validation.StructureVisitor com.evelopers.unimod.validation.StructureValidator
Validates structure (checks that every attainable composite state has initial state).
Also validate that only root state machine has associations with EventProviderHandler
s
Field Summary | |
protected java.util.Set |
attainableStates
Set of attainable states |
protected java.util.Set |
initialStateLess
Set of attainable composite states which have no initial states |
protected java.util.Set |
notRootMachinesWithEventProviders
Set of not root state machines that has associated event providers |
protected java.util.Map |
redundantInitStates
|
Constructor Summary | |
(package private) |
StructureValidator()
|
Method Summary | |
boolean |
addStrucutreListener(StructureListener listener)
Adds listener to list of structure listeners. |
java.util.Set |
getAttainableStates()
|
java.util.Set |
getNoInitState()
Returns set of attainable composite states which have no initial states. |
java.util.Set |
getNotRootMachinesWithEventProviders()
|
java.util.Map |
getRedundantInitStates()
Returns map of attainable composite states which have more then one initial state. |
boolean |
removeStrucutreListener(StructureListener listener)
Removes listener from list of structure listeners. |
void |
validateStructure(StateMachine sm)
Checks if every attainable composite state of sm has
initial state. |
void |
visit(State state)
Visits states and builds set of attainable states. |
protected void |
visitIncludedStateMachines(State state)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Set attainableStates
protected java.util.Set initialStateLess
protected java.util.Map redundantInitStates
protected java.util.Set notRootMachinesWithEventProviders
Constructor Detail |
StructureValidator()
Method Detail |
public boolean addStrucutreListener(StructureListener listener)
listener
to list of structure listeners.
listener
- listener to add
StructureListener
public boolean removeStrucutreListener(StructureListener listener)
listener
from list of structure listeners.
listener
- listener to remove.
listener
.StructureListener
public void validateStructure(StateMachine sm)
sm
has
initial state. Every structure listener will be notified about every
attainable composite state that has no initial substate.
sm
- StateMachine
to validate.public void visit(State state)
state
- state to visit.protected void visitIncludedStateMachines(State state)
public java.util.Set getNotRootMachinesWithEventProviders()
public java.util.Set getAttainableStates()
public java.util.Set getNoInitState()
public java.util.Map getRedundantInitStates()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |