public final class TapNLinkVarFloat extends TapNLinkVar
Constructor and Description |
---|
TapNLinkVarFloat(short id,
java.lang.String name,
int periodms)
Creates a new Java object to manage the specified float variable that is
configured in the tap.
|
Modifier and Type | Method and Description |
---|---|
float |
getValue()
Returns the value of the variable as a float.
|
float |
getValue(boolean generateException)
Returns the value of the variable as a float.
|
void |
setValue(float v)
Sets the variable with a new float value
|
void |
setValue(float v,
boolean generateException)
Sets the variable with a new float value
If generateException is true, a TapNLinkException will be thrown if the write action fails.
|
public TapNLinkVarFloat(short id, java.lang.String name, int periodms)
id
- the id of the variable in the tapname
- the name of the variableperiodms
- the period at which the variable is monitoredpublic final float getValue()
public final float getValue(boolean generateException)
generateException
- public final void setValue(float v)
v
- the new value of the variablepublic final void setValue(float v, boolean generateException)
v
- the new value of the variablegenerateException
-