Class CountRTIndicator
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.CountRTIndicator
- All Implemented Interfaces:
ClockAware, Resettable, RTIndicator
Update counter RT Indicator
-
Constructor Summary
ConstructorsConstructorDescriptionCountRTIndicator(int updateCount, RTIndicator indicator) CountRTIndicator(RTIndicator indicator) -
Method Summary
Methods inherited from class AbstractDecorableIncrementalRTIndicator
getIndicator, nextValue, 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
-
CountRTIndicator
public CountRTIndicator() -
CountRTIndicator
-
CountRTIndicator
-
-
Method Details
-
getUpdateCount
public int getUpdateCount() -
reset
public void reset()- Specified by:
resetin interfaceResettable- Overrides:
resetin classAbstractDecorableIncrementalRTIndicator
-
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
-