|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
javax.media.j3d.J3dThread
javax.media.j3d.InputDeviceScheduler
class InputDeviceScheduler
This thread manages all input device scheduling. It monitors and caches all device additions and removals. It spawns new threads for blocking devices, manages all non-blocking drivers itself, and tags the sensors of demand_driven devices. This implementation assume that processMode of InputDevice will not change after addInputDevice().
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
(package private) boolean |
active
|
(package private) java.util.ArrayList |
blockingDevices
|
(package private) java.util.Vector |
devices
|
private int |
instanceNum
|
(package private) java.util.ArrayList |
nonBlockingDevices
|
private static int |
numInstances
|
(package private) PhysicalEnvironment |
physicalEnv
|
(package private) static int |
samplingTime
|
(package private) J3dThreadData |
threadData
|
(package private) java.util.ArrayList |
threads
|
Fields inherited from class javax.media.j3d.J3dThread |
---|
args, BEHAVIOR_SCHEDULER, classification, INPUT_DEVICE_SCHEDULER, lastWaitTimestamp, NOTIFY, NOTIFY_AND_WAIT, referenceTime, RENDER_THREAD, RUN, SOUND_SCHEDULER, STOP, type, UPDATE_BEHAVIOR, UPDATE_GEOMETRY, UPDATE_RENDER, UPDATE_RENDERING_ATTRIBUTES, UPDATE_RENDERING_ENVIRONMENT, UPDATE_SOUND, UPDATE_THREAD, UPDATE_TRANSFORM, userStop, WAIT, WORK_THREAD |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
InputDeviceScheduler(java.lang.ThreadGroup threadGroup,
PhysicalEnvironment physicalEnv)
|
Method Summary | |
---|---|
(package private) void |
activate()
|
(package private) void |
addInputDevice(InputDevice device)
|
(package private) void |
deactivate()
|
(package private) void |
doWork(long referenceTime)
This method is defined by all slave threads to implement one iteration of work. |
(package private) int |
getInstanceNum()
|
(package private) J3dThreadData |
getThreadData()
|
private int |
newInstanceNum()
|
(package private) void |
removeInputDevice(InputDevice device)
|
(package private) void |
shutdown()
|
Methods inherited from class javax.media.j3d.J3dThread |
---|
cleanup, cleanupView, finish, getThreadData, initialize, run, runMonitor |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
java.util.ArrayList nonBlockingDevices
java.util.ArrayList blockingDevices
java.util.ArrayList threads
PhysicalEnvironment physicalEnv
java.util.Vector devices
J3dThreadData threadData
boolean active
static int samplingTime
private static int numInstances
private int instanceNum
Constructor Detail |
---|
InputDeviceScheduler(java.lang.ThreadGroup threadGroup, PhysicalEnvironment physicalEnv)
Method Detail |
---|
private int newInstanceNum()
int getInstanceNum()
getInstanceNum
in class J3dThread
void addInputDevice(InputDevice device)
void removeInputDevice(InputDevice device)
void activate()
void deactivate()
J3dThreadData getThreadData()
void doWork(long referenceTime)
J3dThread
doWork
in class J3dThread
void shutdown()
shutdown
in class J3dThread
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |