public final class TapNLinkVarIntArray extends TapNLinkVar
Constructor and Description |
---|
TapNLinkVarIntArray(short id,
short ctype,
java.lang.String name,
int periodms,
int size)
Creates a new Java object to manage the specified integer array variable that
is configured in the tap.
|
TapNLinkVarIntArray(short id,
VariableType type,
java.lang.String name,
int periodms,
int size)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
getSize()
Returns the length of the variable array.
|
int[] |
getValue()
Returns the value of the integer array variable.
|
int[] |
getValue(boolean generateException)
Returns the value of the integer array variable.
|
void |
setValue(int[] array)
Sets the value of the variable with a new integer array
|
void |
setValue(int[] array,
boolean generateException)
Sets the value of the variable with a new integer array
If generateException is true, a TapNLinkException will be thrown if the write action fails.
|
@Deprecated public TapNLinkVarIntArray(short id, VariableType type, java.lang.String name, int periodms, int size)
id
- the id of the variable in the taptype
- the VariableType of the elements of the arrayname
- the name of the variableperiodms
- the period at which the variable is monitoredsize
- the size of the arraypublic TapNLinkVarIntArray(short id, short ctype, java.lang.String name, int periodms, int size)
id
- the id of the variable in the tapctype
- the Type of the elements of the arrayname
- the name of the variableperiodms
- the period at which the variable is monitoredsize
- the size of the arraypublic final void setValue(int[] array)
array
- the new value of the variablepublic final void setValue(int[] array, boolean generateException)
array
- the new value of the variablegenerateException
- public final int[] getValue()
public final int[] getValue(boolean generateException)
generateException
- public final int getSize()