ca.nengo.util.impl
Class NodeThreadPool

java.lang.Object
  extended by ca.nengo.util.impl.NodeThreadPool
Direct Known Subclasses:
GPUNodeThreadPool

public class NodeThreadPool
extends java.lang.Object

A pool of threads for running nodes in. All interaction with the threads is done through this class

Author:
Eric Crawford

Constructor Summary
NodeThreadPool(Node[] nodes)
           
 
Method Summary
 void finishedANode()
           
 boolean finishedRun()
           
 float getEndTime()
           
 Node getNextNode()
           
static int getNumThreads()
           
 float getStartTime()
           
static boolean isMultithreading()
           
 void kill()
           
static void setNumThreads(int value)
           
 void step(float startTime, float endTime)
           
static void turnOffMultithreading()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeThreadPool

public NodeThreadPool(Node[] nodes)
Method Detail

getNumThreads

public static int getNumThreads()

setNumThreads

public static void setNumThreads(int value)

isMultithreading

public static boolean isMultithreading()

turnOffMultithreading

public static void turnOffMultithreading()

getStartTime

public float getStartTime()

getEndTime

public float getEndTime()

finishedRun

public boolean finishedRun()

step

public void step(float startTime,
                 float endTime)

kill

public void kill()

getNextNode

public Node getNextNode()

finishedANode

public void finishedANode()