|
Nengo.ca | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
ca.nengo.util.impl.NodeThread
public class NodeThread
A thread for running projections, nodes and tasks in. Projections are all runs before nodes, nodes before tasks.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
NodeThread(NodeThreadPool nodePool,
Node[] nodes,
int startIndexInNodes,
int endIndexInNodes,
Projection[] projections,
int startIndexInProjections,
int endIndexInProjections,
ThreadTask[] tasks,
int startIndexInTasks,
int endIndexInTasks)
|
Method Summary | |
---|---|
void |
finished()
|
double |
getMyAverageTimeOnNodesPerStep()
|
double |
getMyAverageTimeOnProjectionsPerStep()
|
double |
getMyAverageTimeOnTasksPerStep()
|
protected void |
kill()
|
void |
run()
|
protected void |
runNodes(float startTime,
float endTime)
|
protected void |
runProjections(float startTime,
float endTime)
|
protected void |
runTasks(float startTime,
float endTime)
|
void |
setCollectTimings(boolean myCollectTimings)
|
void |
waitForPool()
|
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NodeThread(NodeThreadPool nodePool, Node[] nodes, int startIndexInNodes, int endIndexInNodes, Projection[] projections, int startIndexInProjections, int endIndexInProjections, ThreadTask[] tasks, int startIndexInTasks, int endIndexInTasks)
Method Detail |
---|
public void waitForPool()
public void finished()
protected void runProjections(float startTime, float endTime) throws SimulationException
SimulationException
protected void runNodes(float startTime, float endTime) throws SimulationException
SimulationException
protected void runTasks(float startTime, float endTime) throws SimulationException
SimulationException
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
protected void kill()
public void setCollectTimings(boolean myCollectTimings)
public double getMyAverageTimeOnProjectionsPerStep()
public double getMyAverageTimeOnNodesPerStep()
public double getMyAverageTimeOnTasksPerStep()
|
Nengo.ca | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |