java.lang.Object
simula.runtime.RTS_ARRAY
simula.runtime.RTS_RTObject.RTS_REALTYPE_ARRAY
simula.runtime.RTS_RTObject.RTS_REAL_ARRAY
- Enclosing class:
RTS_RTObject
This class represent a Simula real array.
-
Field Summary
Modifier and TypeFieldDescription(package private) final float[]
The elements in this RTS_REAL_ARRAY -
Constructor Summary
ConstructorDescriptionRTS_REAL_ARRAY
(RTS_RTObject.RTS_BOUNDS... BOUNDS) Create a real array with the given bounds. -
Method Summary
Modifier and TypeMethodDescriptionCOPY()
Abstract method redefined for all subclass <type>_ARRAYfloat
getELEMENT
(int... x) This method will return a value from ELTS[x...]double
getRealTypeELEMENT
(int i) Utility for fetching value of a real type arrayfloat
putELEMENT
(int ix, float 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
final float[] ELTSThe elements in this RTS_REAL_ARRAY
-
-
Constructor Details
-
RTS_REAL_ARRAY
Create a real array with the given bounds.- Parameters:
BOUNDS
- the array bounds
-
-
Method Details
-
putELEMENT
public float putELEMENT(int ix, float 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 float 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 -
getRealTypeELEMENT
public double getRealTypeELEMENT(int i) Description copied from class:RTS_RTObject.RTS_REALTYPE_ARRAY
Utility for fetching value of a real type arrayUsed by: Reandom drawing discrete and linear procedures.
- Specified by:
getRealTypeELEMENT
in classRTS_RTObject.RTS_REALTYPE_ARRAY
- Parameters:
i
- index- Returns:
- value of ELTS[i]
-