jason.core.pool
Class AbstractTask

java.lang.Object
  |
  +--jason.core.pool.AbstractTask
All Implemented Interfaces:
Task
Direct Known Subclasses:
SocketTask

public abstract class AbstractTask
extends java.lang.Object
implements Task

Created Sat Apr 20 20:11:18 2002

Simple Task

Author:
Alexandre Brillant (abrillant@wanadoo.fr)
See Also:
SocketService, TaskContext, Task

Constructor Summary
AbstractTask()
           
 
Method Summary
 TaskContext getTaskContext()
           
 void init(TaskContext tc)
          This method provides a TaskContect object type for particular needs like to know the original ServiceContext
protected abstract  void run()
          This method must be override, it will contains the final user code that must be runned in the ThreadCapsule
 void runTask()
          Run the task
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTask

public AbstractTask()
Method Detail

init

public void init(TaskContext tc)
Description copied from interface: Task
This method provides a TaskContect object type for particular needs like to know the original ServiceContext

Specified by:
init in interface Task

runTask

public void runTask()
Description copied from interface: Task
Run the task

Specified by:
runTask in interface Task

run

protected abstract void run()
This method must be override, it will contains the final user code that must be runned in the ThreadCapsule


getTaskContext

public TaskContext getTaskContext()