| 1 |
|
| 2 |
(Note: Terms in *italics* refer to other special terms. |
| 3 |
Items in ``code font`` are code fragments or specific code names.): |
| 4 |
|
| 5 |
activeQ |
| 6 |
A *Resource* object automatically creates and maintains its |
| 7 |
own activeQ, the queue (list) of process objects that are |
| 8 |
currently using one of the Resource's units. See |
| 9 |
`Resources`_. (See also the Glossary entry for *waitQ*.) |
| 10 |
|
| 11 |
activate |
| 12 |
Commands a *process object* to being executing its *PEM*. |
| 13 |
See `Starting and stopping SimPy process objects`_. |
| 14 |
|
| 15 |
Backus-Naur Form (BNF) notation |
| 16 |
This manual occasionally uses a modified Backus-Naur Form notation to |
| 17 |
exhibit command syntax, |
| 18 |
as in the description of the *activate* command:: |
| 19 |
|
| 20 |
activate(p, p.PEM([args]) [,{at=t|delay=period}] [,prior=False]) |
| 21 |
|
| 22 |
In this notation, square brackets [ ] indicate items that are optional, |
| 23 |
braces { } indicate items of which zero or more may be present, |
| 24 |
and a vertical bar | indicates a choice between alternatives |
| 25 |
(with none of them being a possibility). |
| 26 |
|
| 27 |
cancel |
| 28 |
Deletes all of a *process object's* scheduled future events. |
| 29 |
See `Starting and stopping SimPy process objects`_. |
| 30 |
|
| 31 |
entity |
| 32 |
An alternative name for *process object*. |
| 33 |
|
| 34 |
event |
| 35 |
A SimEvent object. See `Advanced synchronization/scheduling capabilities`_. |
| 36 |
|
| 37 |
FIFO |
| 38 |
An attribute of a resource object (i.e., a `Resource`_, `Level`_, |
| 39 |
or `Store`_) |
| 40 |
indicating that an associated queue (e.g., the *ActiveQ*, *waitQ*, |
| 41 |
*getQ*, or *putQ*) is to be |
| 42 |
kept in FIFO order. |
| 43 |
(See also the Glossary entries for *PriorityQ* and *qType*.) |
| 44 |
|
| 45 |
getQ |
| 46 |
The queue of processes waiting to take something from a |
| 47 |
`Level`_ or `Store`_ resource. See also the Glossary entry for *putQ*. |
| 48 |
|
| 49 |
interrupt |
| 50 |
Requests a "victim" *process object* to interrupt (i.e., to immediately and |
| 51 |
prematurely end) its current |
| 52 |
``yield hold,...`` command. (Note: A process object cannot interrupt itself.) |
| 53 |
See `Asynchronous interruptions`_. |
| 54 |
|
| 55 |
Level |
| 56 |
A particular type of *resource facility* that models the |
| 57 |
production and consumption of a |
| 58 |
homogeneous undifferentiated "material." *Process objects* can increase or |
| 59 |
decrease the amount of material in a Level resource facility. See `Levels`_. |
| 60 |
|
| 61 |
Monitor |
| 62 |
A data recorder that compiles basic statistics as a function of time on |
| 63 |
variables such |
| 64 |
as waiting times and queue lengths. (Note: Monitors can also preserve complete |
| 65 |
time-series |
| 66 |
data for post-simulation analyses.) See `Recording Simulation Results`_. |
| 67 |
|
| 68 |
monitorType |
| 69 |
The type of Recorder_ to be used for recording simulation results. |
| 70 |
Usually this is either a Monitor_ or a Tally_. (See also the |
| 71 |
Glossary entry for *Recorder*.) |
| 72 |
|
| 73 |
monitored |
| 74 |
A (boolean) attribute of a *resource* object indicating whether to |
| 75 |
keep a record |
| 76 |
of its activity. See Recorder_. |
| 77 |
|
| 78 |
passivate |
| 79 |
Halts ("freezes") a *process object's* PEM. The process object becomes |
| 80 |
"passive". |
| 81 |
See `Starting and stopping SimPy Process Objects`_. |
| 82 |
|
| 83 |
PEM |
| 84 |
An abbreviation for *Process Execution Method*, q.v. |
| 85 |
|
| 86 |
preempt |
| 87 |
To force a *process* object currently using a *resource* unit |
| 88 |
to release it and make it |
| 89 |
available for use by another process object. See `Preemptive requests for |
| 90 |
a Resource unit`_. |
| 91 |
|
| 92 |
preemptable |
| 93 |
A settable attribute of *Resource* objects. The Resource object's |
| 94 |
units are preemptable if |
| 95 |
``preemptable==True``, otherwise not. See `Preemptive requests for a Resource |
| 96 |
unit`_. |
| 97 |
|
| 98 |
priority |
| 99 |
A non-negative integer or real value controlling the order of *process* objects |
| 100 |
in a queue. Higher values represent higher priority. Higher priority process |
| 101 |
objects are placed ahead of lower priority ones in the queue. See also |
| 102 |
the Glossary entry for *FIFO*. |
| 103 |
|
| 104 |
PriorityQ |
| 105 |
An attribute of a resource object (i.e., a `Resource`_, `Level`_, |
| 106 |
or `Store`_) |
| 107 |
indicating that an associated queue (e.g., the *ActiveQ*, *waitQ*, |
| 108 |
*getQ*, or *putQ*) is to be |
| 109 |
kept in order of *priority*. |
| 110 |
(See also the Glossary entries for *FIFO*, *qType*.) |
| 111 |
|
| 112 |
process |
| 113 |
We usually call both process objects and their classes "processes" |
| 114 |
(with a small "p"). |
| 115 |
Thus, "process" may refer to a *Process class* or to |
| 116 |
a *process object*, depending on context. To avoid ambiguity |
| 117 |
or for added emphasis |
| 118 |
we often explicitly state whether a class or an object is intended. |
| 119 |
|
| 120 |
Process class |
| 121 |
A class that inherits from SimPy's ``Process`` class and contains |
| 122 |
at least one *Process Execution Method*. |
| 123 |
Process classes may also contain other methods -- |
| 124 |
in particular they may contain an ``__init__`` method. |
| 125 |
See `Processes`_. |
| 126 |
|
| 127 |
Process Execution Method |
| 128 |
A *Process class* method that contains at least one ``yield ...`` |
| 129 |
statement. See `Defining a process`_. |
| 130 |
|
| 131 |
process object |
| 132 |
An object created from (i.e., an instance of) a *Process class*. |
| 133 |
See `Processes`_. |
| 134 |
|
| 135 |
putQ |
| 136 |
The queue of processes waiting to add something to a `Level`_ |
| 137 |
or `Store`_ resource. See also the Glossary entry for *getQ*. |
| 138 |
|
| 139 |
reactivate |
| 140 |
Reactivates ("unfreezes") a passivated or a terminated *process object's* PEM. |
| 141 |
The *process object* becomes "active". See `Starting and stopping SimPy Process |
| 142 |
Objects`_. |
| 143 |
|
| 144 |
Recorder |
| 145 |
A device for recording simulation results. Unless otherwise specified, it |
| 146 |
usually refers either to a `Monitor`_ or a `Tally`_. However, |
| 147 |
Recorders also include histograms and observers. |
| 148 |
See `Recording Simulation Results`_ |
| 149 |
for *Monitors*, *Tallys*, and the other devices for |
| 150 |
recording simulation results. |
| 151 |
|
| 152 |
renege |
| 153 |
To leave a queue before acquiring a resource unit. See `Reneging -- leaving |
| 154 |
a queue before acquiring a resource`_. |
| 155 |
|
| 156 |
resource |
| 157 |
Same as "resource facility." |
| 158 |
A congestion point at which *process objects* may need to queue for access to |
| 159 |
resources. The term "resource" (with a small "r") is used as a generic term |
| 160 |
for the individual resource facilities provided by SimPy (i.e., |
| 161 |
Resources_, Levels_, and Stores_). |
| 162 |
|
| 163 |
qType |
| 164 |
An attribute of *resource* objects indicating whether an |
| 165 |
associated queue is to be |
| 166 |
kept in *FIFO* or *PriorityQ* order. See the Glossary entries |
| 167 |
for *waitQ*, *ActiveQ*, *putQ*,and *getQ*. |
| 168 |
See also the treatment of these queues in the sections on |
| 169 |
the individual resources (i.e., `Resources`_, `Levels`_, and `Stores`_). |
| 170 |
|
| 171 |
Resource |
| 172 |
A particular type of *resource facility* that possesses several |
| 173 |
identical *resource units*. |
| 174 |
A *process object* may acquire one (and only one) of the Resource's |
| 175 |
resource units. See Resources_ . |
| 176 |
|
| 177 |
Resource unit |
| 178 |
One of the individual resources associated with a *Resource* type of |
| 179 |
*resource facility*. See Resources_. |
| 180 |
|
| 181 |
SimEvent |
| 182 |
The SimPy class for defining and creating SimEvent objects. |
| 183 |
Occasionally designates a SimEvent |
| 184 |
object when context makes that usage clear. |
| 185 |
See `Advanced synchronization/scheduling capabilities`_. |
| 186 |
|
| 187 |
Store |
| 188 |
A particular type of *resource facility* that models the |
| 189 |
production and consumption of individual |
| 190 |
items. *Process objects* can insert or remove items from the Store's list |
| 191 |
of available items. See Stores_. |
| 192 |
|
| 193 |
Tally |
| 194 |
A particular type of *Recorder* that compiles basic statistics as a |
| 195 |
function of time on variables such |
| 196 |
as waiting times and queue lengths. (Note: Tallys do not preserve complete |
| 197 |
time-series data for post-simulation analyses.) See |
| 198 |
`Recording Simulation Results`_. |
| 199 |
(See also the Glossary entry for *monitorType*.) |
| 200 |
|
| 201 |
unit (of a Resource) |
| 202 |
One of the individual resource capabilities provided by a *Resource*. See |
| 203 |
`Resources`_. |
| 204 |
|
| 205 |
waitQ |
| 206 |
A *Resource* object automatically creates and maintains its own *waitQ*, |
| 207 |
the queue (list) of process objects that have requested but not yet |
| 208 |
received one of the Resource's units. See `Resources`_. |
| 209 |
(See also the Glossary entry for *activeQ*.) |
| 210 |
|