public interface VariableAccessArray_ifc extends VariableAccess_ifc
VariableAccess_ifc
with the capability to access elements in an array.Modifier and Type | Field and Description |
---|---|
static int |
version
Version, history and license.
|
Modifier and Type | Method and Description |
---|---|
int |
getDimension(int dimension)
Returns the number of dimension if it is an array or its number of elements.
|
double |
getDouble(int... ixArray)
Gets the value from this variable.
|
float |
getFloat(int... ixArray)
Gets the value from this variable.
|
int |
getInt(int... ixArray)
Gets a integer value from this variable.
|
long |
getLong(int... ixArray)
Gets a long value from this variable.
|
java.lang.String |
getString(int... ixArray)
Gets the value from this variable.
|
double |
setDouble(double value,
int... ixArray)
Sets the value from this variable.
|
float |
setFloat(float value,
int... ixArray)
Sets the value from this variable.
|
int |
setInt(int value,
int... ixArray)
Sets the value into the variable.
|
long |
setLong(long value,
int... ixArray)
Sets the value into the variable.
|
java.lang.String |
setString(java.lang.String value,
int... ixArray)
Sets the value into the variable
|
getDouble, getFloat, getInt, getLastRefreshTime, getLastRefreshTimeShort, getLong, getString, getType, isRefreshed, isRequestedValue, requestValue, requestValue, requestValue, setDouble, setFloat, setInt, setLong, setRefreshed, setString
static final int version
VariableAccess_ifc
.
All simple accesses and especially VariableAccessWithIdx
need VariableAccess_ifc
.
All implementations need the VariableAccessArray_ifc
if they support arrays.
getLong(int...)
and setLong(long, int...)
VariableAccess_ifc.requestValue(long)
, VariableAccess_ifc.getLastRefreshTime()
:
A variable should be refreshed by determined call of VariableAccess_ifc.requestValue(long)
if it holds
a value from a remote device.
VariableAccess_ifc.getType()
int getInt(int... ixArray)
ixArray
- unused if it isn't an indexed variable.int setInt(int value, int... ixArray)
value
- The value given as int.ixArray
- unused if it isn't an indexed variable.long getLong(int... ixArray)
ixArray
- unused if it isn't an indexed variable.long setLong(long value, int... ixArray)
value
- The value given as int.ixArray
- unused if it isn't an indexed variable.float getFloat(int... ixArray)
ixArray
- unused if it isn't an indexed variable.float setFloat(float value, int... ixArray)
ixArray
- unused if it isn't an indexed variable.double getDouble(int... ixArray)
ixArray
- unused if it isn't an indexed variable.double setDouble(double value, int... ixArray)
ixArray
- unused if it isn't an indexed variable.java.lang.String getString(int... ixArray)
ixArray
- unused if it isn't an indexed variable.java.lang.String setString(java.lang.String value, int... ixArray)
value
- The value given as String.ixArray
- unused if it isn't an indexed variable.int getDimension(int dimension)
dimension
- 0 to get number of dimension, 1... to get the length of the dimension.