|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.evelopers.unimod.validation.CompletenessCheckVisitor com.evelopers.unimod.validation.CompletenessValidator
Validates completeness (every state has complete system of transitions for every event).
Constructor Summary | |
(package private) |
CompletenessValidator()
|
Method Summary | |
boolean |
addCompletenessListener(CompletenessListener listener)
Adds listener to list of completeness listeners. |
protected void |
checkState(State state)
|
protected void |
fireIncompleteGuardSet(StateMachine sm,
State state,
Event event,
Guard guard)
|
boolean |
removeCompletenessListener(CompletenessListener listener)
Removes listener from list of completeness listeners. |
void |
setSm(StateMachine sm)
|
void |
validateCompleteness(StateMachine sm)
Checks completenes of transitions for set that is { state } joined
with its descendants minus composite states. |
void |
validateCompleteness(StateMachine sm,
State state)
Check completeness for single state. |
boolean |
visit(ModelElement e)
Called by ModelElement.accept(com.evelopers.unimod.core.ModelVisitor) method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
CompletenessValidator()
Method Detail |
public boolean addCompletenessListener(CompletenessListener listener)
listener
to list of completeness listeners.
listener
- listener to add
CompletenessListener
public boolean removeCompletenessListener(CompletenessListener listener)
listener
from list of completeness listeners.
listener
- listener to remove.
listener
.CompletenessListener
public void validateCompleteness(StateMachine sm)
state
} joined
with its descendants minus composite states. State is complete when
state has complete guard conditions set for every event, i.e.
for every combination of input actions values there is a transition. Every
completeness listener will be notified about every incomplete system of
transitions.
sm
- StateMachine
to validate.public void validateCompleteness(StateMachine sm, State state)
state
- non composite stateprotected void fireIncompleteGuardSet(StateMachine sm, State state, Event event, Guard guard)
fireIncompleteGuardSet
in class CompletenessCheckVisitor
public void setSm(StateMachine sm)
public boolean visit(ModelElement e) throws VisitorException
ModelVisitor
ModelElement.accept(com.evelopers.unimod.core.ModelVisitor)
method.
visit
in interface ModelVisitor
e
- model element to visit
VisitorException
protected void checkState(State state) throws VisitorException
VisitorException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |