QSIZE.MOD

From Support

Jump to: navigation, search

Back to Model Library

See also: How to read .MOD pages

Contents

Description

QSIZE.MOD is a subgraph used with BRKDN.MOD to demonstrate how to create animations in SIGMA. BRKANIM1.MOD shows the first step in creating the animation, which involves loading QSIZE.MOD into BRKDN.MOD. See Tutorial: Animating Resident Entities and Tutorial Continuation: Animating Transient Entity Motion for tutorials on creating animations.

State Variables

State Variables in QSIZE.MOD
Variable Name Variable Description Size Type
QSIZE Size of queue 1 Integer

Vertices

Vertices in QSIZE.MOD
Vertex Name Vertex Description State Changes
O The queue is length 0 None
1 The queue is length 1 None
2 The queue is length 2 None
3 The queue is length 3 None
gt3 The queue is greater than 3 None

Initialization Conditions

Initialization Conditions in QSIZE.MOD
Variable Description
QSIZE Size of queue

Event Relationship Graph

QSIZE.MOD
QSIZE.MOD

English Translation

An English translation is a verbal description of a model, automatically generated by SIGMA.

The SIGMA Model, QSIZE.MOD, is a discrete event simulation. 
It models Subgraph only for animating queues.
I. STATE VARIABLE DEFINITIONS.
For this simulation, the following state variables are defined:

QSIZE:    (integer valued)
II. EVENT DEFINITIONS.
Simulation state changes are represented by event vertices (nodes or balls) in a SIGMA graph.  
Event vertex parameters, if any, are given in parentheses. Logical and dynamic relationships 
between pairs of events are represented in a SIGMA graph by edges (arrows) between event vertices.  
Unless otherwise stated, vertex execution priorities, to break time ties, are equal to 5.
1. The 0(QSIZE) event:
   Initial values for, QSIZE, are needed for each run.
   After every occurrence of the 0 event:
   If QSIZE==1, then schedule the 1() event to occur without delay.
   (Time ties are broken by an execution priority of 0.)
   If QSIZE==2, then schedule the 2() event to occur without delay.
   (Time ties are broken by an execution priority of 0.)
   If QSIZE==3, then schedule the 3() event to occur without delay.
   (Time ties are broken by an execution priority of 0.)
   If QSIZE>3, then schedule the gt3() event to occur without delay.
   (Time ties are broken by an execution priority of 0.)
2. The 1() event:
   No additional events are scheduled here.
3. The 2() event:
   No additional events are scheduled here.
4. The 3() event:
   No additional events are scheduled here.
5. The gt3() event:
   No additional events are scheduled here.

Comments

Back to top

Back to Model Library

Personal tools
Navigation