Class AtomicCountRTIndicator
java.lang.Object
com.wualabs.qtsurfer.engine.indicators.core.AbstractRTIndicator
com.wualabs.qtsurfer.engine.indicators.core.AbstractIncrementalRTIndicator
com.wualabs.qtsurfer.engine.indicators.core.AbstractDecorableIncrementalRTIndicator
com.wualabs.qtsurfer.engine.indicators.helpers.AtomicCountRTIndicator
- All Implemented Interfaces:
ClockAware, Resettable, RTIndicator
Atomically Count updates RT Indicator
-
Constructor Summary
ConstructorsConstructorDescriptionAtomicCountRTIndicator(int updateCount, RTIndicator indicator) AtomicCountRTIndicator(RTIndicator indicator) -
Method Summary
Modifier and TypeMethodDescriptionintdoubleupdate(double newValue) Passes the value through the decorated indicator (if present) before feeding the result into this indicator's incremental update pipeline.Methods inherited from class AbstractDecorableIncrementalRTIndicator
getIndicator, nextValue, reset, setClockSupplierMethods inherited from class AbstractIncrementalRTIndicator
getLastUpdateValue, getPeriodCycles, getPeriods, getPrevValue, initValue, isPeriodic, isReady, prevNextValue, setPeriods, tickValueMethods inherited from class AbstractRTIndicator
equals, getDisplayHint, getMeta, getValue, hashCode, hide, isPoison, setValue, toString, toString, withDisplayHint, withMeta
-
Constructor Details
-
AtomicCountRTIndicator
public AtomicCountRTIndicator() -
AtomicCountRTIndicator
-
AtomicCountRTIndicator
-
-
Method Details
-
getUpdateCount
public int getUpdateCount() -
update
public double update(double newValue) Description copied from class:AbstractDecorableIncrementalRTIndicatorPasses the value through the decorated indicator (if present) before feeding the result into this indicator's incremental update pipeline.- Specified by:
updatein interfaceRTIndicator- Overrides:
updatein classAbstractDecorableIncrementalRTIndicator- Parameters:
newValue- the raw input value- Returns:
- the computed value after decoration and incremental processing
-