Connector#
- class Connector(name=None, label=None, unit=None, dt=None)[source]#
Bases:
Module
Base class for Connectors, which mediate interactions between disease (or other) modules
Because connectors can do anything, they have no specified structure: it is up to the user to define how they behave.
Attributes
now
Return the current time, i.e. the time vector at the current timestep.
states
Return a flat list of all states
statesdict
Return a flat dictionary (objdict) of all states
Methods