Nengo.ca

ca.nengo.util
Interface ThreadTask

All Superinterfaces:
java.lang.Cloneable, Resettable
All Known Implementing Classes:
LearningTask, ProbeTask

public interface ThreadTask
extends Resettable, java.lang.Cloneable

Any task in a Network that can be run independently but belongs to a specific part of the Network. Provides a way for objects in a network that normally run on one thread to run specific parts in multiple threads (eg a Non-Decoded Termination adjusting the weight for every neuron)


Method Summary
 ThreadTask clone()
           
 boolean isFinished()
           
 void run(float startTime, float endTime)
          Runs the Task, updating the parent Node as needed
 
Methods inherited from interface ca.nengo.model.Resettable
reset
 

Method Detail

isFinished

boolean isFinished()
Returns:
If the task has finished running

run

void run(float startTime,
         float endTime)
         throws SimulationException
Runs the Task, updating the parent Node as needed

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

ThreadTask clone()
                 throws java.lang.CloneNotSupportedException
Returns:
An independent copy of the Task
Throws:
java.lang.CloneNotSupportedException - if the superclass does not support cloning

Nengo.ca