public class LoadBatteryTask
extends jadex.extension.envsupport.environment.AbstractTask
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PROPERTY_CHARGESTATE
The property for the charge state.
|
static java.lang.String |
PROPERTY_TARGET
The property for the target.
|
static java.lang.String |
PROPERTY_TYPENAME
The destination property.
|
protected int |
time
The remaining time.
|
static double |
TIME
The time required for loading full energy.
|
| Constructor and Description |
|---|
LoadBatteryTask() |
| 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, startaddPropertyChangeListener, 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 double TIME
public static final java.lang.String PROPERTY_CHARGESTATE
protected int 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.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.