Class RTS_REAL_ARRAY


public final class RTS_REAL_ARRAY extends RTS_REALTYPE_ARRAY

This class represent a Simula real array.

Link to GitHub: Source File.

Author:
Øystein Myhre Andersen
  • Field Details

    • ELTS

      final float[] ELTS
      The elements in this RTS_REAL_ARRAY
  • Constructor Details

    • RTS_REAL_ARRAY

      public RTS_REAL_ARRAY(RTS_BOUNDS... BOUNDS)
      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 ELTS
      val - 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

      public RTS_REAL_ARRAY COPY()
      Abstract method redefined for all subclass _ARRAY
      Specified by:
      COPY in class RTS_ARRAY
      Returns:
      a copy of this RTS_REAL_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 class RTS_REALTYPE_ARRAY
      Parameters:
      i - index
      Returns:
      value of ELTS(i)