|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.evelopers.unimod.validation.StateMachineValidator
State machine structure validator.
Implements the following validation rules:
StructureListener
, validateStructure()
;
AttainabilityListener
, #validateAttainability()
;
ConsistencyListener
, validateConsistency()
;
CompletenessListener
, validateCompleteness()
;
Constructor Summary | |
protected |
StateMachineValidator(StateMachine sm)
|
Method Summary | |
boolean |
addCompletenessListener(CompletenessListener listener)
|
boolean |
addConsistencyListener(ConsistencyListener listener)
|
boolean |
addStructureListener(StructureListener listener)
|
static StateMachineValidator |
createValidator(StateMachine sm)
|
java.util.Collection |
getAttainableStates()
|
protected StateMachine |
getStateMachine()
|
boolean |
removeCompletenessListener(CompletenessListener listener)
|
boolean |
removeConsistencyListener(ConsistencyListener listener)
|
boolean |
removeStructureListener(StructureListener listener)
|
void |
validateCompleteness()
Validate completeness of top-state. |
void |
validateCompleteness(State state)
Validates completeness of state and its lief-descedants os state .
|
void |
validateConsistency()
Validates consistency of top-state. |
void |
validateConsistency(State state)
Validates consistency of state its descendants and ancestors. |
void |
validateStructure()
Validates structure. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected StateMachineValidator(StateMachine sm)
Method Detail |
public static StateMachineValidator createValidator(StateMachine sm)
public boolean addStructureListener(StructureListener listener)
public boolean removeStructureListener(StructureListener listener)
public boolean addConsistencyListener(ConsistencyListener listener)
public boolean removeConsistencyListener(ConsistencyListener listener)
public boolean addCompletenessListener(CompletenessListener listener)
public boolean removeCompletenessListener(CompletenessListener listener)
public void validateStructure()
public void validateConsistency()
validateConsistency(State)
public void validateConsistency(State state)
state
its descendants and ancestors.
state
- state consistency of what should be checked.ConsistencyValidator.validateConsistency(com.evelopers.unimod.core.stateworks.StateMachine, com.evelopers.unimod.core.stateworks.State)
public void validateCompleteness()
validateCompleteness(State)
public void validateCompleteness(State state)
state
.
Lief-descendants are descendents of state
which are not composite.
Note: completeness of state
will be checked only if
state
isn't composite.
state
- state completeness of what should be checked.CompletenessValidator.validateCompleteness(com.evelopers.unimod.core.stateworks.StateMachine, com.evelopers.unimod.core.stateworks.State)
public java.util.Collection getAttainableStates()
protected StateMachine getStateMachine()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |