nextupprevious
Next:TRACE starts the tracingUp:PROCEDURESPrevious:STOPSCAN stops the scanning

TAB adds values to a frequency table

Syntax:
    TAB(<real variable>, <table name>);
It is used to count a value for a frequency table; <table name> must have been declared in a TABLES declaration (see 2.7). Parameters of the tables must be initialized in the INIT section (see 3.4). The actual value of the <real variable> is classified to define to which frequency class of the table it belongs and one is added to the count of this class. The frequency classes and a histogram are shown when a display of the standard statistics is produced. This is always done at the end of the simulation, but also can be done interactively at any moment of the run or by the program using the STAT instruction. See 2.10 and 10.7 for declaration and description of the standard statistics.

 This procedure can be used in nodes of any type.

 Example

      Ent_People (I) :: IT := EXPO(32.4); L_Queue := LL(EL_Couter);
                                 TAB(L_Queue, TabQue);
   ----------------------------------------------------------
      Exit (e) :: L_Queue := LL(EL_Counter); TAB(L_Queue, TabQue);
   ----------------------------------------------------------
      INIT
        TabQueue := 0, 10, 4;
   ----------------------------------------------------------
      DECL VAR L_Queue: REAL;
        TABLES L_Queue: TabQueue;
Messages (people) enter the system and queue at the node Counter (not shown). They exit at node Exit. When these events happen, the queue changes. The length of the queue is passed to a real variable L_Queue and is registered at the frequency table TabQueue. This table has 10 classes (intervals) of length 4 and starts at the value 0.
 


domingo c

Mon Mar 20 17:37:52 PST 2000