Class DISProtocolHandler
java.lang.Object
org.web3d.vrml.renderer.common.input.dis.DISProtocolHandler
- All Implemented Interfaces:
NetworkRoleListener
,NetworkProtocolHandler
public class DISProtocolHandler
extends Object
implements NetworkProtocolHandler, NetworkRoleListener
The handler for DIS protocol network traffic.
- Version:
- $Revision: 1.26 $
- Author:
- Alan Hudson
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final boolean
The value read from the system property for DEADRECKON_POSITION_PROPprotected static final boolean
The value read from the system property for DEADRECKON_ROTATION_PROPprotected static final String
Property describing the rescaling method to useprotected static final String
Property describing the dead reckonprotected static final boolean
The default dead reckon position valueprotected static final boolean
The 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 TypeMethodDescriptionvoid
Add a network node to the management system.void
clear()
Force clearing all currently managed nodes from this manager now.Get the protocol this handler supports.void
Process network traffic now.void
Remove a network node from the management system.void
roleChanged
(int newRole, Object node) The role of this node has changed.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.void
shutdown()
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_PROP -
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
-
DISProtocolHandler
public DISProtocolHandler()Create a new instance of the execution space manager to run all the routing.
-
-
Method Details
-
getProtocol
Description copied from interface:NetworkProtocolHandler
Get the protocol this handler supports.- Specified by:
getProtocol
in interfaceNetworkProtocolHandler
- Returns:
- the protocol this handler supports
-
setErrorReporter
public void setErrorReporter(org.j3d.util.ErrorReporter reporter) Description copied from interface:NetworkProtocolHandler
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:
setErrorReporter
in interfaceNetworkProtocolHandler
- Parameters:
reporter
- The instance to use or null
-
processNetworkTraffic
public void processNetworkTraffic()Description copied from interface:NetworkProtocolHandler
Process network traffic now.- Specified by:
processNetworkTraffic
in interfaceNetworkProtocolHandler
-
addNode
Description copied from interface:NetworkProtocolHandler
Add a network node to the management system.- Specified by:
addNode
in interfaceNetworkProtocolHandler
- Parameters:
node
- The instance to add to this manager
-
removeNode
Description copied from interface:NetworkProtocolHandler
Remove a network node from the management system.- Specified by:
removeNode
in interfaceNetworkProtocolHandler
- Parameters:
node
- The instance to add to this manager
-
clear
public void clear()Description copied from interface:NetworkProtocolHandler
Force 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:
clear
in interfaceNetworkProtocolHandler
-
shutdown
public void shutdown()Description copied from interface:NetworkProtocolHandler
Shutdown 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:
shutdown
in interfaceNetworkProtocolHandler
-
roleChanged
The role of this node has changed.- Specified by:
roleChanged
in interfaceNetworkRoleListener
- Parameters:
newRole
- The new role, reader, writer, inactive.node
- The node which changed roles.
-