Class DefaultEAIFieldAndNodeFactory
java.lang.Object
org.web3d.vrml.scripting.external.neteai.DefaultEAIFieldAndNodeFactory
DefaultEAIFieldAndNodeFactory is a simple implementation of
EAIFieldAndNodeFactory. It handles both the tasks of mapping
between NetEAINode instances and node network IDs and it also handles
constructing the field instances.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultEAIFieldAndNodeFactory
(FieldAndNodeRequestProcessor processor, NetworkEventQueue externalEventQueue) Basic constructor. -
Method Summary
Modifier and TypeMethodDescriptioncreateNode
(int nodeID) generateEventIn
(int fieldID, int fieldType) getEventOut
(int fieldID, int fieldType) int
getStoredEventOut
(int fieldID, int fieldType, DataInputStream source)
-
Constructor Details
-
DefaultEAIFieldAndNodeFactory
public DefaultEAIFieldAndNodeFactory(FieldAndNodeRequestProcessor processor, NetworkEventQueue externalEventQueue) Basic constructor. The arguments are passed as needed to the field and node instances.- Parameters:
processor
- The object which handles field and node requestsexternalEventQueue
- The queue for eventIn's to post to
-
-
Method Details
-
createNode
-
generateEventIn
-
getEventOut
-
getStoredEventOut
public EventOut getStoredEventOut(int fieldID, int fieldType, DataInputStream source) throws IOException - Throws:
IOException
-
getNodeID
- See Also:
-