Class RTS_MAIN_PROGRAM
- All Implemented Interfaces:
Runnable
System class MAIN_PROGRAM.
process class MAIN_PROGRAM;
begin
while true do detach
end MAIN PROGRAM;
It is desirable that the main component of a simulation model, i.e. the "simulation" block instance, should respond to the sequencing procedures of 12.4 as if it were itself a process object. This is accomplished by having a process object of the class MAIN_PROGRAM as a permanent component of the quasi-parallel system.
The process object represents the main component with respect to the sequencing procedures. Whenever it becomes operative, the PSC (and OSC) immediately enter the main component as a result of the "detach" statement (cf. 7.3.1). The procedure "current" references this process object whenever the main component is active.
A simulation model is initialized by generating the MAIN_PROGRAM object and scheduling an active phase for it at system time zero. Then the PSC proceeds to the first user-defined statement of the "simulation" block.
Link to GitHub: Source File.
- Author:
- SIMULA Standards Group, Øystein Myhre Andersen
-
Field Summary
Fields inherited from class RTS_Process
EVENTFields inherited from class RTS_Linkage
PRED, SUCFields inherited from class RTS_ENVIRONMENT
_STARTTIME, CURRENTDECIMALMARK, CURRENTLOWTEN, EXCEPTION_HANDLER, maxint, maxlongreal, maxreal, minint, minlongreal, minreal, simulaReleaseIDFields inherited from class RTS_RTObject
_CORUT, _CTX, _CUR, _DL, _INPUT_LINELENGTH, _JTX, _OUTPUT_LINELENGTH, _SL, _STATE, _SYSIN, _SYSOUT, _USR, startTimeMs -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class RTS_Process
evtime, idle, isDetachUsed, nextev, terminate, terminatedMethods inherited from class RTS_Linkage
pred, prev, sucMethods inherited from class RTS_BASICIO
terminate_programMethods inherited from class RTS_ENVIRONMENT
_char, abs, abs, abs, addepsilon, addepsilon, arccos, arcsin, arctan, arctan2, argv, blanks, Char, clocktime, confirmDialog, copy, cos, cosh, cotan, cputime, datetime, decimalmark, DEFEXCEPTION, digit, discrete, draw, edfix, edfix, edit, edit, edit, edit, edit, edit, edtime, edtime, entier, Erlang, error, exit, exp, fileChooser, hash, histd, histo, isochar, isorank, letter, linear, ln, loadChar, log10, lowcase, lowerbound, lowten, max, max, max, max, max, max, max, max, max, max, max, min, min, min, min, min, min, min, min, min, min, min, mod, negexp, normal, Poisson, printStaticChain, printThreadList, prompt, randint, rank, rem, sign, simulaid, sin, sinh, sqrt, storeChar, subepsilon, subepsilon, tan, tanh, uniform, upcase, upperbound, waitSomeTimeMethods inherited from class RTS_RTObject
_GOTO, _JUMPTABLE, _SIM_LABEL, _TREAT_GOTO_CATCH_BLOCK, _VALUE, arrayValue, BBLK, booleanValue, call, call, charValue, CONC, detach, detach, detach, doubleValue, EBLK, edObjectAttributes, edObjectIdent, floatValue, intValue, isQPSystemBlock, objectTraceIdentifier, objectTraceIdentifier, objectValue, procValue, resume, resume, resume, swapCoroutines, sysin, sysout, TRACE_GOTO
-
Constructor Details
-
RTS_MAIN_PROGRAM
-
-
Method Details
-
_STM
Description copied from class:RTS_RTObjectMethod representing the Statements in this Block
This method is virtual and must be redefined in blocks.- Overrides:
_STMin classRTS_Process- Returns:
- a pointer to this _RTObject
-
toString
Description copied from class:RTS_RTObjectReturns a string representation of the object.- Overrides:
toStringin classRTS_Process
-