public class ProbeTask extends java.lang.Object implements ThreadTask
Constructor and Description |
---|
ProbeTask(Probeable parent,
Probe probe) |
public void reset(boolean randomize)
reset
in interface Resettable
randomize
- True indicates that the object should be reset to a
randomly selected initial state (the object must be aware of the
distribution from which to draw from). False indicates that the
object should be reset to a fixed initial state (which it must
also know). Some objects may not support randomization of the initial
state, in which case a fixed state will be used in either case.public Probeable getParent()
public boolean isFinished()
isFinished
in interface ThreadTask
public void run(float startTime, float endTime) throws SimulationException
ThreadTask
run
in interface ThreadTask
startTime
- simulation time at which running starts (s)endTime
- simulation time at which running ends (s)SimulationException
- if a problem is encountered while trying to runpublic ProbeTask clone() throws java.lang.CloneNotSupportedException
clone
in interface ThreadTask
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if the superclass does not support cloning