My Project
 All Classes Files Functions Variables
Sampling.h
Go to the documentation of this file.
1 #ifndef SAMPLING_H
2 #define SAMPLING_H
3 
4 #include "MethodCollection.h"
5 
6 class Points;
7 
8 // This is kind of controller
9 class Sampling
10 {
11 public:
12  explicit Sampling(const char *);
13  ~Sampling();
14  void distribute();
15  void display() const;
16  int write() const;
17  void setDistributionMethod();
18 
19 private:
20  void init();
21  void createMethodCollectionInstance();
22  void createPointsInstance();
23  int m_density;
24  Points *m_Points;
25  MethodCollection *m_MethodCollection;
26  DistributionBehavior *m_Distribution;
27 };
28 #endif