hydrobricks
Loading...
Searching...
No Matches
BehaviourLandCoverChange.h
1
#ifndef HYDROBRICKS_BEHAVIOUR_LAND_COVER_CHANGE_H
2
#define HYDROBRICKS_BEHAVIOUR_LAND_COVER_CHANGE_H
3
4
#include "Behaviour.h"
5
#include "Includes.h"
6
7
class
BehaviourLandCoverChange
:
public
Behaviour
{
8
public
:
9
BehaviourLandCoverChange
();
10
11
~BehaviourLandCoverChange
()
override
=
default
;
12
13
void
AddChange(
double
date,
int
hydroUnitId,
const
string
& landCoverName,
double
area);
14
15
bool
Apply(
double
date)
override
;
16
17
int
GetChangesNb() {
18
return
int(m_dates.size());
19
}
20
21
int
GetLandCoversNb() {
22
return
int(m_landCoverNames.size());
23
}
24
25
protected
:
26
vecInt m_hydroUnitIds;
27
vecInt m_landCoverIds;
28
vecStr m_landCoverNames;
29
vecDouble m_areas;
30
31
private
:
32
int
GetLandCoverId(
const
string
& landCoverName);
33
};
34
35
#endif
// HYDROBRICKS_BEHAVIOUR_LAND_COVER_CHANGE_H
BehaviourLandCoverChange
Definition
BehaviourLandCoverChange.h:7
Behaviour
Definition
Behaviour.h:7
src
behaviours
BehaviourLandCoverChange.h
Generated by
1.12.0