infer
Class MZone.CompThread

java.lang.Object
  extended by java.lang.Thread
      extended by infer.MZone.CompThread
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
MZone

public static class MZone.CompThread
extends java.lang.Thread

A worker thread that runs inference on one component at a time. Used for parallelization in a producer-consumer model.


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
MZone.CompThread(MZone z)
           
 
Method Summary
 void run()
          Grab a task (i.e., a component) from the MZone, and process it.
 void setPara(int tries, int flips)
           
 
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

MZone.CompThread

public MZone.CompThread(MZone z)
Method Detail

run

public void run()
Grab a task (i.e., a component) from the MZone, and process it. Repeat until the task queue is empty.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

setPara

public void setPara(int tries,
                    int flips)