Classic DEVS Wrapper¶
A wrapper for AtomicDEVS models that are to be interpreted as Classic DEVS models
-
class
pypdevs.classicDEVSWrapper.
ClassicDEVSWrapper
(model)[source]¶ Wraps around a normal AtomicDEVS model and intercepts the DEVS specific functions. All attribute read/writes need to be redirected to the model itself.
-
__getattr__
(attr)[source]¶ Fetches the attributes of the model. This is a ‘magic’ function.
- Parameters
attr – the attribute to fetch
- Returns
the fetched attributed
-
__setattr__
(attr, val)[source]¶ Sets the attribute of the model. This is a ‘magic’ function. Only the ‘model’ attribute is not proxied!
- Parameters
attr – the attribute to set
val – the value to set it to
-
__weakref__
¶ list of weak references to the object (if defined)
-