public class AnalyzeTargetTask
extends jadex.extension.envsupport.environment.AbstractTask
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROPERTY_ORE
The property for the ore amount.
|
static java.lang.String |
PROPERTY_STATE
The state for targets (unknown, analyzing, analyzed).
|
static java.lang.String |
PROPERTY_TARGET
The property for the target.
|
static java.lang.String |
PROPERTY_TYPENAME
The type name property.
|
static java.lang.String |
STATE_ANALYZED
The unknown state for target.
|
static java.lang.String |
STATE_ANALYZING
The unknown state for target.
|
static java.lang.String |
STATE_UNKNOWN
The unknown state for target.
|
protected jadex.extension.envsupport.environment.ISpaceObject |
target
The target.
|
protected int |
time
The remaining time.
|
static int |
TIME
The time required for analyzing a target (in millis).
|
| Constructor and Description |
|---|
AnalyzeTargetTask() |
| 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.
|
void |
start(jadex.extension.envsupport.environment.ISpaceObject obj)
This method will be executed by the object before the task gets added to
the execution queue.
|
isFinished, setFinished, shutdownaddPropertyChangeListener, getProperties, getProperty, getPropertyNames, hasProperty, removePropertyChangeListener, setProperties, setProperty, toStringpublic static final java.lang.String PROPERTY_TYPENAME
public static final java.lang.String PROPERTY_TARGET
public static final java.lang.String PROPERTY_STATE
public static final java.lang.String STATE_UNKNOWN
public static final java.lang.String STATE_ANALYZING
public static final java.lang.String STATE_ANALYZED
public static final java.lang.String PROPERTY_ORE
public static final int TIME
protected jadex.extension.envsupport.environment.ISpaceObject target
protected int time
public void start(jadex.extension.envsupport.environment.ISpaceObject obj)
start in interface jadex.extension.envsupport.environment.IObjectTaskstart in class jadex.extension.envsupport.environment.AbstractTaskobj - The object that is executing the task.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.IObjectTaskexecute in class jadex.extension.envsupport.environment.AbstractTaskspace - 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.