felix.society
Class Worker

java.lang.Object
  extended by felix.society.Worker
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
ExecuteOperatorTask.ExecuteOperatorWorker, OptimizeDMOTask.OptimizeDMOWorker, TaskList.TaskListExecutionWorker, TaskSet.TaskSetExecutionWorker

public abstract class Worker
extends java.lang.Object
implements java.lang.Runnable

A worker is a Runnable object generated by Task/TaskList/TaskWorker.

Author:
czhang

Constructor Summary
Worker()
          Constructor -- the ID is assigned here.
 
Method Summary
 java.lang.Exception getException()
          If there are exceptions collected while running this Worker, return it.
abstract  void run()
          Run!!!!
 void submitException(java.lang.Exception _e)
          Collect exceptions while running (we cannot throw exceptions in run())
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Worker

public Worker()
Constructor -- the ID is assigned here.

Method Detail

getException

public java.lang.Exception getException()
If there are exceptions collected while running this Worker, return it.

Returns:

submitException

public void submitException(java.lang.Exception _e)
Collect exceptions while running (we cannot throw exceptions in run())

Parameters:
_e -

run

public abstract void run()
Run!!!!

Specified by:
run in interface java.lang.Runnable