test.generic package

Tests for the generic building blocks.

class test.generic.Model(nodes, connections)[source]

Bases: pypdevs.DEVS.CoupledDEVS

Simple model constructor for the tests.

Parameters:
  • nodes (iter) – An iterable with all submodels to add.
  • connections (iter) – An iterable with all port connections. Each entry is in the form of (from, to)
test.generic.simulate(model, tt=None)[source]

Simulates the model.

Parameters:
  • model (MModel) – The Model to simulate.
  • tt (numeric) – The termination time or None if no termination time needs to be set. Defaults to None.