jadex.application.space.envsupport.environment
Class DeltaTimeExecutor

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

public class DeltaTimeExecutor
extends SimplePropertyObject
implements ISpaceExecutor

Space executor that connects to a clock service and reacts on time deltas.


Field Summary
protected  IChangeListener clocklistener
          The clock listener.
protected  IServiceProvider container
          The platform.
protected  boolean scheduled
          Flag that a step was scheduled.
protected  boolean terminated
          The flag indicating that the executor is terminated.
protected  ITimer timer
          The tick timer.
protected  long timestamp
          Current time stamp
 
Fields inherited from class jadex.commons.SimplePropertyObject
pcs, properties
 
Constructor Summary
DeltaTimeExecutor()
          Creates a new DeltaTimeExecutor
DeltaTimeExecutor(AbstractEnvironmentSpace space, boolean tick)
          Creates a new DeltaTimeExecutor
 
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

timestamp

protected long timestamp
Current time stamp


container

protected IServiceProvider container
The platform.


clocklistener

protected IChangeListener clocklistener
The clock listener.


timer

protected ITimer timer
The tick timer.


terminated

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


scheduled

protected boolean scheduled
Flag that a step was scheduled.

Constructor Detail

DeltaTimeExecutor

public DeltaTimeExecutor()
Creates a new DeltaTimeExecutor

Parameters:
timecoefficient - the time coefficient
clockservice - the clock service

DeltaTimeExecutor

public DeltaTimeExecutor(AbstractEnvironmentSpace space,
                         boolean tick)
Creates a new DeltaTimeExecutor

Parameters:
timecoefficient - the time coefficient
clockservice - the clock service
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.