|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--gumbo.util.state.AbstractStatePolicy
|
+--gumbo.interact.InteractorPolicy
Default state update policy for use with the standard interactor state values and flags (see InteractorFlag and InteractorFlags). This state policy is stateless and employs fail-fast enforcement, throwing an exception if an invalid state occurs.
| Constructor Summary | |
protected |
InteractorPolicy()
Creates an instance. |
| Method Summary | |
protected void |
checkNewFlags(java.util.Collection flags)
Called by this policy to check new state value flag types. |
protected void |
checkNewState(java.util.Set state)
Only checks new flags; old flags are ignored (stateless). |
static InteractorPolicy |
getInstance()
Gets the singleton instance of this class. |
boolean |
isCompatible(StatePolicy policy)
Returns true if another policy is assignment compatible with this policy. |
| Methods inherited from class gumbo.util.state.AbstractStatePolicy |
checkInitialState, checkTransitState |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected InteractorPolicy()
| Method Detail |
protected void checkNewFlags(java.util.Collection flags)
AbstractStatePolicy
checkNewFlags in class AbstractStatePolicyjava.lang.IllegalStateException - Flags must be type
InteractorFlag.protected void checkNewState(java.util.Set state)
checkNewState in class AbstractStatePolicystate - Reference to the new state (Object).
Never null.
java.lang.IllegalStateException - ???_NONE flags not allowed.public boolean isCompatible(StatePolicy policy)
isCompatible in interface StatePolicyisCompatible in class AbstractStatePolicypolicy - Other state policy. None if null.
public static InteractorPolicy getInstance()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||