Module Simula

Class RTS_RTObject.RTS_REAL_ARRAY

Enclosing class:
RTS_RTObject

public final class RTS_RTObject.RTS_REAL_ARRAY extends RTS_RTObject.RTS_REALTYPE_ARRAY
This class represent a Simula real array.
  • Field Details

    • ELTS

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

    • RTS_REAL_ARRAY

      public RTS_REAL_ARRAY(RTS_RTObject.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

      Abstract method redefined for all subclass <type>_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_RTObject.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_RTObject.RTS_REALTYPE_ARRAY
      Parameters:
      i - index
      Returns:
      value of ELTS[i]