all rights reserved
                          *******************




              d e m o s   r e f e r e n c e   m a n u a l


                                   by


                           graham birtwistle


                computer science, university of bradford














           copyright (c) january 1979 by g.m.birtwistle.  all
           rights  reserved.   this manual, or parts thereof,
           may not be reproduced in any form without  written
           permission from the author.

                it  is   made   available   on   the   strict
           understanding  that  it  must not be shown or made
           available in any  way  to  p.r.hills,  or  to  any
           employee  of  p.r.hills,  or  to  any  employer of
           p.r.hills, or to anyone co-operating with him.

contents

chapter 1 i n t r o d u c t i o n layout of the manual 1-1; worked example: production line 1-3. chapter 2 c l a s s e s t a b a n d r e p o r t q 2.1 class tab tab outline 2-3; outline 2-3; actions 2-4; attributes 2-4; 2.2 class reportq reportq object 2-5; outline 2-6; actions 2-6; attributes 2-6. chapter 3 d a t a c o l l e c t i o n d e v i c e s 3.1 class count count object 3-2; outline 3-2; actions 3-2; attributes 3-2; example of use 3-3; typical report 3-3. 3.2 class tally tally object 3-4; outline 3-4; actions 3-5; attributes 3-5; example of use 3-6; typical report 3-6. 3.2.1 class notally 3.3 class histogram histogram object 3-7; outline 3-8; actions 3-8; attributes 3-8; example of use 3-10; typical report 3-10. 3.4 class accumulate accumulate object 3-12; outline 3-13; actions 3-13; attributes 3-13; example of use 3-14; typical report 3-15. 3.5 class regression regression object 3-16; outline 3-17; actions 3-17; attributes 3-17; example of use 3-18; typical report 3-18. chapter 4 r a n d o m n u m b e r g e n e r a t i o n 4.1 well spread seeds outline 4-2; attributes 4-2; using setseed 4-3; varying default values 4-3; 4.2 distributions demos defined classes 4-5; hierarchy 4-5; classes rdist, idist, bdist 4-6. 4.2.1 class dist dist object 4-7; outline 4-7; actions 4-8; attributes 4-8; typical reports 4-10. 4.3 class rdist and its sub-classes rdist object 4-11. 4.3.1 class constant constant object 4-12; outline 4-12; actions 4-13; attributes 4-13; typical histogram 4-13. 4.3.2 class erlang erlang object 4-15; outline 4-15; actions 4-16; attributes 4-16; typical histogram 4-17. 4.3.3 class empirical usage 4-18; typical graph 4-18; sampling technique 4-19; stepped data 4-19; example: extending a demos definition 4-20; empirical object 4-21; outline 4-21; actions 4-22; attributes 4-22; typical histogram 4-23. 4.3.4 class normal normal object 4-24; outline 4-25; actions 4-25; attributes 4-25; typical histogram 4-26. 4.3.5 class negexp negexp object 4-27; outline 4-27; actions 4-28; attributes 4-28; typical histogram 4-28. 4.3.6 class uniform uniform object 4-29; outline 4-29; actions 4-30; attributes 4-30; typical histogram 4-30. 4.4 class idist and its sub-classes idist object 4-31. 4.4.1 class poisson poisson object 4-32; outline 4-32; actions 4-33; attributes 4-33; typical histogram 4-33. 4.4.2 class randint randint object 4-34; outline 4-34; actions 4-35; attributes 4-35; typical histogram 4-35. 4.5 class bdist and its sub-classes bdist object 4-36. 4.5.1 class draw draw object 4-37; outline 4-37; actions 4-37; attributes 4-38; typical histogram 4-38. 4.6 procedure readdist outline 4-39; typical valid inputs 4-40. chapter 5 c l a s s e n t i t y entity object 5-1; outline 5-2; actions 5-2; attributes 5-3; event list invariant 5-4; local scheduling routines 5-6; example: changing he event list algorithm 5-11. 5.2 class mainprogram outline 5-13; initialising actions 5-13; example of use 5-13. chapter 6 g l o b a l e v e n t l i s t r o u t i n e s real procedure time 6-1; procedure zyqpassivate 6-1; procedure passivate 6-1; procedure hold 6-1. chapter 7 c l a s s e s q u e u e, w a i t q, a n d c o n d q 7.1 class queue hierarchy 7-1; queue object 7-2; 0utline 7-2; actions 7-2; attributes 7-3; call on q.list 7-3; example of use 7-4; typical report 7-5. 7.1.1 class noqueue 7.2 class waitq waitq object 7-6; outline 7-7; actions 7-7; attributes 7-7; example of use 7-9; typical report 7-9. 7.3 class condq condq object 7-10; outline 7-10; actions 7-11; attributes 7-11; example of use 7-12; typical report 7-12. chapter 8 c l a s s r e s o u r c e a n d i t s s u b c l a s s e s resource object 8-1; outline 8-2; actions 8-2; attributes 8-2. 8.1 class res res object 8-4; outline 8-5; actions 8-5; attributes 8-5; example of use 8-6; typical report 8-7. 8.3 class bin bin object 8-8; outline 8-9; actions 8-9; attributes 8-9; example of use 8-10; typical report 8-11. chapter 9 o d d s a n d e n d s 9.1 some primitive reporting aids procedure clocktime 9-1; procedure box; procedure printreal 9-1; procedure edit 9-1. 1 page 7 9.2 tracing outline 9-2; trace related quantities 9-3; typical trace 9-4. 9.3 procedure error outline 9-5; examples of error mesages 9-6. 9.4 global report and reset outline 9-7; report and reset related quantities 9-8; example of use 9-8. 9.5 queue and event list snapping outline 9-9; typical call on snapqueues 9-10; typical call on snapsqs 9-10. 9.6 epsilon - the grain of time usage 9-11. chapter 10 t h e d e m o s p r e f i x outline 10-1; actions 10-5; attributes 10-5. chapter 11 r e d i r e c t i n g i / o i n d e m o s initialisation and closing of inf and outf 11-1; examples of use 11-1. r e f e r e n c e s appendix a l i s t i n g o f d e m o s appendix b 21 d e m o s s a m p l e r u n s appendix c ... a n d t h e i r o u t p u t s i n d e x