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
// Subbasin.h
#ifndef SUBBASIN_H
#define SUBBASIN_H
namespace math1d_cl
{
class Channel;
class Station;
class Subbasin
{
public:
const int& getId();
void setId(const int& id);
const std::string& getName();
void setName(const std::string& name);
const double& getArea();
void setArea(const double& area);
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& getBaseflow();
void setBaseflow(const double& baseFlow);
const double& getCn();
void setCn(const double& cn);
const double& getN();
void setN(const double& n);
const double& getLai();
void setLai(const double& lai);
const double& getInitAbstraction();
void setInitAbstraction(const double& initAbstraction);
const double& getTimeConcentration();
void setTimeConcentration(const double& timeConcentration);
const double& getStorageCoeff();
void setStorageCoeff(const double& storageCoeff);
/*const std::shared_ptr<Channel>& getChannel();
void setChannel(const std::shared_ptr<Channel>& channel);*/
const int& getChannelIndex();
void setChannelIndex(const int& channelIndex);
const int& getWeatherStationIndex();
void setWeatherStationIndex(const int& weatherStationIndex);
private:
int m_id;
std::string m_name;
double m_area;
double m_h;
double m_d;
double m_length;
double m_slope;
double m_baseflow;
double m_cn;
double m_n; ///< Manning coef.
double m_lai; ///< jak je zarostla plocha
double m_initAbstraction;
double m_timeConcentration;
double m_storageCoeff;
//std::shared_ptr<Channel> m_channel;
int m_channelIndex;
int m_weatherStationIndex;
};
}
#endif