Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

net::threebit::jvr::JVRFireThread Class Reference

List of all members.

Public Member Functions

void run ()

Static Public Member Functions

void fire (long millis, JVREvent target)
String printQueue ()

Private Member Functions

 JVRFireThread ()

Static Private Member Functions

synchronized JVRFireThread singleton ()

Static Private Attributes

Logger logger = Logger.getLogger("net.threebit.jvr")
JVRFireThread singleton = null
ArrayList queue = new ArrayList()

Detailed Description

Manages queue JVREvents that have yet to be fired.

Definition at line 30 of file JVRFireThread.java.


Constructor & Destructor Documentation

net::threebit::jvr::JVRFireThread::JVRFireThread  )  [inline, private]
 

This is a singleton class.

Definition at line 37 of file JVRFireThread.java.

Referenced by singleton().


Member Function Documentation

void net::threebit::jvr::JVRFireThread::fire long  millis,
JVREvent  target
[inline, static]
 

Register an event to be fired later.

Parameters:
millis Milliseconds until the event should be fired.
target The event to fire when it's time has come.

Definition at line 107 of file JVRFireThread.java.

References logger, queue, and singleton().

String net::threebit::jvr::JVRFireThread::printQueue  )  [inline, static]
 

Definition at line 147 of file JVRFireThread.java.

References queue.

void net::threebit::jvr::JVRFireThread::run  )  [inline]
 

Runs forever and fires events when their time has come.

Definition at line 41 of file JVRFireThread.java.

References net::threebit::jvr::JVREvent::fire(), logger, and queue.

synchronized JVRFireThread net::threebit::jvr::JVRFireThread::singleton  )  [inline, static, private]
 

Get the singleton. If it does not exist then create it and start it.

Definition at line 93 of file JVRFireThread.java.

References JVRFireThread().

Referenced by fire().


Member Data Documentation

Logger net::threebit::jvr::JVRFireThread::logger = Logger.getLogger("net.threebit.jvr") [static, private]
 

Definition at line 32 of file JVRFireThread.java.

Referenced by fire(), and run().

ArrayList net::threebit::jvr::JVRFireThread::queue = new ArrayList() [static, private]
 

Definition at line 34 of file JVRFireThread.java.

Referenced by fire(), printQueue(), and run().

JVRFireThread net::threebit::jvr::JVRFireThread::singleton = null [static, private]
 

Definition at line 33 of file JVRFireThread.java.


The documentation for this class was generated from the following file:
Generated on Sat Jul 16 03:47:44 2005 for JVR by doxygen 1.3.5