home *** CD-ROM | disk | FTP | other *** search
/ Education Sampler 1992 [NeXTSTEP] / Education_1992_Sampler.iso / Simulation / EntsRelease / TVexample.ent (.txt) < prev   
NeXT TypedStream Data  |  1992-01-13  |  6KB  |  99 lines

  1. typedstream
  2. CanvasView
  3.     Responder
  4. Object
  5. [12@]
  6. CreateNodeView
  7. NodeView
  8.     TextField
  9. Control
  10. TextFieldCell
  11. ActionCell
  12. TV Creation
  13.     Helvetica
  14. ImageViewPlus
  15.     ImageView
  16. DarkBoxView
  17. LineView
  18. QueueNodeView
  19. TV Inspection
  20.     QueueNode
  21.     NodeClass
  22. AssignNode
  23. AssignNodeView
  24. Assign Node
  25. BranchNodeView
  26. routing
  27. BranchNode
  28. Branch Node
  29. SimExec
  30. Storage
  31. {di@@@}
  32. CreateNode
  33. Create Node
  34. Time Between Creations
  35. iidcc
  36. ciifffcfffs
  37. [235c]{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
  38. \margl40
  39. \margr40
  40. \f0\b0\i0\ul0\ql\fs24\fi0\li0\gray0\up0\dn0 New TVs are created at this node.  The time between creating arriving TVs is uniformly distributed between 3.5 and 7.5 minutes.
  41. DestroyNode
  42. DestroyNodeView
  43. exit system
  44. NXImage
  45.     blackhole
  46. Destroy Node
  47. [250c]{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
  48. \margl40
  49. \margr40
  50. \f0\b0\i0\ul0\ql\fs24\fi0\li0\gray0\up0\dn0 Exit the system.  Some rudimentary stats are kept on the time in system, etc.  We can stop the simulation after n entities (TVs) have exitied.
  51. ObsStats
  52. Time in System
  53. {ddddi}
  54. adjustment
  55. queue
  56. Queue Node
  57. Service Time
  58. [316c]{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
  59. \margl40
  60. \margr40
  61. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ul0\fs24 The adjustment node.  Here only one worker serves the incoming TVs.  He takes between 20 and 40 minutes to tweak a TV and send it back to the inspection queue.
  62. iiiidi%
  63. Time In Node
  64. Time In Line
  65. Time Bet. Balks
  66.     TimeStats
  67. ddddi
  68. Number in System
  69. Number Waiting
  70. No. Servers Busy
  71. RandomManager
  72.     [3{iiii}]
  73. cccccc
  74. [233c]{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
  75. \margl40
  76. \margr40
  77. \f0\b0\i0\ul0\ql\fs24\fi0\li0\gray0\up0\dn0 Routes entities to either the adjustment node or out of the system.  The branch RV attribute was set in the node before this.
  78. i%%d%ii
  79.     branch RV
  80. 333333
  81. branch
  82. assign
  83. Assignment Node
  84. Attribute Random Variable
  85. [477c]{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
  86. \margl40
  87. \margr40
  88. \f0\b0\i0\ul0\ql\fs24\fi0\li0\gray0\up0\dn0 85% of the TVs should be OK, while 15% should be adjusted and then inspected again.  This assigns a uniform random variable to an attribute, branch RV.  The next node examines the attribute value.  If it's greater than 0.15, it sends it out of the system; otherwise it sends it for adjustment.  This corresponds to the percentages discussed in the system specification.
  89. [418c]{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
  90. \margl40
  91. \margr40
  92. \pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ul0\fs24 1 11\
  93. 2    14\
  94. 3    10\
  95. 4 13\
  96. 5    15\
  97. This is an inspection queue.  Two inspectors work side-by-side, each of them able to inspect a TV in between 6 and 12 minutes.  Common statistics, such as the fraction of time the inspectors are busy, are collected automatically.
  98. create
  99.