public class ReplicatedBehavior extends PrimaryBehavior
Proxied.Abstract| Constructor and Description |
|---|
ReplicatedBehavior() |
| 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 |
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 |
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, isSynchronized, newResultValue, prepareTrigger, setInherited, setNext, setRelation, tearDown, toString, validateNoResults, validateTransformpublic final boolean isResultFetched(PointValue noticeValue, ResultValue resultValue)
isResultFetched in interface BehaviorisResultFetched in class AbstractBehaviornoticeValue - The triggering point valueresultValue - The the result value.public 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 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.
Since we are replicating, it would be reasonable for the notice and the result to refer to the same point definition. In order to be able to get the result value from its locally configured Store, we ask the Batch to forget about the notice, then set up a result with the notice as input.
trigger in interface Behaviortrigger in class AbstractBehaviornoticeValue - A point value acting as potential trigger.batch - The current batch context.protected boolean doValidate()
Because of its special interaction with the Batch, this Behavior is intolerant of others on the same relation.
If the input replicates itself, it is not allowed to have other dependents on the same Processor.
doValidate in class AbstractBehaviorCopyright © 2003-2019 Serge Brisson. All Rights Reserved.