|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.evelopers.unimod.validation.ValidationMessenger
Implements all validation listeners and messages about validation
events to PrintStream
. Default PrintStream
is
System.out
.
Field Summary | |
(package private) java.io.PrintStream |
out
|
Constructor Summary | |
ValidationMessenger()
|
|
ValidationMessenger(java.io.PrintStream out)
|
Method Summary | |
void |
badTransitionFromInitState(StateMachine sm,
Transition transition)
Called when transition from init state has trigger event or guard condition. |
void |
incomingTransitionToInitState(StateMachine sm,
Transition transition)
Called when there is incoming transition to init state. |
void |
incompleteGuardSet(StateMachine sm,
State state,
Event event,
Guard guard)
CallBack. |
void |
inconsistentGuardSet(StateMachine sm,
Transition t1,
Transition t2,
Guard guard)
CallBack. |
void |
noEventOnTransition(StateMachine sm,
Transition transition)
Called when there is no event on transition from non-init state |
void |
noInitState(StateMachine sm,
State state)
Is called when composite attainable state without initial state is found. |
void |
noTransitionFromInitState(StateMachine sm,
State initState)
Called when there is no transition from init state. |
void |
notRootStateMachineHasEventProviders(StateMachine sm)
Called when not root state machine has associated event providers that is prohibited. |
void |
outgoingTransitionFromFinalState(StateMachine sm,
Transition transition)
Called when there is outgoing transition from final state. |
void |
redundantElseTransitions(StateMachine sm,
State state,
Event e,
int elseTransitionsNumber)
|
void |
redundantInitStates(StateMachine sm,
State state,
int initStatesNumber)
Is called when attainable composite state has more then one initial state. |
void |
redundantTransitionsFromInitState(StateMachine sm,
State initState,
int transitionsNumber)
Called when there is more then one transition from init state. |
void |
unattainableState(StateMachine sm,
State state)
CallBack. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
java.io.PrintStream out
Constructor Detail |
public ValidationMessenger()
public ValidationMessenger(java.io.PrintStream out)
Method Detail |
public void noInitState(StateMachine sm, State state)
StructureListener
noInitState
in interface StructureListener
state
- composite state without initial state.sm
- state machine that contains this state.public void redundantInitStates(StateMachine sm, State state, int initStatesNumber)
StructureListener
redundantInitStates
in interface StructureListener
state
- composite state that has more then one initial statesm
- state machine that contains this state.initStatesNumber
- public void unattainableState(StateMachine sm, State state)
StructureListener
unattainableState
in interface StructureListener
state
- unattainable state.sm
- StateMachine
that contains state
.public void incompleteGuardSet(StateMachine sm, State state, Event event, Guard guard)
CompletenessListener
incompleteGuardSet
in interface CompletenessListener
state
- source state of transitions with incomplete guard conditions set.event
- on transitions with incomplete guard conditions set.guard
- residue of the guard conditions set. If transition from the
state
on event
with this guard
is added then guard conditions set will became complete.public void inconsistentGuardSet(StateMachine sm, Transition t1, Transition t2, Guard guard)
ConsistencyListener
inconsistentGuardSet
in interface ConsistencyListener
sm
- StateMachine
that contains these transitions.t1
- first Transition
in pair.t2
- second Transition
in pair.guard
- intersection of the guards on transitions t1, t2
.
If guard on the t1
xor t2
are conjunced with
guard
the guard conditions set will became consistent.public void redundantElseTransitions(StateMachine sm, State state, Event e, int elseTransitionsNumber)
redundantElseTransitions
in interface ConsistencyListener
public void notRootStateMachineHasEventProviders(StateMachine sm)
StructureListener
notRootStateMachineHasEventProviders
in interface StructureListener
sm
- public void badTransitionFromInitState(StateMachine sm, Transition transition)
StructureListener
badTransitionFromInitState
in interface StructureListener
sm
- public void noTransitionFromInitState(StateMachine sm, State initState)
StructureListener
noTransitionFromInitState
in interface StructureListener
public void redundantTransitionsFromInitState(StateMachine sm, State initState, int transitionsNumber)
StructureListener
redundantTransitionsFromInitState
in interface StructureListener
public void incomingTransitionToInitState(StateMachine sm, Transition transition)
StructureListener
incomingTransitionToInitState
in interface StructureListener
public void outgoingTransitionFromFinalState(StateMachine sm, Transition transition)
StructureListener
outgoingTransitionFromFinalState
in interface StructureListener
public void noEventOnTransition(StateMachine sm, Transition transition)
StructureListener
noEventOnTransition
in interface StructureListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |