Xj3D 2.0 VRML/X3D Code API

org.web3d.vrml.nodes
Interface VRMLNetworkInterfaceNodeType

All Superinterfaces:
FrameStateListener, VRMLChildNodeType, VRMLNode, VRMLNodeType, VRMLWorldRootChildNodeType
All Known Subinterfaces:
VRMLDISManagerNodeType, VRMLDISNodeType

public interface VRMLNetworkInterfaceNodeType
extends VRMLChildNodeType

Representation of a node that issue or receive network data.

Version:
$Revision: 1.4 $
Author:
Alan Hudson

Field Summary
static int ROLE_INACTIVE
          What role this node plays: inactive
static int ROLE_MANAGER
          What role this node plays: manager
static int ROLE_READER
          What role this node plays: reader
static int ROLE_WRITER
          What role this node plays: writer
 
Method Summary
 void addNetworkRoleListener(NetworkRoleListener l)
          Add a NetworkRoleListener.
 java.lang.String getProtocol()
          Get the protocol this node supports.
 int getRole()
          Get the role of this node.
 void removeNetworkRoleListener(NetworkRoleListener l)
          Remove a NetworkRoleListener.
 
Methods inherited from interface org.web3d.vrml.nodes.VRMLNodeType
addNodeListener, clearRemovedLayerIds, getFieldValue, getLayerIds, getMetadataObject, getRefCount, getRemovedLayerIds, hasFieldChanged, isSetupFinished, notifyExternProtoLoaded, removeNodeListener, sendRoute, setDEF, setFrameStateManager, setMetadataObject, setupFinished, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, updateRefCount
 
Methods inherited from interface org.web3d.vrml.lang.VRMLNode
getFieldDeclaration, getFieldIndex, getNodeFieldIndices, getNumFields, getPrimaryType, getSecondaryType, getUserData, getVRMLNodeName, isDEF, setErrorReporter, setUserData, setVersion
 
Methods inherited from interface org.web3d.vrml.nodes.FrameStateListener
allEventsComplete
 

Field Detail

ROLE_READER

static final int ROLE_READER
What role this node plays: reader

See Also:
Constant Field Values

ROLE_WRITER

static final int ROLE_WRITER
What role this node plays: writer

See Also:
Constant Field Values

ROLE_INACTIVE

static final int ROLE_INACTIVE
What role this node plays: inactive

See Also:
Constant Field Values

ROLE_MANAGER

static final int ROLE_MANAGER
What role this node plays: manager

See Also:
Constant Field Values
Method Detail

getProtocol

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

Returns:
The protocol.

getRole

int getRole()
Get the role of this node.

Returns:
One of the role constants, ROLE_*.

addNetworkRoleListener

void addNetworkRoleListener(NetworkRoleListener l)
Add a NetworkRoleListener.

Parameters:
l - The listener. Duplicates and nulls are ignored.

removeNetworkRoleListener

void removeNetworkRoleListener(NetworkRoleListener l)
Remove a NetworkRoleListener.

Parameters:
l - The listener

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium