Class DeliverPatientTask
- java.lang.Object
-
- jadex.commons.SimplePropertyObject
-
- jadex.extension.envsupport.environment.AbstractTask
-
- jadex.bdiv3.examples.disastermanagement.DeliverPatientTask
-
- All Implemented Interfaces:
jadex.commons.IPropertyObject
,jadex.extension.envsupport.environment.IObjectTask
public class DeliverPatientTask extends jadex.extension.envsupport.environment.AbstractTask
Deliver a patient at the hospital.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROPERTY_PATIENT
The patient property (of the space object).static java.lang.String
PROPERTY_TREATED
The treated property (of the space object).static java.lang.String
PROPERTY_TYPENAME
The task name.
-
Constructor Summary
Constructors Constructor Description DeliverPatientTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class jadex.extension.envsupport.environment.AbstractTask
isFinished, setFinished, shutdown, start
-
Methods inherited from class jadex.commons.SimplePropertyObject
addPropertyChangeListener, getProperties, getProperty, getPropertyNames, hasProperty, removePropertyChangeListener, setProperties, setProperty, toString
-
-
-
-
Field Detail
-
PROPERTY_TYPENAME
public static final java.lang.String PROPERTY_TYPENAME
The task name.- See Also:
- Constant Field Values
-
PROPERTY_TREATED
public static final java.lang.String PROPERTY_TREATED
The treated property (of the space object).- See Also:
- Constant Field Values
-
PROPERTY_PATIENT
public static final java.lang.String PROPERTY_PATIENT
The patient property (of the space object).- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
public 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.- Specified by:
execute
in interfacejadex.extension.envsupport.environment.IObjectTask
- Overrides:
execute
in classjadex.extension.envsupport.environment.AbstractTask
- Parameters:
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.
-
-