|
|||||||||||
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.DeltaStateMerger
A state merger that updates the output state according to the changes in each received input state. As such, recognizes value changes, not absolute values, an only considers the changes as they are received, not across all inputs.
Constructor Summary | |
DeltaStateMerger()
Creates an instance, with no output state policy and onChange filtering. |
|
DeltaStateMerger(StateSet target,
boolean onChange)
Creates an instance. |
Method Summary | |
BooleanField.EventIn |
getActiveIn()
While false, input events are ignored. |
StateSetField.EventIn |
getResetIn()
Resets the internal state to that of the input value and always sends an output event. |
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 DeltaStateMerger()
public DeltaStateMerger(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 StateSetField.EventIn getResetIn()
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 |