public class LoadOreTask
extends jadex.extension.envsupport.environment.AbstractTask
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTY_LOAD
The property for the charge state.
|
static java.lang.String |
PROPERTY_TARGET
The property for the charge state.
|
static java.lang.String |
PROPERTY_TYPENAME
The destination property.
|
protected long |
time
The remaining time.
|
static int |
TIME
The time required for loading one unit of ore (in millis).
|
Constructor and Description |
---|
LoadOreTask() |
Modifier and Type | Method and Description |
---|---|
void |
execute(jadex.extension.envsupport.environment.IEnvironmentSpace space,
jadex.extension.envsupport.environment.ISpaceObject obj,
long progress,
jadex.bridge.service.types.clock.IClockService clock)
Executes the task.
|
isFinished, setFinished, shutdown, start
addPropertyChangeListener, getProperties, getProperty, getPropertyNames, hasProperty, removePropertyChangeListener, setProperties, setProperty, toString
public static final java.lang.String PROPERTY_TYPENAME
public static final java.lang.String PROPERTY_TARGET
public static final java.lang.String PROPERTY_LOAD
public static final int TIME
protected long time
public void execute(jadex.extension.envsupport.environment.IEnvironmentSpace space, jadex.extension.envsupport.environment.ISpaceObject obj, long progress, jadex.bridge.service.types.clock.IClockService clock)
execute
in interface jadex.extension.envsupport.environment.IObjectTask
execute
in class jadex.extension.envsupport.environment.AbstractTask
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.