See
- The implementation netprocess.cpp
- The description NetProcess
<project-file type=“source”/> <content> #ifndef NETPROCESS_H #define NETPROCESS_H
#include <simprocess.h> #include <networkstructure.h> #include <vector>
class Node; class SimPathogen; class SimDistribution;
class NetProcess : public SimProcess {
public: NetProcess(std::ostream &log, float beta_household, float beta_external, SimDistribution* tlat, SimDistribution *tinf, bool has_immunity, const NetworkStructure &net); void readNetwork(); inline Node *node(int i) { return (Node*)agent(i); } void dumpNet(); void dumpHousehold(); void dumpEffectiveDegrees(); void dumpHouseholdCompartments(); void initialInfections(const std::vector<int> &I0); void reset(); void countAffectedHouseholds(); private: const NetworkStructure &net; float BetaHousehold; float BetaExternal; bool HasImmunity; std::vector<int> InitialInfections; SimPathogen *Pathogen;
};
#endif NETPROCESS_H </content> <use name=“simprocess.h”/>