=========================
The following names have been changed:
SalabimComponent Component
SalabimQueue Queue
SalabimEnvironment Environment
SalabimResource Resource
salabim_random random
reset_env (method) reset
Distribution_from_string Distribution
The global function reset_env() (not the method of Environment) has been
phased out. Use default_env.reset() instead.
The default process to be executed when creating a component is now called
process, instead of action.
The proc argument of activate has been changed to process.
The proc argument of reschedule has been changed to process.
It is highly recommended to use the pythonistic
import salabim
or
import salabim as sim
instead of
from salabim import *
In all examples, we now use
import salabim as sim
If you use the latter form, all salabim items have to be preceeded by sim. ,
like sim.Component, sim.Resource, env.main, sim.passive, env.now(), sim.inf.
If you want to use a salabim item without prefixing, use something like
from salabim import inf,main
along with
import salabim as sim
In order to avoid having to specifiy sim.passive, sim.scheduled, etc.
when importing as recommended, a number of new properties are introduced:
is_passive (equivalent to status=sim.passive)
is_current (eqivalent to status==sim.current)
is_scheduled (equivalent to status==sim.scheduled)
is_standby (equivalent to status==sim.standby)
is_data (equivalent to status==sim.data)
Technical note: The test routines, which were present in the salabim source,
are now in a separate module, called salabim_test.py.
Style note: the name salabim is now all lowercase, to be more Pythonistic.
The utility program salabim0to1.py translates existing version 0 models into
the new version 1 style.
The program translates *ALL* version 0 programs in the current directory,
adding a 1 to the name, e.g. Lock.py will be translated to Lock1.py
Please note, that the translation is not guaranteed to be 100% accurate,
and some fine tuning might be necessary.
All sample models are updated accordingly.