Debian Codegraph @

docs/source/Manuals/HISTORY.rst

raw
1 =============
2 SimPy History
3 =============
4
5 SimPy is based on ideas from Simula and Simscript but uses standard
6 Python. It combines two previous packages, SiPy, in Simula-Style
7 (Klaus Muller) and SimPy, in Simscript style (Tony Vignaux and
8 Chang Chui)
9
10 SimPy is based on efficient implementation of co-routines using
11 Python's generators capability.
12
13 The package has been hosted on Sourceforge.net since 15 September 2002.
14 Sourceforge.net's service has always been outstanding. It is essential to
15 the SimPy project! Thanks, all you people at SourceForge!
16
17 December 2011: Release 2.3
18 =============================
19
20 - Support for Python 3.x has been added
21 - Examples and tutorials modified to run on Python 2.6 and up
22 including Python 3.
23 - Examples can now be executed via py.test so we can make sure they do run.
24 - The documentation has had some reorganisation. The index has had
25 work done on it. The Simple manual has been pulled out and is setup
26 as a separate manual.
27
28 September 2011: Release 2.2b1
29 =============================
30
31 - The Unit tests have been rewritten.
32 - The directory sturcture of the release has been simplified
33 - The documentation has had some minor changes
34
35 May 2010: Version 2.1.0
36 =======================
37
38 A major release of SimPy, with a new code base, a (small) number of
39 additions to the API, and added documentation.
40
41 Additions
42 ~~~~~~~~~~~
43
44 - A function `step` has been added to the API. When called, it executes
45 the next scheduled event. (`step` is actually a method of Simulation.)
46 - Another new function is `peek`. It returns the time of the next event.
47 By using `peek` and `step` together, one can easily write e.g. an
48 interactive program to step through a simulation event by event.
49 - A simple interactive debugger ``stepping.py`` has been added. It allows
50 stepping through a simulation, with options to skip to a certain time,
51 skip to the next event of a given process, or viewing the event list.
52 - Versions of the Bank tutorials (documents and programs) using the advanced
53 object-oriented API have been added.
54 - A new document describes tools for gaining insight into and debugging SimPy
55 models.
56
57 Changes
58 ~~~~~~~~~~
59
60 - Major re-structuring of SimPy code, resulting in much less
61 SimPy code -- great for the maintainers.
62 - Checks have been added which test whether entities belong to the
63 same `Simulation` instance.
64 - The `Monitor` and `Tally` methods `timeAverage` and `timeVariance`
65 now calculate only with the observed time-series. No value is
66 assumed for the period prior to the first observation.
67 - Changed class `Lister` so that circular references between
68 objects no longer lead to stack overflow and crash.
69
70 Repairs
71 ~~~~~~~~~
72
73 - Functions `allEventNotices` and `allEventTimes` are working again.
74 - Error messages for methods in SimPy.Lib work again.
75
76
77 April 2009: Release 2.0.1
78 ==========================
79
80 A bug-fix release of SimPy 2.0
81
82
83 October 2008: Version 2.0
84 =============================
85
86 This is a major release with changes to the SimPy application programming
87 interface (API) and the formatting of the documentation.
88
89 API changes
90 ~~~~~~~~~~~~~~~
91
92 In addition to its existing API, SimPy now also has an object oriented API.
93 The additional API
94
95 - allows running SimPy in parallel on multiple processors or multi-core CPUs,
96 - supports better structuring of SimPy programs,
97 - allows subclassing of class *Simulation* and thus provides users with
98 the capability of creating new simulation modes/libraries like SimulationTrace, and
99 - reduces the total amount of SimPy code, thereby making it easier to maintain.
100
101 Note that the OO API is **in addition** to the old API. SimPy 2.0 is fully
102 backward compatible.
103
104 Documentation format changes
105 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
106
107 SimPy's documentation has been restructured and processed by the Sphinx
108 documentation generation tool. This has generated one coherent, well
109 structured document which can be easily browsed. A seach capability is included.
110
111
112 March 2008: Version 1.9.1
113 ==========================
114
115 This is a bug-fix release which cures the following bugs:
116
117 - Excessive production of circular garbage, due to a circular reference
118 between Process instances and event notices. This led to large memory
119 requirements.
120
121 - Runtime error for preempts of proceeses holding multiple Resource objects.
122
123 It also adds a Short Manual, describing only the basic facilities of SimPy.
124
125 December 2007: Version 1.9
126 ==========================
127
128 This is a major release with added functionality/new user API calls and bug fixes.
129
130 Major changes
131 ~~~~~~~~~~~~~
132
133 - The event list handling has been changed to improve the runtime performance
134 of large SimPy models (models with thousands of processes). The use of
135 dictionaries for timestamps has been stopped. Thanks are due to Prof.
136 Norm Matloff and a team of his students who did a study on improving
137 SimPy performance. This was one of their recommendations. Thanks, Norm and guys!
138 Furthermore, in version 1.9 the 'heapq' sorting package replaces 'bisect'.
139 Finally, cancelling events no longer removes them, but rather marks them.
140 When their event time comes, they are ignored. This was Tony Vignaux' idea!
141
142 - The Manual has been edited and given an easier-to-read layout.
143
144 - The Bank2 tutorial has been extended by models which use more advanced
145 SimPy commands/constructs.
146
147 Bug fixes
148 ~~~~~~~~~
149
150 - The tracing of 'activate' statements has been enabled.
151
152 Additions
153 ~~~~~~~~~
154
155 - A method returning the time-weighted variance of observations
156 has been added to classes Monitor and Tally.
157
158 - A shortcut activation method called "start" has been added
159 to class Process.
160
161
162 January 2007: Version 1.8
163 =========================
164
165
166 Major Changes
167 ~~~~~~~~~~~~~~
168
169 - SimPy 1.8 and future releases will not run under the obsolete
170 Python 2.2 version. They require Python 2.3 or later.
171
172 - The Manual has been thoroughly edited, restructured and rewritten.
173 It is now also provided in PDF format.
174
175 - The Cheatsheet has been totally rewritten in a tabular format.
176 It is provided in both XLS (MS Excel spreadsheet) and PDF format.
177
178 - The version of SimPy.Simulation(RT/Trace/Step) is now accessible
179 by the variable 'version'.
180
181 - The *__str__* method of Histogram was changed to return a table format.
182
183 Bug fixes
184 ~~~~~~~~~~~~
185
186 - Repaired a bug in *yield waituntil* runtime code.
187
188 - Introduced check for *capacity* parameter of a Level or a Store
189 being a number > 0.
190
191 - Added code so that self.eventsFired gets set correctly after an event fires
192 in a compound yield get/put with a waitevent clause (reneging case).
193
194 - Repaired a bug in prettyprinting of Store objects.
195
196 Additions
197 ~~~~~~~~~~
198
199 - New compound yield statements support time-out or event-based
200 reneging in get and put operations on Store and Level instances.
201
202 - *yield get* on a Store instance can now have a filter function.
203
204 - All Monitor and Tally instances are automatically registered in list
205 *allMonitors* and *allTallies*, respectively.
206
207 - The new function *startCollection* allows activation of Monitors and
208 Tallies at a specified time.
209
210 - A *printHistogram* method was added to Tally and Monitor which generates
211 a table-form histogram.
212
213 - In SimPy.SimulationRT: A function for allowing changing
214 the ratio wall clock time to simulation time has been added.
215
216 June 2006: Version 1.7.1
217 ==============================
218
219 This is a maintenance release. The API has not been changed/added to.
220
221 - Repair of a bug in the _get methods of Store and Level which could lead to synchronization problems
222 (blocking of producer processes, despite space being available in the buffer).
223
224 - Repair of Level __init__ method to allow initialBuffered to be of either float or int type.
225
226 - Addition of type test for Level get parameter 'nrToGet' to limit it to positive
227 int or float.
228
229 - To improve pretty-printed output of 'Level' objects, changed attribute
230 '_nrBuffered' to 'nrBuffered' (synonym for 'amount' property).
231
232 - To improve pretty-printed output of 'Store' objects, added attribute
233 'buffered' (which refers to '_theBuffer' attribute).
234
235
236 February 2006: Version 1.7
237 ===============================
238
239 This is a major release.
240
241 - Addition of an abstract class Buffer, with two sub-classes *Store* and *Level*
242 Buffers are used for modelling inter-process synchronization in producer/
243 consumer and multi-process cooperation scenarios.
244
245 - Addition of two new *yield* statements:
246
247 + *yield put* for putting items into a buffer, and
248
249 + *yield get* for getting items from a buffer.
250
251 - The Manual has undergone a major re-write/edit.
252
253 - All scripts have been restructured for compatibility with IronPython 1 beta2.
254 This was doen by moving all *import* statements to the beginning of the scripts.
255 After the removal of the first (shebang) line, all scripts (with the exception
256 of plotting and GUI scripts) can run successfully under this new Python
257 implementation.
258
259 September 2005: Version 1.6.1
260 =================================
261
262 This is a minor release.
263
264 - Addition of Tally data collection class as alternative
265 to Monitor. It is intended for collecting very large data sets
266 more efficiently in storage space and time than Monitor.
267
268 - Change of Resource to work with Tally (new Resource
269 API is backwards-compatible with 1.6).
270
271 - Addition of function setHistogram to class Monitor for initializing
272 histograms.
273
274 - New function allEventNotices() for debugging/teaching purposes. It returns
275 a prettyprinted string with event times and names of process instances.
276
277 - Addition of function allEventTimes (returns event times of all scheduled
278 events).
279
280 15 June 2005: Version 1.6
281 ==============================
282
283 - Addition of two compound yield statement forms to support the modelling of
284 processes reneging from resource queues.
285
286 - Addition of two test/demo files showing the use of the new reneging statements.
287
288 - Addition of test for prior simulation initialization in method activate().
289
290 - Repair of bug in monitoring thw waitQ of a resource when preemption occurs.
291
292 - Major restructuring/editing to Manual and Cheatsheet.
293
294 1 February 2005: Version 1.5.1
295 ==================================
296
297 - MAJOR LICENSE CHANGE:
298
299 Starting with this version 1.5.1, SimPy is being release under the GNU
300 Lesser General Public License (LGPL), instead of the GNU GPL. This change
301 has been made to encourage commercial firms to use SimPy in for-profit
302 work.
303
304 - Minor re-release
305
306 - No additional/changed functionality
307
308 - Includes unit test file'MonitorTest.py' which had been accidentally deleted
309 from 1.5
310
311 - Provides updated version of 'Bank.html' tutorial.
312
313 - Provides an additional tutorial ('Bank2.html') which shows
314 how to use the new synchronization constructs introduced in SimPy 1.5.
315
316 - More logical, cleaner version numbering in files.
317
318 1 December 2004: Version 1.5
319 ================================
320
321 - No new functionality/API changes relative to 1.5 alpha
322
323 - Repaired bug related to waiting/queuing for multiple events
324
325 - SimulationRT: Improved synchronization with wallclock time on Unix/Linux
326
327 25 September 2004: Version 1.5alpha
328 ======================================
329
330 - New functionality/API additions
331
332 * SimEvents and signalling synchronization constructs, with 'yield waitevent' and 'yield queueevent' commands.
333
334 * A general "wait until" synchronization construct, with the 'yield waituntil' command.
335
336 - No changes to 1.4.x API, i.e., existing code will work as before.
337
338 19 May 2004: Version 1.4.2
339 ==============================
340
341 - Sub-release to repair two bugs:
342
343 * The unittest for monitored Resource queues does not fail anymore.
344
345 * SimulationTrace now works correctly with "yield hold,self" form.
346
347 - No functional or API changes
348
349 29 February 2004: Version 1.4.1
350 ======================================
351
352 - Sub-release to repair two bugs:
353
354 * The (optional) monitoring of the activeQ in Resource now works correctly.
355
356 * The "cellphone.py" example is now implemented correctly.
357
358 - No functional or API changes
359
360 1 February 2004: Version 1.4 published on SourceForge
361 ========================================================
362
363 22 December 2003: Version 1.4 alpha
364 ========================================
365
366 - New functionality/API changes
367
368 * All classes in the SimPy API are now new style classes, i.e., they inherit from *object* either directly or indirectly.
369
370 * Module *Monitor.py* has been merged into module *Simulation.py* and all *SimulationXXX.py* modules. Import of *Simulation* or any *SimulationXXX* module now also imports *Monitor*.
371
372 * Some *Monitor* methods/attributes have changed. See Manual!
373
374 * *Monitor* now inherits from *list*.
375
376 * A class *Histogram* has been added to *Simulation.py* and all *SimulationXXX.py* modules.
377
378 * A module *SimulationRT* has been added which allows synchronization between simulated and wallclock time.
379
380 * A moduleSimulationStep which allows the execution of a simulation model event-by-event, with the facility to execute application code after each event.
381
382 * A Tk/Tkinter-based module *SimGUI* has been added which provides a SimPy GUI framework.
383
384 * A Tk/Tkinter-based module *SimPlot* has been added which provides for plot output from SimPy programs.
385
386 22 June 2003: Version 1.3
387 ===============================
388
389 - No functional or API changes
390 - Reduction of sourcecode linelength in Simulation.py to <= 80 characters
391
392 9 June 2003: Version 1.3 alpha
393 ====================================
394
395 - Significantly improved performance
396 - Significant increase in number of quasi-parallel processes SimPy can handle
397 - New functionality/API changes:
398
399 * Addition of SimulationTrace, an event trace utility
400 * Addition of Lister, a prettyprinter for instance attributes
401 * No API changes
402
403 - Internal changes:
404
405 * Implementation of a proposal by Simon Frost: storing the keys of the event set dictionary in a binary search tree using bisect. Thank you, Simon! SimPy 1.3 is dedicated to you!
406
407 - Update of Manual to address tracing.
408 - Update of Interfacing doc to address output visualization using Scientific Python gplt package.
409
410 29 April 2003: Version 1.2
411 ===========================
412
413 - No changes in API.
414 - Internal changes:
415 * Defined "True" and "False" in Simulation.py to support Python 2.2.
416
417 22 October 2002:
418 ====================
419
420 - Re-release of 0.5 Beta on SourceForge.net to replace corrupted file __init__.py.
421 - No code changes whatever!
422
423 18 October 2002:
424 =====================
425
426 - Version 0.5 Beta-release, intended to get testing by application developers and system integrators in preparation of first full (production) release. Released on SourceForge.net on 20 October 2002.
427 - More models
428 - Documentation enhanced by a manual, a tutorial ("The Bank") and installation instructions.
429 - Major changes to the API:
430
431 * Introduced 'simulate(until=0)' instead of 'scheduler(till=0)'. Left 'scheduler()' in for backward compatibility, but marked as deprecated.
432 * Added attribute "name" to class Process. Process constructor is now::
433
434 def __init__(self,name="a_process")
435
436 Backward compatible if keyword parameters used.
437
438 * Changed Resource constructor to::
439
440 def __init__(self,capacity=1,name="a_resource",unitName="units")
441
442 Backward compatible if keyword parameters used.
443
444 27 September 2002:
445 =====================
446
447 - Version 0.2 Alpha-release, intended to attract feedback from users
448 - Extended list of models
449 - Upodated documentation
450
451 17 September 2002
452 ====================
453
454 - Version 0.1.2 published on SourceForge; fully working, pre-alpha code
455 - Implements simulation, shared resources with queuing (FIFO), and monitors for data gathering/analysis.
456 - Contains basic documentation (cheatsheet) and simulation models for test and demonstration.
457
458
459 ..
460 Local Variables:
461 mode: rst
462 indent-tabs-mode: nil
463 sentence-end-double-space: t
464 fill-column: 70
465 End: