Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.SystemTimer
Source: src/com/multiversesocial/hyperview/SystemTimer.java

SystemTimer

HyperView V3.2 — class
version V3.2 class

Summary

/////////////////////////////////////////////////////// By Tony Swain... - A system clock with a 1 second resolution.

Source file: SystemTimer.java

Hierarchy

Extends: Linkable

Implements: Runnable

Referenced HyperView classes

Media files used

Declaration & members

public class SystemTimer extends Linkable implements Runnable

Declared in src/com/multiversesocial/hyperview/SystemTimer.java, lines 15–189. 14 field(s), 7 constructor(s), 7 method(s). Every member has an anchor you can link to (e.g. SystemTimer.html#<id>).

Fields (14)

DeclarationValue / initializerDescriptionSource
static int checkTime= 5No comment in source; not referenced by name in this type’s methods.line 22
volatile int countFor SystemClock()line 29
static final int DEFAULT_TIMEOUT= 1 (constant)No comment in source; used in SystemTimer().line 20
long iteration= 0No comment in source; assigned in run().line 30
volatile Object notifierNo comment in source; assigned in SystemTimer(), run(), setNotify().line 23
int number= -1No comment in source; assigned in SystemTimer().line 25
static final int ST_THREAD_ENA= 4 (constant)No comment in source; not referenced by name in this type’s methods.line 19
static final int ST_TIMED_OUT= 2 (constant)No comment in source; not referenced by name in this type’s methods.line 18
static final int ST_TIMER_REPEAT= 1 (constant)reset timerline 17
static SystemClock systemClock= SystemClock.getSystemClock()No comment in source; not referenced by name in this type’s methods.line 24
Thread taskNo comment in source; assigned in SystemTimer(), start(), stop(), run().line 27
int timeoutNo comment in source; assigned in SystemTimer(); used in run().line 28
int tmFlags= 0No comment in source; assigned in SystemTimer(), setTimerRepeat(); used in run().line 26
static int uniqueID= 0No comment in source; assigned in SystemTimer().line 21

Constructors (7)

SignatureDescriptionSource
SystemTimer()3 statement(s); calls super().line 32
SystemTimer(int tTimeoutSeconds)5 statement(s); calls super().line 38
SystemTimer(Thread tThread, int tTimeoutSeconds)7 statement(s); calls super().line 46
SystemTimer(String tName, int tTimeoutSeconds)5 statement(s); calls super(), setName().line 56
SystemTimer(Thread tThread, String tName, int tTimeoutSeconds)6 statement(s); calls super().line 64
SystemTimer(int tTimeoutSeconds, boolean tRepeat)6 statement(s); calls super().line 86
SystemTimer(Thread tThread, int tTimeoutSeconds, Object tNotifier)7 statement(s); calls super().line 99

Methods (7)

SignatureDescriptionSource
static { … }Implicit default constructor generated by the compiler (not written in the source).implicit
public void function()1 statement(s).line 184
public void run()3 statement(s); calls Thread.currentThread(), wait(), notifier.notifyAll(), notifyAll(), any.printStackTrace().
Implements Runnable.run()
line 130
public void setNotify(Object tObject)Sets notifier = tObject.line 178
void setTimerRepeat(boolean tBoolean)1 statement(s).line 122
public void start()3 statement(s); calls task.setName(), task.start(); creates Thread.line 109
public void stop()Sets task = null.line 117

Inherited members

Non-private members inherited from HyperView superclasses and not overridden or hidden here.

From Linkable (7 fields, 2 methods)

Fields: attachment, index, linkFlags, name, next, parentList, prev

Methods: inList(), setName(String)

Examples

Real usage taken from elsewhere in the HyperView 3.2 source (file and line shown; source path src/com/multiversesocial/hyperview/).

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  {
Hits--