java.lang.Object
simula.runtime.RTS_ARRAY
simula.runtime.RTS_RTObject.RTS_BOOLEAN_ARRAY
- Enclosing class:
RTS_RTObject
This class represent a Simula boolean array.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean[]
The elements in this RTS_BOOLEAN_ARRAY -
Constructor Summary
ConstructorDescriptionRTS_BOOLEAN_ARRAY
(RTS_RTObject.RTS_BOUNDS... BOUNDS) Create a boolean array with the given bounds. -
Method Summary
Modifier and TypeMethodDescriptionCOPY()
Abstract method redefined for all subclass <type>_ARRAYboolean
getELEMENT
(int... x) This method will return a value from ELTS[x]boolean
putELEMENT
(int ix, boolean val) This method will put a value into ELTS[ix]Methods inherited from class simula.runtime.RTS_ARRAY
index, lowerBound, nDim, size, toString, upperBound
-
Field Details
-
ELTS
private final boolean[] ELTSThe elements in this RTS_BOOLEAN_ARRAY
-
-
Constructor Details
-
RTS_BOOLEAN_ARRAY
Create a boolean array with the given bounds.- Parameters:
BOUNDS
- the array bounds
-
-
Method Details
-
putELEMENT
public boolean putELEMENT(int ix, boolean val) This method will put a value into ELTS[ix]- Parameters:
ix
- the index of ELTSval
- the value to put- Returns:
- the value stored
-
getELEMENT
public boolean getELEMENT(int... x) This method will return a value from ELTS[x]- Parameters:
x
- the index of ELTS- Returns:
- the value loaded
-
COPY
Abstract method redefined for all subclass <type>_ARRAY
-