Queue Example

Architecture Body


FOR SO1, SO2 : source1 USE ENTITY queue.source (behavior);
FOR JO1 : join1 USE ENTITY queue.join (behavior);
FOR QU1 : queue1 USE ENTITY queue.queue (behavior);
FOR FO1 : fork1 USE ENTITY queue.fork (behavior);
FOR SE3, SE4, SE5 : server1 USE ENTITY queue.service (behavior);
FOR JO2 : join1 USE ENTITY queue.join (behavior);
FOR SI6 : sink1 USE ENTITY queue.sink (behavior);
BEGIN -- example
   SO1 : source1
       GENERIC MAP (unif, 3, (1.0, 100.0) "S1")
       PORT MAP (arc1);
   SO2 : source1
       GENERIC MAP (unif, 5, (10.0, 20.0) "S2")
       POT MAP (arc2);
   JO1 : join1
       GENERIC MAP (2, "J1")
       PORT MAP (in_arc(1)=>arc1, in_arc(2)=>arc2, out_arc=>arc3);
   QU1 : queue1
       GENERIC MAP (100000, "Q1", LIFO)
       PORT MAP (arc3, arc4);