Stride Reference Manual  1.0
NoBelief.h
Go to the documentation of this file.
1 #pragma once
2 /*
3  * This is free software: you can redistribute it and/or modify it
4  * under the terms of the GNU General Public License as published by
5  * the Free Software Foundation, either version 3 of the License, or
6  * any later version.
7  * The software is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  * You should have received a copy of the GNU General Public License
12  * along with the software. If not, see <http://www.gnu.org/licenses/>.
13  *
14  * Copyright 2017, Willem L, Kuylen E, Stijven S & Broeckhove J
15  */
16 
18 #include "core/Health.h"
19 
20 namespace stride {
21 
22 template<typename BehaviourPolicy, typename BeliefPolicy>
23 class Person;
24 
25 class NoBelief {
26 public:
27  using Data = Nothing;
28 
29  static void initialize(Data& belief_data, double risk_averseness) {}
30 
31  static void update(Data& belief_data, Health& health_data) {}
32 
33  template<typename BehaviourPolicy>
34  static void update(Data& belief_data, const Person<BehaviourPolicy, NoBelief>* p) {}
35 
36  static bool hasAdopted(const Data& belief_data) { return false; }
37 };
38 
39 }
static void update(Data &belief_data, Health &health_data)
Definition: NoBelief.h:31
static void update(Data &belief_data, const Person< BehaviourPolicy, NoBelief > *p)
Definition: NoBelief.h:34
Time Dependent Person DataType.
Definition: NoBehaviour.h:17
static bool hasAdopted(const Data &belief_data)
Definition: NoBelief.h:36
Forward declaration of class Person.
Definition: ThresholdData.h:15
static void initialize(Data &belief_data, double risk_averseness)
Definition: NoBelief.h:29