com.dctl.hardware.timer
Class TickTimer
java.lang.Object
|
+--java.lang.Thread
|
+--com.dctl.hardware.timer.Timer
|
+--com.dctl.hardware.timer.TickTimer
- All Implemented Interfaces:
- Runnable
- public class TickTimer
- extends Timer
Tick timer
|
Constructor Summary |
TickTimer(int instance)
Create a new tick timer on the specified instance |
|
Method Summary |
void |
enableNotifications(TimerCallback callback,
int interval,
boolean repeat)
Enable the timer, causing it to notify the callback when the interval expires, optionally repeating |
| Methods inherited from class java.lang.Thread |
activeCount, currentThread, getName, getPriority, isAlive, join, setPriority, sleep, start, toString, yield |
TickTimer
public TickTimer(int instance)
throws IllegalArgumentException,
SystemException
- Create a new tick timer on the specified instance
- Parameters:
instance - The instance
- Throws:
IllegalArgumentException - IllegalArgumentException if the timer instance does not exist
SystemException - if there is an error in the operation
enableNotifications
public void enableNotifications(TimerCallback callback,
int interval,
boolean repeat)
throws SystemException
- Enable the timer, causing it to notify the callback when the interval expires, optionally repeating
- Parameters:
callback - The callback to notifyinterval - The interval in microsecondsrepeat - Set to true to repeat continuously
- Throws:
SystemException - if there is an error in the operation
DCT Lightfoot v3 API specification