public class ProduceOreTask
extends jadex.extension.envsupport.environment.AbstractTask
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTY_CAPACITY
The property for the produced ore amount.
|
static java.lang.String |
PROPERTY_TARGET
The property for the target.
|
static java.lang.String |
PROPERTY_TYPENAME
The type name property.
|
protected long |
time
The remaining time.
|
static int |
TIME
The time required for producing one unit of ore (in millis).
|
Constructor and Description |
---|
ProduceOreTask() |
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_CAPACITY
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.