Newer
Older
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// Channel.h
#ifndef CHANNEL_H
#define CHANNEL_H
#include "Subbasin.h"
#include "Hydrograph.h"
namespace math1d_cl
{
class Station;
class Channel
{
public:
const int& getId();
void setId(const int& id);
const std::string& getName();
void setName(const std::string& name);
const int& getSourceStationId();
void setSourceStationId(const int& sourceStationId);
const int& getSourceStationIndex();
void setSourceStationIndex(const int& sourceStationIndex);
/*const std::shared_ptr<Station>& getStation();
void setStation(const std::shared_ptr<Station>& station);*/
const int& getStationId();
void setStationId(const int& stationId);
const int& getStationIndex();
void setStationIndex(const int& stationIndex);
const double& getH();
void setH(const double& h);
const double& getD();
void setD(const double& d);
const double& getLength();
void setLength(const double& length);
const double& getSlope();
void setSlope(const double& slope);
const double& getBankSlope();
void setBankSlope(const double& bankSlope);
const double& getDepth();
void setDepth(const double& depth);
const double& getWidth();
void setWidth(const double& width);
const double& getN();
void setN(const double& n);
const int& getSubbasinId();
void setSubbasinId(const int& subbasinId);
const int& getSubbasinIndex();
void setSubbasinIndex(const int& subbasinIndex);
std::vector<int>& getUpstreams();
void setUpstreams(const std::vector<int>& upstreams);
const int& getDownstream();
void setDownstream(const int& downstream);
Hydrograph& getHydrograph();
void setHydrograph(const Hydrograph& hydrograph);
private:
int m_id;
std::string m_name;
int m_sourceStationId;
int m_sourceStationIndex;
//std::shared_ptr<Station> m_station;
int m_stationId;
int m_stationIndex;
double m_h;
double m_d;
double m_length;
double m_slope;
double m_bankSlope;
double m_depth;
double m_width;
double m_n; ///< Manning coef. will be parametrized in order of Calibration/Monte Carlo
int m_subbasinId;
int m_subbasinIndex;
// int m_nUp;
std::vector<int> m_upstreams; ///< contains indexes
int m_downstream;
Hydrograph m_hydrograph;
};
}
#endif