|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttesl.Clock<T>
modhelxs.simulation.DrivingClock<T>
T - The type of the tags for this clockpublic abstract class DrivingClock<T extends java.lang.Comparable<T>>
A DrivingClock is a clock used for driving a simulation. Its ticks are created in response to external events.
| Field Summary | |
|---|---|
private static java.util.List<DrivingClock<?>> |
drivingclocks_
List of all driving clocks. |
protected Engine |
listener_
The execution engine which is waiting on this clock. |
| Constructor Summary | |
|---|---|
DrivingClock(java.lang.String name,
TagCalculus<T> tcalc)
Build a new driving clock with name name. |
|
| Method Summary | |
|---|---|
abstract void |
activate()
Activate the clock: make it ready to produce a tick and notify the engine. |
abstract void |
cancel()
Cancel the clock: stop waiting for the driving event. |
static java.util.Collection<DrivingClock<?>> |
getDrivingClocks()
Return the whole collection of driving clocks. |
void |
setListener(Engine e)
Set the execution engine which is driven by this clock. |
abstract void |
wrapup()
Release the ressources used by the clock, called at the end of the simulation. |
| Methods inherited from class tesl.Clock |
|---|
affineTags, backup, cleanUp, createMasterImplication, createSlaveImplication, filteredImplies, getClockSet, getFirstTaggedTick, getFloatingTick, getName, getNowTick, getNumberOfTicks, getTag, getTagCalculus, getTagValue, getTick, getTick, getTick, getTicks, hasFloatingTick, hasTaggedTick, hasTickNow, hasTicks, implies, impliesThroughFilter, impliesWithDelay, impliesWithDelay, isGreedy, isNow, newTick, newTick, removeTick, removeTick, resetClock, restore, sameTags, setClockSet, setGreedy, setNow, setTag, setTagValue, sustains, sustains, tagDifference, tagProduct, tagQuotient, tagSum, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static java.util.List<DrivingClock<?>> drivingclocks_
protected Engine listener_
| Constructor Detail |
|---|
public DrivingClock(java.lang.String name,
TagCalculus<T> tcalc)
name.
| Method Detail |
|---|
public void setListener(Engine e)
public abstract void activate()
public abstract void cancel()
public abstract void wrapup()
public static java.util.Collection<DrivingClock<?>> getDrivingClocks()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||