Class SAILoadSensor
java.lang.Object
org.web3d.vrml.scripting.sai.BaseNode
org.xj3d.sai.internal.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
-
Field Summary
Fields inherited from class org.web3d.vrml.scripting.sai.BaseNode
accessPermitted, fieldQueue, fieldRefMap, realNode
-
Constructor Summary
ConstructorsConstructorDescriptionSAILoadSensor
(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) 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.sai.BaseNode
checkAccess, dispose, equals, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, hashCode, isRealized, realize, setMetadata, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, 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, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor- Parameters:
bnf
-
-
-
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.
-