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 TypeMethodDescriptionboolean
Return the enabled boolean value.boolean
Return the isActive boolean value.boolean
Return the isLoaded boolean value.double
Return the loadTime double value.int
Return the number of MFNode items in the watchList field.float
Return the progress float value.double
Return the timeOut double value.void
getWatchList
(X3DNode[] val) Return the watchList value in the argument X3DNode[]void
setEnabled
(boolean val) Set the enabled field.void
setTimeOut
(double val) Set the timeOut field.void
setWatchList
(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, setMetadata
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getEnabled
in interfaceX3DSensorNode
- Returns:
- The enabled boolean value.
-
setEnabled
public void setEnabled(boolean val) Set the enabled field.- Specified by:
setEnabled
in interfaceX3DSensorNode
- Parameters:
val
- The boolean to set.
-
getIsActive
public boolean getIsActive()Return the isActive boolean value.- Specified by:
getIsActive
in interfaceX3DSensorNode
- Returns:
- The isActive boolean value.
-
getNumWatchList
public int getNumWatchList()Return the number of MFNode items in the watchList field.- Specified by:
getNumWatchList
in interfaceLoadSensor
- Returns:
- the number of MFNode items in the watchList field.
-
getWatchList
Return the watchList value in the argument X3DNode[]- Specified by:
getWatchList
in interfaceLoadSensor
- Parameters:
val
- The X3DNode[] to initialize.
-
setWatchList
Set the watchList field.- Specified by:
setWatchList
in interfaceLoadSensor
- Parameters:
val
- The X3DNode[] to set.
-
getTimeOut
public double getTimeOut()Return the timeOut double value.- Specified by:
getTimeOut
in interfaceLoadSensor
- Returns:
- The timeOut double value.
-
setTimeOut
public void setTimeOut(double val) Set the timeOut field.- Specified by:
setTimeOut
in interfaceLoadSensor
- Parameters:
val
- The double to set.
-
getLoadTime
public double getLoadTime()Return the loadTime double value.- Specified by:
getLoadTime
in interfaceLoadSensor
- Returns:
- The loadTime double value.
-
getIsLoaded
public boolean getIsLoaded()Return the isLoaded boolean value.- Specified by:
getIsLoaded
in interfaceLoadSensor
- Returns:
- The isLoaded boolean value.
-
getProgress
public float getProgress()Return the progress float value.- Specified by:
getProgress
in interfaceLoadSensor
- Returns:
- The progress float value.
-