Class DISXMLProtocolHandler
java.lang.Object
org.web3d.vrml.renderer.common.input.dis.DISXMLProtocolHandler
- All Implemented Interfaces:
NetworkRoleListener,NetworkProtocolHandler
public class DISXMLProtocolHandler
extends Object
implements NetworkProtocolHandler, NetworkRoleListener
TODO: Consolidate DISProtocolHandler and this PH
The handler for DISXML protocol network traffic.
- Version:
- $Revision: 1.10 $
- Author:
- Alan Hudson
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final booleanThe value read from the system property for DEADRECKON_POSITIONprotected static final booleanThe value read from the system property for DEADRECKON_ROTATION_PROPprotected static final StringProperty describing the rescaling method to useprotected static final StringProperty describing the dead reckonprotected static final booleanThe default dead reckon position valueprotected static final booleanThe default dead reckon position value -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new instance of the execution space manager to run all the routing. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a network node to the management system.voidclear()Force clearing all currently managed nodes from this manager now.Get the protocol this handler supports.voidProcess network traffic now.voidRemove a network node from the management system.voidroleChanged(int newRole, Object node) The role of this node has changed.voidsetErrorReporter(org.j3d.util.ErrorReporter reporter) Register an error reporter with the manager so that any errors generated by the loading of script code can be reported in a nice, pretty fashion.voidshutdown()Shutdown the protocol handler now.
-
Field Details
-
DEFAULT_DEADRECKON_POSITION
protected static final boolean DEFAULT_DEADRECKON_POSITIONThe default dead reckon position value- See Also:
-
DEADRECKON_POSITION_PROP
Property describing the rescaling method to use- See Also:
-
DEAD_RECKON_POSITION
protected static final boolean DEAD_RECKON_POSITIONThe value read from the system property for DEADRECKON_POSITION -
DEFAULT_DEADRECKON_ROTATION
protected static final boolean DEFAULT_DEADRECKON_ROTATIONThe default dead reckon position value- See Also:
-
DEADRECKON_ROTATION_PROP
Property describing the dead reckon- See Also:
-
DEAD_RECKON_ROTATION
protected static final boolean DEAD_RECKON_ROTATIONThe value read from the system property for DEADRECKON_ROTATION_PROP
-
-
Constructor Details
-
DISXMLProtocolHandler
public DISXMLProtocolHandler()Create a new instance of the execution space manager to run all the routing.
-
-
Method Details
-
getProtocol
Description copied from interface:NetworkProtocolHandlerGet the protocol this handler supports.- Specified by:
getProtocolin interfaceNetworkProtocolHandler- Returns:
- the protocol this handler supports
-
setErrorReporter
public void setErrorReporter(org.j3d.util.ErrorReporter reporter) Register an error reporter with the manager so that any errors generated by the loading of script code can be reported in a nice, pretty fashion. Setting a value of null will clear the currently set reporter. If one is already set, the new value replaces the old.- Specified by:
setErrorReporterin interfaceNetworkProtocolHandler- Parameters:
reporter- The instance to use or null
-
processNetworkTraffic
public void processNetworkTraffic()Process network traffic now.- Specified by:
processNetworkTrafficin interfaceNetworkProtocolHandler
-
addNode
Description copied from interface:NetworkProtocolHandlerAdd a network node to the management system.- Specified by:
addNodein interfaceNetworkProtocolHandler- Parameters:
node- The instance to add to this manager
-
removeNode
Description copied from interface:NetworkProtocolHandlerRemove a network node from the management system.- Specified by:
removeNodein interfaceNetworkProtocolHandler- Parameters:
node- The instance to add to this manager
-
clear
public void clear()Description copied from interface:NetworkProtocolHandlerForce clearing all currently managed nodes from this manager now. This is used to indicate that a new world is about to be loaded and everything should be cleaned out now.- Specified by:
clearin interfaceNetworkProtocolHandler
-
shutdown
public void shutdown()Description copied from interface:NetworkProtocolHandlerShutdown the protocol handler now. If this is using any external resources it should remove those now as the entire application is about to die- Specified by:
shutdownin interfaceNetworkProtocolHandler
-
roleChanged
Description copied from interface:NetworkRoleListenerThe role of this node has changed.- Specified by:
roleChangedin interfaceNetworkRoleListener- Parameters:
newRole- The new role, reader, writer, inactive.node- The node which changed roles.
-