Package org.apache.plc4x.java.api.model
Interface ArrayInfo
-
public interface ArrayInfo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getLowerBound()
As in PLCs not every array starts at 0, we need to be flexible with this.int
getSize()
int
getUpperBound()
As in PLCs not every array starts at 0, we need to be flexible with this.
-
-
-
Method Detail
-
getSize
int getSize()
- Returns:
- Number of elements in total
-
getLowerBound
int getLowerBound()
As in PLCs not every array starts at 0, we need to be flexible with this. In the default usage scenario of a simple array [6] this index will be 0 by default.- Returns:
- Returns the index of lower bound of the array.
-
getUpperBound
int getUpperBound()
As in PLCs not every array starts at 0, we need to be flexible with this. In the default usage scenario of a simple array [6] this index will be match the array size.- Returns:
- Returns the index of upper bound of the array.
-
-