MineLink
 All Data Structures Functions Variables Pages
sinking.h
1 #ifndef __SINKING_H__
2 #define __SINKING_H__
3 
4 #include <iostream>
5 #include <fstream>
6 #include <typeinfo>
7 #include <algorithm>
8 #include <vector>
9 #include <string>
10 #include <map>
11 
12 #include "../../data_structures/precs/precs.h"
13 #include "../../data_structures/bm/coords.h"
14 #include "../../data_structures/bm/blocksel.h"
15 #include "limits"
16 #include "ramps.h"
17 
18 using namespace std;
19 
20 
21 namespace delphos{
33 {
34 private:
35  const string _phase_attr;
36  const double _difference;
37  const vector<pair<int,int> > _phases;
38  RampPrecedence * _rprec;
39 
40 public:
56  const string & phase_attr,
57  const double vertical_diff,
58  const vector<pair<int,int> > & phases);
77  const string & phase_attr,
78  const double vertical_diff,
79  const vector<pair<int,int> > & phases,
80  RampPrecedence * rprec);
84  virtual void CreateArcs();
88  const string GetPhaseAttribute() const;
92  const double GetDifference() const;
96  vector<pair<int,int> > GetConsecutivePhasesContainer() const;
102  RampPrecedence * GetRampPrecedence() const;
103 };
104 
114 {
115 
116 private:
117  const string _phase_attr;
118  const double _difference;
119  RampPrecedence * _rprec;
120 
121 public:
135  const string & phase_attr,
136  double vertical_diff);
151  const string & phase_attr,
152  double vertical_diff,
153  RampPrecedence * rprec);
157  virtual void CreateArcs();
161  const string GetPhaseAttribute() const;
165  const double GetDifference() const;
171  RampPrecedence * GetRampPrecedence() const;
172 
173 };
174 
175 }
176 #endif
horizontal precedence class with utility methods.
Definition: ramps.h:25
Abstracts a container of blocks as a table with arbitrary number of attributes that can be accessed b...
Definition: blockmodel.h:62
Implements a precedence as an explicit set of arcs between blocks. Provides utility functions...
Definition: precs.h:22
Defines maximum difference in height between consecutive benches on the same phase.
Definition: sinking.h:113
Defines maximum difference in height between consecutive phase-bench.
Definition: sinking.h:32