jadex.application.space.envsupport.environment
Class RoundBasedExecutor

java.lang.Object
  extended by jadex.commons.SimplePropertyObject
      extended by jadex.application.space.envsupport.environment.RoundBasedExecutor
All Implemented Interfaces:
ISpaceExecutor, IPropertyObject

public class RoundBasedExecutor
extends SimplePropertyObject
implements ISpaceExecutor

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

PROPERTY_MODE

public static final String PROPERTY_MODE
The property for the action execution mode.

See Also:
Constant Field Values

MODE_LASTACTION

public static final String MODE_LASTACTION
The value for the last action execution mode.

See Also:
Constant Field Values

timestamp

protected long timestamp
Last time stamp.


currenttime

protected long currenttime
Current time.


timer

protected ITimer timer
The tick timer.


terminated

protected boolean terminated
The flag indicating that the executor is terminated.

Constructor Detail

RoundBasedExecutor

public RoundBasedExecutor()
Creates a new round based executor.


RoundBasedExecutor

public RoundBasedExecutor(AbstractEnvironmentSpace space)
Creates a new round based executor.

Parameters:
space - The space.
clockservice - The clock service.

RoundBasedExecutor

public RoundBasedExecutor(AbstractEnvironmentSpace space,
                          Comparator acomp)
Creates a new round based executor.

Parameters:
space - The space.
clockservice - The clock service.
acomp - The action comparator.
Method Detail

start

public void start()
Start the space executor.

Specified by:
start in interface ISpaceExecutor

terminate

public void terminate()
Terminate the space executor.

Specified by:
terminate in interface ISpaceExecutor


Copyright © 2010. All Rights Reserved.