public final class TriggersNew extends PrimaryBehavior
This behavior only triggers the computation of a result with the same timestamp as the notice if no result exist with a timestamp later or equal, or at least not before the next notice.
Proxied.Abstract| Constructor and Description |
|---|
TriggersNew() |
| 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, validateNotSynchronizedgetBehavior, 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, validateTransformpublic boolean isResultFetched(PointValue noticeValue, ResultValue resultValue)
isResultFetched in interface BehaviorisResultFetched in class AbstractBehaviornoticeValue - 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 a result at or after the notice.
On the second pass, if the queried result is found, asks for the next notice on this point.
prepareTrigger in interface BehaviorprepareTrigger in class AbstractBehaviornoticeValue - 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.
If no result where found, or at least not before the next notice, then sets up the new result.
trigger in interface Behaviortrigger in class AbstractBehaviornoticeValue - A point value acting as potential trigger.batch - The current batch context.protected boolean doValidate()
doValidate in class AbstractBehaviorCopyright © 2003-2019 Serge Brisson. All Rights Reserved.