public class AccumulationFunctionArithmeticMeanXY extends AAccumulationFunction
addPointToAccumulate(ITracePoint2D)
since the
call to getAccumulatedPoint()
.
Constructor and Description |
---|
AccumulationFunctionArithmeticMeanXY() |
Modifier and Type | Method and Description |
---|---|
void |
addPointToAccumulate(ITracePoint2D point)
Adds a point to accumulated.
|
ITracePoint2D |
getAccumulatedPoint()
Returns the accumulated point resulting from all the points fed via
IAccumulationFunction.addPointToAccumulate(ITracePoint2D) since the last call this
method was invoked. |
int |
getAccumulatedPointCount()
Returns the current amount of accumulated points.
|
acquireTracePointProvider, getAccumulatedPointCurrent, getAccumulatedPointPrevious, setAccumulatedPointCurrent
public AccumulationFunctionArithmeticMeanXY()
public void addPointToAccumulate(ITracePoint2D point) throws IllegalArgumentException
IAccumulationFunction
Contract: No point that returns true from
ITracePoint2D.isDiscontinuation()
must be given to this method. An
IllegalArgumentException
should punish violators of this contract.
Reason: Accumulating a discontinuation would consume it while it has to be
preserved to allow Chart2D
to render this.
point
- a point to accumulated.IllegalArgumentException
- if null or a point with ITracePoint2D.isDiscontinuation()
is provided.IAccumulationFunction.addPointToAccumulate(info.monitorenter.gui.chart.ITracePoint2D)
public ITracePoint2D getAccumulatedPoint()
IAccumulationFunction
IAccumulationFunction.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 IAccumulationFunction
getAccumulatedPoint
in class AAccumulationFunction
IAccumulationFunction.addPointToAccumulate(ITracePoint2D)
since the last call
this method was invoked. If there was nothing to accumulate
null
is returned.AAccumulationFunction.getAccumulatedPoint()
public int getAccumulatedPointCount()
IAccumulationFunction
IAccumulationFunction.getAccumulatedPointCount()
Copyright © 2018. All rights reserved.