-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclasseSemente.hpp
56 lines (46 loc) · 1.9 KB
/
classeSemente.hpp
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
#ifndef CLASSE_SEMENTE_HPP
#define CLASSE_SEMENTE_HPP
#include <iostream>
#include <string>
class Semente{
private:
//atributos:
int _id_tipo;
bool _produz_frutos;
int _tempo_colheita; //indica de quanto em quanto tempo a planta da frutos(meses)
std::string _clima_ideal;
std::string _solo_ideal;
float _irrigacao_ideal;
int _expectativaCrescimento; //tempo estimado p/ maturacao da planta(dias)
float _expectativaTaxaDeGerminacao; //%
float _expectativaTaxaDeSobrevivencia; //%
float _expectativaIncidenciaPragasDoencas; //Porcentagem de plantas afetadas por problemas fitossanitários
public:
//metodos:
Semente(); //construtor (em teoria, todos os atributos serao definidos aqui)
Semente(int id); //sobrecarga do construtor
~Semente(); //destrutor
//--------------gets------------//
int get_id_tipo();
int get_tempo_colheita();
std::string get_clima_ideal();
std::string get_solo_ideal();
int get_expectativaCrescimento();
float get_expectativaTaxaDeGerminacao();
float get_expectativaTaxaDeSobrevivencia();
float get_expectativaIncidenciaPragasDoencas();
float get_irrigacao_ideal();
bool get_produz_frutos();
//--------sets------//
void set_id_tipo(int id);
void set_tempo_colheita(int tempo);
void set_clima_ideal(std::string clima);
void set_solo_ideal(std::string solo);
void set_expectativaCrescimento(float expectativa);
void set_expectativaTaxaDeGerminacao(float expectativa);
void set_expectativaTaxaDeSobrevivencia(float expectativa);
void set_expectativaIncidenciaPragasDoencas(float expectativa);
void set_irrigacao_ideal(float irrigacao);
void set_produz_frutos(bool produz_frutos);
};
#endif