Xj3D 2.0 VRML/X3D Code API

org.web3d.vrml.renderer.common.input.dis
Class DISXMLProtocolHandler

java.lang.Object
  extended by org.web3d.vrml.renderer.common.input.dis.DISXMLProtocolHandler
All Implemented Interfaces:
NetworkRoleListener, NetworkProtocolHandler

public class DISXMLProtocolHandler
extends java.lang.Object
implements NetworkProtocolHandler, NetworkRoleListener

The handler for DISXML protocol network traffic.

Version:
$Revision: 1.6 $
Author:
Alan Hudson

Field Summary
protected static java.lang.String DEADRECKON_POSITION_PROP
          Property describing the rescalling method to use
protected static java.lang.String DEADRECKON_ROTATION_PROP
          Property describing the dead reckon
protected static boolean deadreckonPosition
          The value read from the system property for MIPMAPS
protected static boolean deadreckonRotation
          The value read from the system property for deadReckonRotation
protected static boolean DEFAULT_DEADRECKON_POSITION
          The default dead reckon position value
protected static boolean DEFAULT_DEADRECKON_ROTATION
          The default dead reckon position value
 
Constructor Summary
DISXMLProtocolHandler()
          Create a new instance of the execution space manager to run all the routing.
 
Method Summary
 void addNode(VRMLNetworkInterfaceNodeType node)
          Add a network node to the management system.
 void clear()
          Force clearing all currently managed nodes from this manager now.
 java.lang.String getProtocol()
          Get the protocol this handler supports.
 void processNetworkTraffic()
          Process network traffic now.
 void removeNode(VRMLNetworkInterfaceNodeType node)
          Remove a network node from the management system.
 void roleChanged(int newRole, java.lang.Object node)
          The role of this node has changed.
 void setErrorReporter(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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_DEADRECKON_POSITION

protected static final boolean DEFAULT_DEADRECKON_POSITION
The default dead reckon position value

See Also:
Constant Field Values

DEADRECKON_POSITION_PROP

protected static final java.lang.String DEADRECKON_POSITION_PROP
Property describing the rescalling method to use

See Also:
Constant Field Values

deadreckonPosition

protected static final boolean deadreckonPosition
The value read from the system property for MIPMAPS


DEFAULT_DEADRECKON_ROTATION

protected static final boolean DEFAULT_DEADRECKON_ROTATION
The default dead reckon position value

See Also:
Constant Field Values

DEADRECKON_ROTATION_PROP

protected static final java.lang.String DEADRECKON_ROTATION_PROP
Property describing the dead reckon

See Also:
Constant Field Values

deadreckonRotation

protected static final boolean deadreckonRotation
The value read from the system property for deadReckonRotation

Constructor Detail

DISXMLProtocolHandler

public DISXMLProtocolHandler()
Create a new instance of the execution space manager to run all the routing.

Method Detail

getProtocol

public java.lang.String getProtocol()
Get the protocol this handler supports.

Specified by:
getProtocol in interface NetworkProtocolHandler

setErrorReporter

public void setErrorReporter(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:
setErrorReporter in interface NetworkProtocolHandler
Parameters:
reporter - The instance to use or null

processNetworkTraffic

public void processNetworkTraffic()
Process network traffic now.

Specified by:
processNetworkTraffic in interface NetworkProtocolHandler

addNode

public void addNode(VRMLNetworkInterfaceNodeType node)
Add a network node to the management system.

Specified by:
addNode in interface NetworkProtocolHandler
Parameters:
node - The instance to add to this manager

removeNode

public void removeNode(VRMLNetworkInterfaceNodeType node)
Remove a network node from the management system.

Specified by:
removeNode in interface NetworkProtocolHandler
Parameters:
node - The instance to add to this manager

clear

public void clear()
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 interface NetworkProtocolHandler

shutdown

public void shutdown()
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 interface NetworkProtocolHandler

roleChanged

public void roleChanged(int newRole,
                        java.lang.Object node)
The role of this node has changed.

Specified by:
roleChanged in interface NetworkRoleListener
Parameters:
newRole - The new role, reader, writer, inactive.
node - The node which changed roles.

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium