Class RTS_INTEGER_ARRAY

java.lang.Object
simula.runtime.RTS_ARRAY
simula.runtime.RTS_INTEGER_ARRAY

public final class RTS_INTEGER_ARRAY extends RTS_ARRAY

This class represent a Simula integer array.

Link to GitHub: Source File.

Author:
Øystein Myhre Andersen
  • Field Details

    • ELTS

      private final int[] ELTS
      The elements in this RTS_INTEGER_ARRAY
  • Constructor Details

    • RTS_INTEGER_ARRAY

      public RTS_INTEGER_ARRAY(RTS_BOUNDS... BOUNDS)
      Create a integer array with the given bounds.
      Parameters:
      BOUNDS - the array bounds
  • Method Details

    • putELEMENT

      public int putELEMENT(int ix, int 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 int getELEMENT(int... x)
      This method will return a value from ELTS(x...)
      Parameters:
      x - the indexes of ELTS
      Returns:
      the value loaded
    • COPY

      public RTS_INTEGER_ARRAY COPY()
      Abstract method redefined for all subclaRTS_BOUNDS;type>_ARRAY
      Specified by:
      COPY in class RTS_ARRAY
      Returns:
      a copy of this RTS_INTEGER_ARRAY