public class RoundBasedExecutor extends SimplePropertyObject implements ISpaceExecutor
| Modifier and Type | Field and Description |
|---|---|
protected long |
currenttime
Current time.
|
static java.lang.String |
MODE_LASTACTION
The value for the last action execution mode.
|
static java.lang.String |
PROPERTY_MODE
The property for the action execution mode.
|
protected boolean |
terminated
The flag indicating that the executor is terminated.
|
protected ITimer |
timer
The tick timer.
|
protected long |
timestamp
Last time stamp.
|
pcs, propertiesPROPERTY_EXECUTION_MONITORING| Constructor and Description |
|---|
RoundBasedExecutor()
Creates a new round based executor.
|
RoundBasedExecutor(AbstractEnvironmentSpace space)
Creates a new round based executor.
|
RoundBasedExecutor(AbstractEnvironmentSpace space,
java.util.Comparator acomp)
Creates a new round based executor.
|
| Modifier and Type | Method and Description |
|---|---|
protected static void |
monitorExecution(IExternalAccess ea,
IExecutionService exe)
Check if no agent is running whenever the clock advances.
|
void |
start()
Start the space executor.
|
void |
terminate()
Terminate the space executor.
|
addPropertyChangeListener, getProperties, getProperty, getPropertyNames, hasProperty, removePropertyChangeListener, setProperties, setProperty, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetProperty, getPropertyNames, hasProperty, setPropertypublic static final java.lang.String PROPERTY_MODE
public static final java.lang.String MODE_LASTACTION
protected long timestamp
protected long currenttime
protected ITimer timer
protected boolean terminated
public RoundBasedExecutor()
public RoundBasedExecutor(AbstractEnvironmentSpace space)
space - The space.clockservice - The clock service.public RoundBasedExecutor(AbstractEnvironmentSpace space, java.util.Comparator acomp)
space - The space.clockservice - The clock service.acomp - The action comparator.public void start()
start in interface ISpaceExecutorpublic void terminate()
terminate in interface ISpaceExecutorprotected static void monitorExecution(IExternalAccess ea, IExecutionService exe)