Connector#

class Connector(name=None, label=None, **kwargs)[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

Shortcut to self.t.now()

states

Return a flat list of all states

statesdict

Return a flat dictionary (objdict) of all states

ti

Get the current module timestep

timevec

Shortcut to self.t.timevec

Methods