We now move on to statistics focused on the time entities spend in a resource.
Statistics calculated on a single resource are computed automatically by GPSS-Plus:
Facility {NAME:ventanilla1,X:377,Y:362,capacity:10
,E_BIN_START:18,E_BIN_SIZE:1,E_BIN_COUNT:14
}
We measure the time that an entity (E) remains in the resource using the E_BIN_* parameters, which have the same meaning as in the TABLE block.
In the following example, entities are generated at a constant rate, and the FACILITY contains an ADVANCE 20,10, meaning the statistical results will fall between 20 and 30.
Example
/*
Entity time
*/
SYSTEM {TYPE:OPTIONS,Speed:7}
POSITION {NAME:POS1,X:620,Y:360}
Facility {NAME:ventanilla1,X:377,Y:362,capacity:10,E_BIN_START:18,E_BIN_SIZE:1,E_BIN_COUNT:14}
START 200
;*****************************************************
GENERATE 8,0,0,0 {NAME:GEN1,X:111,Y:366}
ADVANCE 10 {TO:ventanilla1}
seize ventanilla1
ADVANCE 20,10
release ventanilla1
ADVANCE 10 {TO:POS1}
TERMINATE 1