public abstract class AAccumulationFunction extends Object implements IAccumulationFunction
| Constructor and Description |
|---|
AAccumulationFunction() |
| Modifier and Type | Method and Description |
|---|---|
protected ITracePointProvider |
acquireTracePointProvider(ITracePoint2D point)
Helper method to read a
ITracePointProvider from the given point. |
ITracePoint2D |
getAccumulatedPoint()
Returns the accumulated point resulting from all the points fed via
IAccumulationFunction.addPointToAccumulate(ITracePoint2D) since the last call this
method was invoked. |
ITracePoint2D |
getAccumulatedPointCurrent()
Returns the current accumulated point.
|
protected ITracePoint2D |
getAccumulatedPointPrevious()
Returns previous accumulated point which might be used by implementations
that want to accumulate based on the previous accumulated point (e.g.: An
implementation that cherry picks only one point from the points to
accumulate that is the most different from the previous one).
|
protected void |
setAccumulatedPointCurrent(ITracePoint2D accumulatedPointCurrent)
Sets the current accumulated point.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPointToAccumulate, getAccumulatedPointCountprotected void setAccumulatedPointCurrent(ITracePoint2D accumulatedPointCurrent)
This is intended for internal (subclass) use only.
accumulatedPointCurrent - the accumulatedPointCurrent to setpublic ITracePoint2D getAccumulatedPointCurrent()
getAccumulatedPointCurrent in interface IAccumulationFunctionprotected ITracePoint2D getAccumulatedPointPrevious()
This is intended for internal (subclass) use only.
public ITracePoint2D getAccumulatedPoint()
IAccumulationFunctionIAccumulationFunction.addPointToAccumulate(ITracePoint2D) since the last call this
method was invoked.
As a side effect all previous accumulation data is reset and this function is empty again, ready to accumulate the next n points. Internally you might want to store the result in case you want to cherry pick the following point to accumulated in relation to it.
getAccumulatedPoint in interface IAccumulationFunctionIAccumulationFunction.addPointToAccumulate(ITracePoint2D) since the last call
this method was invoked. If there was nothing to accumulate
null is returned.IAccumulationFunction.getAccumulatedPoint()protected final ITracePointProvider acquireTracePointProvider(ITracePoint2D point) throws IllegalStateException
ITracePointProvider from the given point.
This assumes that the given point is assigned to an ITrace2D and
that that trace is assigned to a Chart2D. If this is not the case
an IllegalStateException is thrown.
point - the point to search the trace point provider for.IllegalStateException - if the point is not assigned to a trace which is assigned to a
chart.Copyright © 2017. All rights reserved.