public final class SummarizesBehavior extends SelectsBehavior
Proxied.Abstract| Modifier and Type | Field and Description |
|---|---|
static String |
RESULT_POSITION_PARAM
Specifies how to stamp the result.
|
static String |
RESULT_POSITION_PROPERTY
Specifies the default result position.
|
static String |
REVERSE_INTERVAL_PARAM
Reverses the interval: "open to closed" vs "closed to open".
|
static String |
REVERSE_INTERVAL_PROPERTY
Reverses the intervals by default.
|
static String |
RUNNING_INTERVAL_PARAM
Triggers running interval results.
|
static String |
STEPS_PARAM
The number of steps for one interval.
|
| Constructor and Description |
|---|
SummarizesBehavior() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doValidate()
Does validate this behavior.
|
boolean |
equals(Object other)
Extends comparison to the behaviors chain.
|
int |
hashCode() |
Summary |
newResultValue(Optional<DateTime> stamp)
Returns a new result value.
|
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.
|
boolean |
setUp(Metadata metadata,
ProxyEntity proxyEntity)
Sets up the instance for action.
|
void |
trigger(PointValue noticeValue,
Batch batch)
Triggers the computation of results if needed.
|
isInputRequired, isStartStopaddInputToResult, getAfterResultSyncPosition, getInputSync, getResultSync, getResultSyncStamp, getSelectSyncPosition, getSinceResultSyncPosition, getSinceSyncPosition, getSync, getSynchronizedResultStamp, getSyncStamp, hasAfterResultSyncPosition, hasSelectSyncPosition, hasSinceResultSyncPosition, hasSinceSyncPosition, isInSync, isPrimary, isSelectPreviousValue, 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, isInputValid, isResultFetched, isSynchronized, setInherited, setNext, setRelation, tearDown, toString, validateNoResults, validateTransformpublic static final String RESULT_POSITION_PARAM
public static final String RESULT_POSITION_PROPERTY
public static final String REVERSE_INTERVAL_PARAM
public static final String REVERSE_INTERVAL_PROPERTY
public static final String RUNNING_INTERVAL_PARAM
public static final String STEPS_PARAM
public boolean equals(Object other)
Extends comparison to the behaviors chain.
equals in class PrimaryBehaviorpublic int hashCode()
hashCode in class PrimaryBehaviorpublic Summary newResultValue(Optional<DateTime> stamp)
This method is called when a new result value is needed to allow a behavior to supply a specialized class able to hold behavior-specific informations.
newResultValue in interface BehaviornewResultValue in class AbstractBehaviorstamp - The time stamp of the 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 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.
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 boolean setUp(Metadata metadata, ProxyEntity proxyEntity)
setUp in interface ProxiedsetUp in class SelectsBehaviormetadata - The metadata available to the current process.proxyEntity - The proxy entity refering to the proxied.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.
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.