public class RandomDataCollectorTimeStamped extends ADataCollector
Constructor | Description |
---|---|
RandomDataCollectorTimeStamped(ITrace2D trace,
int latency) |
Creates an instance that will collect every latency ms a point and add it
to the trace.
|
Modifier and Type | Method | Description |
---|---|---|
ITracePoint2D |
collectData() |
Override this method.
|
finalize, getLatency, getTrace, isRunning, run, setLatency, start, stop
public RandomDataCollectorTimeStamped(ITrace2D trace, int latency)
trace
- the trace to add collected points to.latency
- the interval in ms for collecting points.public ITracePoint2D collectData()
ADataCollector
Override this method. It will be invoked in intervals of the configured latency time. The TracePoint2D that is returned will be added to the constructor given ITrace2D.
Keep your implementation fast. If the computations performed here take longer than the latency time that desired refresh rate will not be reached.
collectData
in class ADataCollector
ADataCollector.collectData()
Copyright © 2001 - 2010 LGPL, All Rights Footloose.