|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjadex.commons.SimplePropertyObject
jadex.application.space.envsupport.environment.AbstractTask
public abstract class AbstractTask
Empty default implementation for object tasks.
| Field Summary | |
|---|---|
protected IBooleanCondition |
condition
The task condition (optional). |
protected boolean |
finished
The finished flag. |
static String |
PROPERTY_CONDITION
The task condition property. |
| Fields inherited from class jadex.commons.SimplePropertyObject |
|---|
pcs, properties |
| Fields inherited from interface jadex.application.space.envsupport.environment.IObjectTask |
|---|
PROPERTY_ID |
| Constructor Summary | |
|---|---|
AbstractTask()
|
|
| Method Summary | |
|---|---|
void |
execute(IEnvironmentSpace space,
ISpaceObject obj,
IVector1 progress)
Executes the task. |
boolean |
isFinished(IEnvironmentSpace space,
ISpaceObject obj)
Check if a task is finished and should be removed. |
void |
setFinished(IEnvironmentSpace space,
ISpaceObject obj,
boolean finished)
Indicate that the task is finished and should be removed. |
void |
shutdown(ISpaceObject obj)
This method will be executed by the object before the task is removed from the execution queue. |
void |
start(ISpaceObject obj)
This method will be executed by the object before the task gets added to the execution queue. |
| Methods inherited from class jadex.commons.SimplePropertyObject |
|---|
addPropertyChangeListener, getProperties, getProperty, getPropertyNames, hasProperty, removePropertyChangeListener, setProperties, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jadex.application.space.envsupport.environment.IObjectTask |
|---|
execute |
| Methods inherited from interface jadex.commons.IPropertyObject |
|---|
getProperty, getPropertyNames, hasProperty, setProperty |
| Field Detail |
|---|
public static final String PROPERTY_CONDITION
protected boolean finished
protected IBooleanCondition condition
| Constructor Detail |
|---|
public AbstractTask()
| Method Detail |
|---|
public void start(ISpaceObject obj)
start in interface IObjectTaskspace - The environment in which the task is executing.obj - The object that is executing the task.public void shutdown(ISpaceObject obj)
shutdown in interface IObjectTaskspace - The environment in which the task is executing.obj - The object that is executing the task.
public void execute(IEnvironmentSpace space,
ISpaceObject obj,
IVector1 progress)
space - The environment in which the task is executing.obj - The object that is executing the task.progress - The time that has passed according to the environment executor.
public boolean isFinished(IEnvironmentSpace space,
ISpaceObject obj)
isFinished in interface IObjectTask
public void setFinished(IEnvironmentSpace space,
ISpaceObject obj,
boolean finished)
space - The environment in which the task is executing.obj - The object that is executing the task.finished - The finished flag.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||