public final class TapNLinkVarInt extends TapNLinkVar
Constructor and Description |
---|
TapNLinkVarInt(short id,
short ctype,
java.lang.String name,
int periodms)
Creates a new Java object to manage the specified integer variable that is
configured in the tap.
|
TapNLinkVarInt(short id,
VariableType type,
java.lang.String name,
int periodms)
Deprecated.
VariableType are replaced by 'short' values (see next method).
|
Modifier and Type | Method and Description |
---|---|
long |
getLValue()
Deprecated.
Returns the value of the variable as a long integer. If the variable is not a
UINT32,
use getValue() instead.
|
int |
getValue()
Returns the value of the variable as an integer.
|
int |
getValue(boolean generateException)
Returns the value of the variable as an integer.
|
void |
setLValue(long v)
Deprecated.
Sets the variable with a new long integer value.
If the variable is not a UINT32, use setValue(int v) instead.
|
void |
setValue(int v)
Sets the variable with a new integer value.
|
void |
setValue(int v,
boolean generateException)
Sets the variable with a new integer value.
|
@Deprecated public TapNLinkVarInt(short id, VariableType type, java.lang.String name, int periodms)
id
- the id of the variable in the taptype
- the VariableType of the variablename
- the name of the variableperiodms
- the period at which the variable is monitoredpublic TapNLinkVarInt(short id, short ctype, java.lang.String name, int periodms)
id
- the id of the variable in the tapctype
- the Type of the variablename
- the name of the variableperiodms
- the period at which the variable is monitoredpublic final int getValue()
public final int getValue(boolean generateException)
generateException
- public final long getLValue()
public final void setValue(int v)
v
- the new value of the variablepublic final void setValue(int v, boolean generateException)
generateException
- v
- the new value of the variablepublic final void setLValue(long v)
v
- the new value of the variable