abstract class J3dStructure
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) UnorderList |
messageList
This is the list of messages to be processed by this structure
|
(package private) J3dMessage[] |
msgList |
(package private) int |
nMessage
number of messages for this snapshot of time
|
(package private) J3dThreadData |
threadData
The thread data for the update thread
|
(package private) int |
threadType
This is the type of update thread
|
(package private) VirtualUniverse |
universe
The universe of this structure
|
(package private) StructureUpdateThread |
updateThread
This is the update Thread for this structure
|
| Constructor and Description |
|---|
J3dStructure(VirtualUniverse u,
int type)
This constructor does nothing
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
addMessage(J3dMessage message)
This adds a message to the list of messages for this structure
|
(package private) abstract void |
cleanup()
Release resource associate with this structure before GC
We need to clear all those IndexedUnorderSet/WakeupIndexedList
so that the listIdx associate with IndexedObject reset to -1.
|
(package private) void |
clearMessages() |
(package private) J3dMessage[] |
getMessages(long referenceTime)
This returns whether or not there are any pending messages
|
(package private) int |
getNumMessage() |
(package private) J3dThreadData |
getUpdateThreadData()
This returns the thread data for this thread.
|
(package private) abstract void |
processMessages(long referenceTime)
This gets overriden by the structure
|
(package private) abstract void |
removeNodes(J3dMessage m)
This is used by MasterControl to process any unused message
for final cleanup.
|
UnorderList messageList
StructureUpdateThread updateThread
int threadType
VirtualUniverse universe
J3dThreadData threadData
int nMessage
J3dMessage[] msgList
J3dStructure(VirtualUniverse u, int type)
final J3dThreadData getUpdateThreadData()
final void addMessage(J3dMessage message)
final J3dMessage[] getMessages(long referenceTime)
final void clearMessages()
int getNumMessage()
abstract void processMessages(long referenceTime)
abstract void removeNodes(J3dMessage m)
abstract void cleanup()
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.