public final class SummarizedBehavior extends SelectedBehavior
Proxied.Abstract
Modifier and Type | Field and Description |
---|---|
static String |
FETCH_PREVIOUS_END_VALUE_PARAM
The end value from the previous interval should be fetched and included
as the first value.
|
static String |
FETCH_PREVIOUS_VALUE_PARAM
The last value before the current interval should be fetched and
included as the first value.
|
static String |
INCLUDE_NULLS_PARAM
Null values should be included.
|
Constructor and Description |
---|
SummarizedBehavior() |
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.
|
protected boolean |
supportsExtrapolated()
Asks if this behavior supports extrapolated values.
|
protected boolean |
supportsInterpolated()
Asks if this behavior supports interpolated values.
|
void |
trigger(PointValue noticeValue,
Batch batch)
Triggers the computation of results if needed.
|
addInputToResult, getAfterResultSyncPosition, getInputSync, getResultSync, getResultSyncStamp, getSelectSyncPosition, getSinceResultSyncPosition, getSinceSyncPosition, getSync, getSynchronizedResultStamp, getSyncStamp, hasAfterResultSyncPosition, hasSelectSyncPosition, hasSinceResultSyncPosition, hasSinceSyncPosition, isInSync, isPrimary, isSelectPreviousValue, 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, isResultFetched, isSynchronized, setInherited, setNext, setRelation, tearDown, toString, validateNoResults, validateTransform
public static final String FETCH_PREVIOUS_END_VALUE_PARAM
public static final String FETCH_PREVIOUS_VALUE_PARAM
public static final String INCLUDE_NULLS_PARAM
public boolean equals(Object other)
Extends comparison to the behaviors chain.
equals
in class PrimaryBehavior
public int hashCode()
hashCode
in class PrimaryBehavior
public 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 Behavior
newResultValue
in class AbstractBehavior
stamp
- 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 Behavior
prepareSelect
in class PrimaryBehavior
resultValue
- 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 Behavior
prepareTrigger
in class AbstractBehavior
noticeValue
- 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 Behavior
select
in class PrimaryBehavior
resultValue
- The result value to be computed.batch
- The current batch context.public boolean setUp(Metadata metadata, ProxyEntity proxyEntity)
setUp
in interface Proxied
setUp
in class PrimaryBehavior
metadata
- 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 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
protected boolean supportsExtrapolated()
supportsExtrapolated
in class PrimaryBehavior
protected boolean supportsInterpolated()
supportsInterpolated
in class PrimaryBehavior
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.