Class RTS_LONG_REAL_ARRAY
java.lang.Object
simula.runtime.RTS_ARRAY
simula.runtime.RTS_REALTYPE_ARRAY
simula.runtime.RTS_LONG_REAL_ARRAY
This class represent a Simula long real array.
Link to GitHub: Source File.
- Author:
- Øystein Myhre Andersen
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final double[]
The elements in this RTS_LONG_REAL_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionRTS_LONG_REAL_ARRAY
(RTS_BOUNDS... BOUNDS) Create a long real array with the given bounds. -
Method Summary
Modifier and TypeMethodDescriptionCOPY()
Abstract method redefined for all subclass_ARRAY double
getELEMENT
(int... x) This method will return a value from ELTS(x...)double
getRealTypeELEMENT
(int i) Utility for fetching value of a real type array.double
putELEMENT
(int ix, double 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 double[] ELTSThe elements in this RTS_LONG_REAL_ARRAY
-
-
Constructor Details
-
RTS_LONG_REAL_ARRAY
Create a long real array with the given bounds.- Parameters:
BOUNDS
- the array bounds
-
-
Method Details
-
putELEMENT
public double putELEMENT(int ix, double 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 double 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_ARRAY -
getRealTypeELEMENT
public double getRealTypeELEMENT(int i) Description copied from class:RTS_REALTYPE_ARRAY
Utility for fetching value of a real type array.
Used by: Reandom drawing discrete and linear procedures.
- Specified by:
getRealTypeELEMENT
in classRTS_REALTYPE_ARRAY
- Parameters:
i
- index- Returns:
- value of ELTS(i)
-