|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dream.control.activity.task.AbstractTask
public abstract class AbstractTask
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 controlItf field |
void |
setFcName(String name)
|
String |
toString()
|
void |
unregistered()
Sets the controlItf field 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 |
---|
protected String taskName
protected Object controlItf
Constructor Detail |
---|
public AbstractTask(String name)
name
- the name of the taskMethod Detail |
---|
public Object getControlItf()
Task.registered(Object)
public void interrupted()
interrupted
in interface Task
public void registered(Object controlItf)
controlItf
field
registered
in interface Task
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
.Task.registered(Object)
public void unregistered()
controlItf
field to null.
unregistered
in interface Task
public String getFcName()
getFcName
in interface NameController
NameController.getFcName()
public void setFcName(String name)
setFcName
in interface NameController
NameController.setFcName(String)
public String toString()
toString
in class Object
Object.toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |