Intervention#
- class Intervention(*args, eligibility=None, **kwargs)[source]#
Bases:
ModuleBase class for interventions.
The key method of the intervention is
step(), which is called with the sim on each timestep.Attributes
Check if the intervention has a product
nowShortcut to self.t.now()
statesReturn a flat list of all states
statesdictReturn a flat dictionary (objdict) of all states
tiGet the current module timestep
timevecShortcut to self.t.timevec
Methods
- property has_product#
Check if the intervention has a product