|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.epics.pvmanager.sim.SimFunction<T>
public abstract class SimFunction<T>
Base class for all simulated signals. It provides the common mechanism for registering the update on a timer and a few other utilities.
Constructor Summary | |
---|---|
SimFunction(double secondsBeetwenSamples,
java.lang.Class<T> classToken)
Creates a new simulation function. |
Method Summary | |
---|---|
void |
initialize(Collector collector,
ValueCache<T> cache)
Initialize timer task. |
protected VDouble |
newValue(double value,
VDouble oldValue)
Creating new value based on the metadata from the old value. |
protected abstract T |
nextValue()
Calculates and returns the next value. |
void |
start(java.util.Timer timer)
Starts notification by dispatching the prepared task on the timer. |
void |
stop()
Stops the variable from further notifications. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimFunction(double secondsBeetwenSamples, java.lang.Class<T> classToken)
secondsBeetwenSamples
- seconds between each samplesMethod Detail |
---|
protected abstract T nextValue()
public void initialize(Collector collector, ValueCache<T> cache)
collector
- collector notified of updatescache
- cache to put the new value inpublic void start(java.util.Timer timer)
timer
- timer on which to execute the updatespublic void stop()
protected VDouble newValue(double value, VDouble oldValue)
value
- new numeric valueoldValue
- old VDouble
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |