Syntax

Syntax - Appendix A The Syntax Before the modeling elements...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Appendix A The Syntax Before the modeling elements can be used, they must be declared and initialized. The elements are implemented as objects. The syntax for declaring each modeling object follows. The QueSeize modeling element: QueSeize( int numb, // The queseize number char quename[20], // The name of the queue int pri, // The resource allocation priority int r1, // The first resource to allocate int q1, // The quantity to allocate for r1. int r2 = 0, // The second resource to allocate int q2 = 0, // The quantity to allocate for r2. int r3 = 0, // The third resource to allocate. int q3 = 0 ); // The quantity to allocate for r3. void insert( Entity *TheEntity ); // insert the entity into the element Entity remove( void ); // remove the entity once the resources are allocated. void stats( char tallyname[20], // returns the statistics of the Queue double *mean, // The average double *var, // The variance double *min, // The minimum value double *max, // The maximum value long int *obser, // The number of observations double *finval ); // The final observation The Seize modeling element: Seize( int r1, // The resource to seize int q1,
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

Syntax - Appendix A The Syntax Before the modeling elements...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online