Class RTS_TEXT_ARRAY

java.lang.Object
simula.runtime.RTS_ARRAY
simula.runtime.RTS_TEXT_ARRAY

public final class RTS_TEXT_ARRAY extends RTS_ARRAY

This class represent a Simula text array.

Link to GitHub: Source File.

Author:
SIMULA Standards Group, Øystein Myhre Andersen
  • Field Details

    • ELTS

      private final RTS_TXT[] ELTS
      The elements in this RTS_TEXT_ARRAY
  • Constructor Details

    • RTS_TEXT_ARRAY

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

    • putELEMENT

      public RTS_TXT putELEMENT(int ix, RTS_TXT val)
      This method will put a text reference into ELTS(ix)
      Parameters:
      ix - the index of ELTS
      val - the value to put
      Returns:
      the value stored
    • getELEMENT

      public RTS_TXT getELEMENT(int... x)
      This method will return a text reference from ELTS(x...)
      Parameters:
      x - the indexes of ELTS
      Returns:
      the value loaded
    • COPY

      public RTS_TEXT_ARRAY COPY()
      Abstract method redefined for all subclass _ARRAY
      Specified by:
      COPY in class RTS_ARRAY
      Returns:
      a copy of this TEXT_ARRAY