See
<project-file type=“source”/> <content> #ifndef LINK_H #define LINK_H
#include <simschedule.h> #include <vector>
class Node; class Link : public SimSchedule {
public: Link(Node *neighbor, float contact_rate);
/** handler performs the event */ virtual void handler(float Time, SimProcess *);
Node *neighbor() { return Neighbor; } const Node *neighbor() const { return Neighbor; } float contactRate() const { return ContactRate; } void updateEvent(float CurrentTime); private: Node *Neighbor; float ContactRate;
};
#endif </content>