public final class AlwaysTriggers extends PrimaryBehavior
Always triggers the computation of a result with the same timestamp as the notice. It also retriggers the computation of subsequent dependents up to the next appearance of itself.
Proxied.Abstract
Constructor and Description |
---|
AlwaysTriggers() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
doValidate()
Does validate this behavior.
|
boolean |
isResultFetched(PointValue noticeValue,
ResultValue resultValue)
Asks if result value has been fetched.
|
boolean |
prepareTrigger(PointValue noticeValue,
Batch batch)
Allows a behavior to prepare for a call to
Behavior.trigger(org.rvpf.base.value.PointValue, org.rvpf.metadata.processor.Batch) . |
void |
trigger(PointValue noticeValue,
Batch batch)
Triggers the computation of results if needed.
|
addInputToResult, equals, getAfterResultSyncPosition, getInputSync, getResultSync, getResultSyncStamp, getSelectSyncPosition, getSinceResultSyncPosition, getSinceSyncPosition, getSync, getSynchronizedResultStamp, getSyncStamp, hasAfterResultSyncPosition, hashCode, hasSelectSyncPosition, hasSinceResultSyncPosition, hasSinceSyncPosition, isInSync, isPrimary, isSelectPreviousValue, prepareSelect, select, setUp, supportsExtrapolated, supportsInterpolated, validate, validateNoLoop, validateNotSynchronized
getBehavior, getBooleanInputValue, getDoubleInputValue, getElapsedInputValue, getEntity, getInput, getInputPoint, getName, getNext, getParams, getProxyEntity, getRelation, getRelations, getRelationSync, getRelationSyncEntity, getResultPoint, getThisLogger, getTransform, isInherited, isInputExtrapolated, isInputInterpolated, isInputRequired, isInputValid, isSynchronized, newResultValue, setInherited, setNext, setRelation, tearDown, toString, validateNoResults, validateTransform
public boolean isResultFetched(PointValue noticeValue, ResultValue resultValue)
isResultFetched
in interface Behavior
isResultFetched
in class AbstractBehavior
noticeValue
- The triggering point valueresultValue
- The the result value.public boolean prepareTrigger(PointValue noticeValue, Batch batch)
Behavior.trigger(org.rvpf.base.value.PointValue, org.rvpf.metadata.processor.Batch)
.
Will be called until all the batch behaviors return true.
On the first pass, asks for the next notice.
On the second pass, if there is a next notice, asks for all the results between this notice and the next. Otherwise, asks for all the results at or after the notice.
prepareTrigger
in interface Behavior
prepareTrigger
in class AbstractBehavior
noticeValue
- A point value acting as potential trigger.batch
- The current batch context.public void trigger(PointValue noticeValue, Batch batch)
This is called after all the calls to the Behavior.prepareTrigger(org.rvpf.base.value.PointValue, org.rvpf.metadata.processor.Batch)
method have returned true.
Sets up a result at the notice's time.
Also retriggers the computation of all the results btween this notice and the next, defaulting to the end of time.
trigger
in interface Behavior
trigger
in class AbstractBehavior
noticeValue
- A point value acting as potential trigger.batch
- The current batch context.protected boolean doValidate()
doValidate
in class AbstractBehavior
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.