|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjadex.commons.SimplePropertyObject
jadex.application.space.envsupport.environment.RoundBasedExecutor
public class RoundBasedExecutor
Synchronized execution of all actions in rounds based on clock ticks.
| Field Summary | |
|---|---|
protected long |
currenttime
Current time. |
static String |
MODE_LASTACTION
The value for the last action execution mode. |
static 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. |
| Fields inherited from class jadex.commons.SimplePropertyObject |
|---|
pcs, properties |
| Constructor Summary | |
|---|---|
RoundBasedExecutor()
Creates a new round based executor. |
|
RoundBasedExecutor(AbstractEnvironmentSpace space)
Creates a new round based executor. |
|
RoundBasedExecutor(AbstractEnvironmentSpace space,
Comparator acomp)
Creates a new round based executor. |
|
| Method Summary | |
|---|---|
void |
start()
Start the space executor. |
void |
terminate()
Terminate the space executor. |
| Methods inherited from class jadex.commons.SimplePropertyObject |
|---|
addPropertyChangeListener, getProperties, getProperty, getPropertyNames, hasProperty, removePropertyChangeListener, setProperties, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jadex.commons.IPropertyObject |
|---|
getProperty, getPropertyNames, hasProperty, setProperty |
| Field Detail |
|---|
public static final String PROPERTY_MODE
public static final String MODE_LASTACTION
protected long timestamp
protected long currenttime
protected ITimer timer
protected boolean terminated
| Constructor Detail |
|---|
public RoundBasedExecutor()
public RoundBasedExecutor(AbstractEnvironmentSpace space)
space - The space.clockservice - The clock service.
public RoundBasedExecutor(AbstractEnvironmentSpace space,
Comparator acomp)
space - The space.clockservice - The clock service.acomp - The action comparator.| Method Detail |
|---|
public void start()
start in interface ISpaceExecutorpublic void terminate()
terminate in interface ISpaceExecutor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||