|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gumbo.util.state.StateMerger | +--gumbo.util.state.AbsoluteStateMerger
A state merger that updates the output state according to the current value of all its input states, which is effectively an or'ing of the input state flags. A state merger that updates the output state according to the value of all its input states. As such, recognizes absolute values, not value changes, and considers all inputs, not just the one received. Note that an internal copy of the input states is NOT maintained.
Constructor Summary | |
AbsoluteStateMerger()
Creates an instance, with no output state policy and onChange filtering. |
|
AbsoluteStateMerger(StateSet target,
boolean onChange)
Creates an instance. |
Method Summary | |
BooleanField.EventIn |
getActiveIn()
While false, input events are ignored. |
protected boolean |
implActiveIn()
Called by the system when activation is changed. |
protected boolean |
implIn(StateSet in)
Called by the system when an input state is received and isOnChange() is satisfied (new and old state different). |
protected void |
implSyncIn()
Called by the system when a sync input is received. |
Methods inherited from class gumbo.util.state.StateMerger |
getInputs, getOut, getSyncIn, getTargetState, isOnChange, newIn |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbsoluteStateMerger()
public AbsoluteStateMerger(StateSet target, boolean onChange)
target
- The target state set used for output. Should have
a state policy consistent with inputs and outputs. If null, a
default one is used, with no policy.onChange
- If true, output events are sent only if the data
value changes.Method Detail |
public BooleanField.EventIn getActiveIn()
getActiveIn
in class StateMerger
protected boolean implIn(StateSet in)
StateMerger
implIn
in class StateMerger
in
- The input state. Never null.
protected boolean implActiveIn()
StateMerger
implActiveIn
in class StateMerger
protected void implSyncIn()
StateMerger
implSyncIn
in class StateMerger
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |