pypdevsbbl.extra package¶
Within this package, you will be able to find a set of classes and functions that allow for additional functionality that can be used in the building blocks.
This goes about file handing, mathematical helper functions, an implementation
for a heap, a set of packaging classes as required for the
pypdevsbbl.generic.transformers.Pack and pypdevsbbl.generic.transformers.Unpack
blocks and a set of inverse cumulative distribution functions that can
be used in the pypdevsbbl.generic.generators.RandomNumberGenerator.
-
pypdevsbbl.extra.toDot(model: pypdevs.DEVS.CoupledDEVS, filename: str)[source]¶ Simple function for creating a Graphviz file for a Coupled DEVS.
The submodels become the nodes and the connections become the directed edges.
Note
The graphical representation that will be created is not a valid visual concrete syntax and should therefore only be used as confirmation on the validity of models.
Parameters: - model (CoupledDEVS) – A
CoupledDEVSmodel. - filename (str) – The filename to write the graph to.
- model (CoupledDEVS) – A