Module Simula

Class RTS_PROCEDURE


public abstract class RTS_PROCEDURE extends RTS_BASICIO
Utility class PROCEDURE.

This class is used as prefix to all java classes representing Simula Procedures.

Link to GitHub: Source File.

Author:
Øystein Myhre Andersen
  • Field Details

    • _nParLeft

      protected int _nParLeft
      Number of actual parameters left to be transmitted.
  • Constructor Details

    • RTS_PROCEDURE

      public RTS_PROCEDURE(RTS_RTObject SL)
      Create a normal procedure.
      Parameters:
      SL - staticLink
    • RTS_PROCEDURE

      public RTS_PROCEDURE(RTS_RTObject SL, int nPar)
      Create a formal/virtual Procedure.
      Parameters:
      SL - staticLink
      nPar - number of actual parameters
  • Method Details

    • setPar

      public RTS_PROCEDURE setPar(Object obj)
      Sets next procedure parameter value.

      This method is virtual and must be redefined in all procedure blocks with parameters.

      Parameters:
      obj - Procedure's Parameter Value Object
      Returns:
      this object
    • _RESULT

      public Object _RESULT()
      Deliver the result from the Simula procedure.

      This method is virtual and must be redefined in all type procedure blocks

      Returns:
      the result from the Simula procedure.
    • _ENT

      public RTS_PROCEDURE _ENT()
      Enter formal procedure
      Returns:
      this class instance
      Throws:
      RTS_SimulaRuntimeError - if too few parameters