Nengo.ca

ca.nengo.util.impl
Class ProbeTask

java.lang.Object
  extended by ca.nengo.util.impl.ProbeTask
All Implemented Interfaces:
Resettable, ThreadTask, java.lang.Cloneable

public class ProbeTask
extends java.lang.Object
implements ThreadTask

Implementation of a ThreadTask to multithread collection of data by probes.


Constructor Summary
ProbeTask(Probeable parent, Probe probe)
           
 
Method Summary
 ProbeTask clone()
           
 Probeable getParent()
           
 boolean isFinished()
           
 void reset(boolean randomize)
           
 void run(float startTime, float endTime)
          Runs the Task, updating the parent Node as needed
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProbeTask

public ProbeTask(Probeable parent,
                 Probe probe)
Method Detail

reset

public void reset(boolean randomize)
Specified by:
reset in interface Resettable
Parameters:
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.

getParent

public Probeable getParent()

isFinished

public boolean isFinished()
Specified by:
isFinished in interface ThreadTask
Returns:
If the task has finished running

run

public void run(float startTime,
                float endTime)
         throws SimulationException
Description copied from interface: ThreadTask
Runs the Task, updating the parent Node as needed

Specified by:
run in interface ThreadTask
Parameters:
startTime - simulation time at which running starts (s)
endTime - simulation time at which running ends (s)
Throws:
SimulationException - if a problem is encountered while trying to run

clone

public ProbeTask clone()
                throws java.lang.CloneNotSupportedException
Specified by:
clone in interface ThreadTask
Overrides:
clone in class java.lang.Object
Returns:
An independent copy of the Task
Throws:
java.lang.CloneNotSupportedException - if the superclass does not support cloning

Nengo.ca