public interface IObjectTask extends IPropertyObject
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_ID
The property for holding the task id.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(IEnvironmentSpace space,
ISpaceObject obj,
long progress,
IClockService clock)
Executes the task.
|
boolean |
isFinished(IEnvironmentSpace space,
ISpaceObject obj)
Check if a 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.
|
getProperty, getPropertyNames, hasProperty, setProperty
static final String PROPERTY_ID
void start(ISpaceObject obj)
space
- The environment in which the task is executing.obj
- The object that is executing the task.void shutdown(ISpaceObject obj)
space
- The environment in which the task is executing.obj
- The object that is executing the task.void execute(IEnvironmentSpace space, ISpaceObject obj, long progress, IClockService clock)
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.clock
- The clock service.boolean isFinished(IEnvironmentSpace space, ISpaceObject obj)
Copyright © 2013. All Rights Reserved.