public final class ControlsBehavior extends PrimaryBehavior
Always triggers the computation of a result with the same timestamp as the notice.
It is always associated with the only input of a control transform.
Proxied.Abstract| Constructor and Description |
|---|
ControlsBehavior() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doValidate()
Does validate this behavior.
|
boolean |
prepareSelect(ResultValue resultValue,
Batch batch)
Allows a behavior to prepare for a call to
Behavior.select(org.rvpf.base.value.ResultValue, org.rvpf.metadata.processor.Batch). |
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). |
boolean |
select(ResultValue resultValue,
Batch batch)
Selects input values for computing the result.
|
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, 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, isResultFetched, isSynchronized, newResultValue, setInherited, setNext, setRelation, tearDown, toString, validateNoResults, validateTransformpublic boolean prepareSelect(ResultValue resultValue, Batch batch)
Behavior.select(org.rvpf.base.value.ResultValue, org.rvpf.metadata.processor.Batch).
The result value has been triggered either by this behavior or the behavior of an other input. Will be called until all the batch behaviors return true.
prepareSelect in interface BehaviorprepareSelect in class PrimaryBehaviorresultValue - The result value to be computed.batch - The current batch context.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.
prepareTrigger in interface BehaviorprepareTrigger in class AbstractBehaviornoticeValue - A point value acting as potential trigger.batch - The current batch context.public boolean select(ResultValue resultValue, Batch batch)
This is called after all the calls to the Behavior.prepareSelect(org.rvpf.base.value.ResultValue, org.rvpf.metadata.processor.Batch)
method have returned true.
select in interface Behaviorselect in class PrimaryBehaviorresultValue - The result value to be computed.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 the notice is the last value of its point, sets up a result at the notice's time.
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.