Class SAILoadSensor
java.lang.Object
org.web3d.vrml.scripting.external.sai.SAINode
org.xj3d.sai.external.node.networking.SAILoadSensor
- All Implemented Interfaces:
LoadSensor,X3DChildNode,X3DNetworkSensorNode,X3DNode,X3DSensorNode
A concrete implementation of the LoadSensor node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Constructor Summary
ConstructorsConstructorDescriptionSAILoadSensor(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn the enabled boolean value.booleanReturn the isActive boolean value.booleanReturn the isLoaded boolean value.doubleReturn the loadTime double value.intReturn the number of MFNode items in the watchList field.floatReturn the progress float value.doubleReturn the timeOut double value.voidgetWatchList(X3DNode[] val) Return the watchList value in the argument X3DNode[]voidsetEnabled(boolean val) Set the enabled field.voidsetTimeOut(double val) Set the timeOut field.voidsetWatchList(X3DNode[] val) Set the watchList field.Methods inherited from class org.web3d.vrml.scripting.external.sai.SAINode
dispose, equals, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, hashCode, isRealized, realize, setMetadataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Constructor Details
-
SAILoadSensor
public SAILoadSensor(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor- Parameters:
queue-
-
-
Method Details
-
getEnabled
public boolean getEnabled()Return the enabled boolean value.- Specified by:
getEnabledin interfaceX3DSensorNode- Returns:
- The enabled boolean value.
-
setEnabled
public void setEnabled(boolean val) Set the enabled field.- Specified by:
setEnabledin interfaceX3DSensorNode- Parameters:
val- The boolean to set.
-
getIsActive
public boolean getIsActive()Return the isActive boolean value.- Specified by:
getIsActivein interfaceX3DSensorNode- Returns:
- The isActive boolean value.
-
getNumWatchList
public int getNumWatchList()Return the number of MFNode items in the watchList field.- Specified by:
getNumWatchListin interfaceLoadSensor- Returns:
- the number of MFNode items in the watchList field.
-
getWatchList
Return the watchList value in the argument X3DNode[]- Specified by:
getWatchListin interfaceLoadSensor- Parameters:
val- The X3DNode[] to initialize.
-
setWatchList
Set the watchList field.- Specified by:
setWatchListin interfaceLoadSensor- Parameters:
val- The X3DNode[] to set.
-
getTimeOut
public double getTimeOut()Return the timeOut double value.- Specified by:
getTimeOutin interfaceLoadSensor- Returns:
- The timeOut double value.
-
setTimeOut
public void setTimeOut(double val) Set the timeOut field.- Specified by:
setTimeOutin interfaceLoadSensor- Parameters:
val- The double to set.
-
getLoadTime
public double getLoadTime()Return the loadTime double value.- Specified by:
getLoadTimein interfaceLoadSensor- Returns:
- The loadTime double value.
-
getIsLoaded
public boolean getIsLoaded()Return the isLoaded boolean value.- Specified by:
getIsLoadedin interfaceLoadSensor- Returns:
- The isLoaded boolean value.
-
getProgress
public float getProgress()Return the progress float value.- Specified by:
getProgressin interfaceLoadSensor- Returns:
- The progress float value.
-