Stride Reference Manual  1.0
LocalDiscussion.h
Go to the documentation of this file.
1 /*
2  * LocalDiscussion.h
3  *
4  * Created on: May 26, 2017
5  * Author: elise
6  */
7 
8 #pragma once
9 
10 #include "util/RNG.h"
11 
12 namespace stride {
13 
14 template<typename PersonType>
16 public:
17  static void update(PersonType* p1, PersonType* p2) {
18  if (RNG::getInstance().nextDouble() < 1.0) {
19  p1->update(p2);
20  p2->update(p1);
21  }
22  }
23 };
24 
25 } /* namespace stride */
26 
27 
static void update(PersonType *p1, PersonType *p2)
Time Dependent Person DataType.
Definition: NoBehaviour.h:17
static RNG & getInstance()
Definition: RNG.h:26