forked from EthanPadden/population-growth-model
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.h
More file actions
26 lines (22 loc) · 685 Bytes
/
plugin.h
File metadata and controls
26 lines (22 loc) · 685 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
* Copyright (c) 2018 - Marcos Cardinot <marcos@cardinot.net>
* Copyright (c) 2018 - Ethan Padden <e.padden1@nuigalway.ie>
*
* This source code is licensed under the MIT license found in
* the LICENSE file in the root directory of this source tree.
*/
#ifndef POPULATION_GROWTH_H
#define POPULATION_GROWTH_H
#include <plugininterface.h>
namespace evoplex {
class PopulationGrowth: public AbstractModel
{
public:
bool init() override;
bool algorithmStep() override;
private:
int m_infectedAttrId; // the id of the 'infected' node's attribute
double m_prob; // probability of a node becoming infected
};
} // evoplex
#endif // POPULATION_GROWTH_H