Cell2Fire
A large-scale forest fire simulator.
Loading...
Searching...
No Matches
Forest.h
1
#ifndef FOREST
2
#define FOREST
3
4
// Include libraries
5
#include <cmath>
6
#include <iostream>
7
#include <math.h>
8
#include <stdio.h>
9
#include <string>
10
#include <unordered_map>
11
#include <unordered_set>
12
#include <vector>
13
14
using namespace
std;
15
16
// Class definition
17
class
Forest
18
{
19
public
:
20
int
id;
21
int
nCells;
22
double
area;
23
double
vol;
24
double
age;
25
double
perimeter;
26
std::string location;
27
std::vector<int> coord;
28
std::unordered_map<std::string, int> fTypes;
29
std::vector<int> availCells;
30
std::vector<int> burntCells;
31
32
// Constructor & methods
33
Forest
(
int
_id,
34
std::string _location,
35
std::vector<int> _coord,
36
int
_nCells,
37
double
_area,
38
double
_vol,
39
double
_age,
40
double
_perimeter,
41
std::unordered_map<std::string, int>& _fTypes);
42
43
void
print_info();
44
};
45
46
#endif
Forest
Definition
Forest.h:18
Cell2Fire
Forest.h
Generated by
1.9.8