Vaccinate: A vaccination process

class epydemic.Vaccinate

An opinion model where the opinion is pro- or anti-vaccination, and nodes that are pro-vaccination are vaccinated at a certain rate.

Internally, the opinion being spread is anti-vaccination. Those who have been affected by the opinion (spreaders) will refuse vaccination; those who have either not heard the opinion or have changed their opinion (ignorants and stiflers) will be vaccinated at a given rate.

The actual vacciination functionality is provided as an event by SIvR. Tnis class simply provides the mechanism whereby vaccination events are caused.

Parameters

Vaccinate.P_VACCINATE: Final[str] = 'epydemic.vaccinate.pVaccinate'

Experimental parameter for rate of vaccination.

Building the process

Opinion.build(params)

Build the opinion model.

Parameters:

params (Dict[str, Any]) – the experimental parameters

Event methods

Vaccinate.vaccinate(t, n)

Perform the vaccination operation. The actual functionality is outsourced to SIvR.vaccinateNode().

Parameters:
  • t (float) – the simulation time

  • n (Any) – the node