Queuer

Updated: 2025-09-16

QUEUER

Models an open resource.
It allows multiple entities with no selection criteria.
Internally it manages a list of entities inside the resource.

Its main use is statistical or as an entity grouper.

Associated blocks:

  • QUEUE resourceName ; Adds the entity to the queuer.
  • DEPART resourceName ; Removes the entity from the queuer.

Available events: ON_QUEUE, ON_DEPART

QUEUER {NAME:Qventanilla1,X:374,Y:424
    ,R_BIN_START:0,R_BIN_SIZE:1,R_BIN_COUNT:20 
    ,E_BIN_START:0,E_BIN_SIZE:1,E_BIN_COUNT:20}
;------------------------
queue Qventanilla1
seize counter1
depart Qventanilla1

 

Example

/*

Resources. Queuer

*/
;SYSTEM {TYPE:OPTIONS,Speed:50,Pause:0}
POSITION {NAME:POS1,X:620,Y:360}

QUEUER {NAME:Qventanilla1,X:374,Y:424
	,R_BIN_START:0,R_BIN_SIZE:1,R_BIN_COUNT:20 
    ,E_BIN_START:0,E_BIN_SIZE:1,E_BIN_COUNT:20}

Facility {NAME:counter1,X:373,Y:365,capacity:5}
START 200

;*****************************************************
GENERATE 5,3,0,0 {NAME:GEN1,X:111,Y:366}
ADVANCE 10 {TO:counter1}

queue Qventanilla1
seize counter1
depart Qventanilla1
ADVANCE 20,10
release counter1

ADVANCE 10 {TO:POS1}
ENDGENERATE 1