Package jadex.platform.service.clock
Class SimulationTickClock
- java.lang.Object
- 
- jadex.platform.service.clock.AbstractClock
- 
- jadex.platform.service.clock.SimulationTickClock
 
 
- 
- All Implemented Interfaces:
- IClock,- ISimulationClock
 
 public class SimulationTickClock extends AbstractClock implements ISimulationClock A time-driven simulation clock represents a discrete clock that is based on ticks. This means that only time points can occur that are based on ticks (not in between ticks).
- 
- 
Field Summary- 
Fields inherited from class jadex.platform.service.clock.AbstractClockcurrenttime, DEFAULT_DELTA, delta, listeners, name, starttime, state, ticktimer, ticktimers, timers
 - 
Fields inherited from interface jadex.bridge.service.types.clock.IClockEVENT_TYPE_NEW_DELTA, EVENT_TYPE_NEW_DILATION, EVENT_TYPE_NEXT_TIMEPOINT, EVENT_TYPE_RESET, EVENT_TYPE_STARTED, EVENT_TYPE_STOPPED, EVENT_TYPE_TIMER_ADDED, EVENT_TYPE_TIMER_REMOVED, STATE_RUNNING, STATE_SUSPENDED, TYPE_CONTINUOUS, TYPE_EVENT_DRIVEN, TYPE_SYSTEM, TYPE_TIME_DRIVEN
 
- 
 - 
Constructor SummaryConstructors Constructor Description SimulationTickClock(IClock oldclock)Create a new clock.SimulationTickClock(java.lang.String name, long starttime, long delta)Create a new clock.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadvanceEvent()Advance one event.java.lang.StringgetType()Get the clock type.- 
Methods inherited from class jadex.platform.service.clock.AbstractClockactivateTickTimer, addChangeListener, addTickTimer, addTimer, copyFromClock, createTickTimer, createTimer, dispose, getDelta, getName, getNextTimer, getStarttime, getState, getTick, getTickTimers, getTime, getTimers, hasListeners, notifyListeners, removeChangeListener, removeTickTimer, removeTimer, reset, setDelta, setStarttime, shutdown, start, stop
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface jadex.bridge.service.types.clock.IClockaddChangeListener, addTickTimer, addTimer, createTickTimer, createTimer, dispose, getDelta, getName, getNextTimer, getStarttime, getState, getTick, getTickTimers, getTime, getTimers, removeChangeListener, removeTickTimer, removeTimer, reset, setDelta, setStarttime, start, stop
 
- 
 
- 
- 
- 
Constructor Detail- 
SimulationTickClockpublic SimulationTickClock(java.lang.String name, long starttime, long delta)Create a new clock.- Parameters:
- name- The name.
- starttime- The start time.
- delta- The time delta for time advance.
 
 - 
SimulationTickClockpublic SimulationTickClock(IClock oldclock) Create a new clock.- Parameters:
- oldclock- The old clock.
 
 
- 
 - 
Method Detail- 
advanceEventpublic boolean advanceEvent() Advance one event.- Specified by:
- advanceEventin interface- ISimulationClock
- Returns:
- True, if clock could be advanced.
 
 
- 
 
-