org.objectweb.dream.control.activity.task
Class AbstractTask

java.lang.Object
  extended by org.objectweb.dream.control.activity.task.AbstractTask
All Implemented Interfaces:
Task, NameController

public abstract class AbstractTask
extends Object
implements Task, NameController

Abstract Task class. Provides a name controller interface to give a name to a task.


Field Summary
protected  Object controlItf
           
protected  String taskName
           
 
Fields inherited from interface org.objectweb.dream.control.activity.task.Task
EXECUTE_AGAIN, ITF_NAME, STOP_EXECUTING
 
Constructor Summary
AbstractTask(String name)
          Create a Task with the specified name.
 
Method Summary
 Object getControlItf()
          Returns the control interface on this task.
 String getFcName()
           
 void interrupted()
          Does nothing, should be overriden
 void registered(Object controlItf)
          Sets the controlItffield
 void setFcName(String name)
           
 String toString()
           
 void unregistered()
          Sets the controlItffield to null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.objectweb.dream.control.activity.task.Task
execute
 

Field Detail

taskName

protected String taskName

controlItf

protected Object controlItf
Constructor Detail

AbstractTask

public AbstractTask(String name)
Create a Task with the specified name.

Parameters:
name - the name of the task
Method Detail

getControlItf

public Object getControlItf()
Returns the control interface on this task.

Returns:
the control interface on this task.
See Also:
Task.registered(Object)

interrupted

public void interrupted()
Does nothing, should be overriden

Specified by:
interrupted in interface Task

registered

public void registered(Object controlItf)
Sets the controlItffield

Specified by:
registered in interface Task
Parameters:
controlItf - An interface that can be used to control the execution of the task. The runtime type of this interface depends on the registration hints. Can be null.
See Also:
Task.registered(Object)

unregistered

public void unregistered()
Sets the controlItffield to null.

Specified by:
unregistered in interface Task

getFcName

public String getFcName()
Specified by:
getFcName in interface NameController
See Also:
NameController.getFcName()

setFcName

public void setFcName(String name)
Specified by:
setFcName in interface NameController
See Also:
NameController.setFcName(String)

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.