|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorc.runtime.LogicalClock
public class LogicalClock
An event queue for site calls to a logical timer (created by MakeTimer). The Orc engine advances all logical clocks whenever there are no other queued tokens to process. Since logical clocks are advanced only by the Orc engine, and calls to such timers are cooperatively executed by the same engine, the logical clock objects do not need to run in a separate thread, (unlike Rtimer), and they do not require synchronization.
Constructor Summary | |
---|---|
LogicalClock()
|
Method Summary | |
---|---|
void |
addEvent(int time,
Token token)
|
boolean |
advance()
|
int |
getTime()
|
boolean |
stuck()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogicalClock()
Method Detail |
---|
public int getTime()
public void addEvent(int time, Token token)
public boolean advance()
public boolean stuck()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |