| |
|
| java.lang.Object DEOS.PeriodicClock
PeriodicClock | public class PeriodicClock (Code) | | DOCUMENT ME!
|
microSecsPeriod | int microSecsPeriod(Code) | | |
special_case_usedTime | int special_case_usedTime(Code) | | |
startingPeriodTime | int startingPeriodTime(Code) | | |
systemInterrupt | boolean systemInterrupt(Code) | | |
PeriodicClock | public PeriodicClock(int periodIn)(Code) | | Main constructor
periodIn, the period of the clock - clock resets to zeroafter period time elapsed |
clearInterrupt | public void clearInterrupt()(Code) | | To clear interrupt
|
clockTicks | public void clockTicks(int currentTime)(Code) | | Clock ticks - inherited from super class
Parameters: currentTime - the current time on the clock void |
getPeriod | public int getPeriod()(Code) | | To get the period
microSecsPeriod |
getTimeToEOP | public int getTimeToEOP()(Code) | | To get remaining time in period
|
getUsedTime | public int getUsedTime()(Code) | | To get the time used in period
Parameters: currentTime - the current time on the clock |
isInterrupted | public boolean isInterrupted()(Code) | | To get the tick value
Parameters: currentTime - the current time on the clock true if tick |
resetUsedTime | public void resetUsedTime()(Code) | | |
setUsedTime | public void setUsedTime(int usedTimeIn)(Code) | | Clock event - abstraction when thread yields without interruption
Parameters: usedTimeIn - the current time on the clock |
|
|
|