|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttesl.Clock<T>
modhelxs.simulation.DrivingClock<Unit>
modhelxs.simulation.ASAPClock
public class ASAPClock
An ASAPClock is a kind of driving clock that always has a tick as soon as possible
| Nested Class Summary | |
|---|---|
private class |
ASAPClock.ASAPThread
Thread used to notify the execution engine. |
private class |
ASAPClock.ClockBackup
|
| Field Summary | |
|---|---|
private ASAPClock.ASAPThread |
mythread_
|
| Fields inherited from class modhelxs.simulation.DrivingClock |
|---|
listener_ |
| Constructor Summary | |
|---|---|
ASAPClock(java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
activate()
Activate the clock: make it ready to produce a tick and notify the engine. |
ClockBackupInterface<Unit> |
backup()
|
void |
cancel()
Cancel the clock: stop waiting for the driving event. |
Tick<Unit> |
newTick()
This clock should have only one tick, so we can't add new ones. |
void |
removeTick(int i)
This clock should always have a tick, so we cannot remove its tick. |
void |
removeTick(Tick<Unit> tick)
This clock should always have a tick, so we cannot remove its tick. |
void |
resetClock()
This clock should always have a tick, so we cannot remove its tick. |
void |
restore(ClockBackupInterface<Unit> backup)
This clock should have only one tick, so it cannot be restored. |
void |
wrapup()
Release the ressources used by the clock, called at the end of the simulation. |
| Methods inherited from class modhelxs.simulation.DrivingClock |
|---|
getDrivingClocks, setListener |
| Methods inherited from class tesl.Clock |
|---|
affineTags, 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, 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 ASAPClock.ASAPThread mythread_
| Constructor Detail |
|---|
public ASAPClock(java.lang.String name)
| Method Detail |
|---|
public void activate()
DrivingClock
activate in class DrivingClock<Unit>public void cancel()
DrivingClock
cancel in class DrivingClock<Unit>public Tick<Unit> newTick()
newTick in class Clock<Unit>public ClockBackupInterface<Unit> backup()
backup in class Clock<Unit>public void restore(ClockBackupInterface<Unit> backup)
restore in class Clock<Unit>public void removeTick(Tick<Unit> tick)
removeTick in class Clock<Unit>public void removeTick(int i)
removeTick in class Clock<Unit>public void resetClock()
resetClock in class Clock<Unit>public void wrapup()
DrivingClock
wrapup in class DrivingClock<Unit>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||