Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.SystemTimer
Source: src/com/multiversesocial/hyperview/SystemTimer.java
/////////////////////////////////////////////////////// By Tony Swain... - A system clock with a 1 second resolution.
public class SystemTimer extends Linkable implements Runnable
| Declaration | Value / initializer | Description | Source |
|---|---|---|---|
static int checkTime | = 5 | No comment in source; not referenced by name in this type’s methods. | |
volatile int count | For SystemClock() | ||
static final int DEFAULT_TIMEOUT | = 1 | No comment in source; used in SystemTimer(). | |
long iteration | = 0 | No comment in source; assigned in run(). | |
volatile Object notifier | No comment in source; assigned in SystemTimer(), run(), setNotify(). | ||
int number | = -1 | No comment in source; assigned in SystemTimer(). | |
static final int ST_THREAD_ENA | = 4 | No comment in source; not referenced by name in this type’s methods. | |
static final int ST_TIMED_OUT | = 2 | No comment in source; not referenced by name in this type’s methods. | |
static final int ST_TIMER_REPEAT | = 1 | reset timer | |
static SystemClock systemClock | = SystemClock.getSystemClock() | No comment in source; not referenced by name in this type’s methods. | |
Thread task | No comment in source; assigned in SystemTimer(), start(), stop(), run(). | ||
int timeout | No comment in source; assigned in SystemTimer(); used in run(). | ||
int tmFlags | = 0 | No comment in source; assigned in SystemTimer(), setTimerRepeat(); used in run(). | |
static int uniqueID | = 0 | No comment in source; assigned in SystemTimer(). |
| Signature | Description | Source |
|---|---|---|
SystemTimer() | 3 statement(s); calls super(). | |
SystemTimer(int tTimeoutSeconds) | 5 statement(s); calls super(). | |
SystemTimer(Thread tThread, int tTimeoutSeconds) | 7 statement(s); calls super(). | |
SystemTimer(String tName, int tTimeoutSeconds) | 5 statement(s); calls super(), setName(). | |
SystemTimer(Thread tThread, String tName, int tTimeoutSeconds) | 6 statement(s); calls super(). | |
SystemTimer(int tTimeoutSeconds, boolean tRepeat) | 6 statement(s); calls super(). | |
SystemTimer(Thread tThread, int tTimeoutSeconds, Object tNotifier) | 7 statement(s); calls super(). |
| Signature | Description | Source |
|---|---|---|
static { … } | Implicit default constructor generated by the compiler (not written in the source). | |
public void function() | 1 statement(s). | |
public void run() | 3 statement(s); calls Thread.currentThread(), wait(), notifier.notifyAll(), notifyAll(), any.printStackTrace(). | |
public void setNotify(Object tObject) | Sets notifier = tObject. | |
void setTimerRepeat(boolean tBoolean) | 1 statement(s). | |
public void start() | 3 statement(s); calls task.setName(), task.start(); creates Thread. | |
public void stop() | Sets task = null. |
Fields: attachment, index, linkFlags, name, next, parentList, prev
Methods: inList(), setName(String)
instantiation — SystemClock.java, line 292
292 SystemTimer tSystemTimer = new SystemTimer(1);
subclass — DisconnectTimer.java, line 9
9 public class DisconnectTimer extends SystemTimer implements DisconnectTimerConstants
10 {