ALMaSS Hare ODDox
1.1
The hare model description following ODdox protocol
OPotatoes.h
Go to the documentation of this file.
1
//
2
// OPotatoes.h
3
//
4
/*
5
*******************************************************************************************************
6
Copyright (c) 2011, Christopher John Topping, University of Aarhus
7
All rights reserved.
8
9
Redistribution and use in source and binary forms, with or without modification, are permitted provided
10
that the following conditions are met:
11
12
Redistributions of source code must retain the above copyright notice, this list of conditions and the
13
following disclaimer.
14
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
15
the following disclaimer in the documentation and/or other materials provided with the distribution.
16
17
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
18
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
19
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
20
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
21
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
22
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
********************************************************************************************************
26
*/
27
28
29
#ifndef OPOTATOESEAT_H
30
#define OPOTATOESEAT_H
31
32
#define OPOTATOESEAT_BASE 6800
33
#define OPOT_SLURRY_DATE m_field->m_user[0]
34
#define OPOT_SOW_DATE m_field->m_user[1]
35
#define OPOT_HILLING_THREE m_field->m_user[2]
36
37
typedef
enum
{
38
ope_start
= 1,
// Compulsory, start event must always be 1 (one).
39
ope_fa_slurry
=
OPOTATOESEAT_BASE
,
40
ope_fa_manure
,
41
ope_fp_slurry
,
42
ope_fp_manure
,
43
ope_spring_plough
,
44
ope_spring_harrow
,
45
ope_spring_sow
,
46
ope_flaming_one
,
47
ope_strigling_one
,
48
ope_hilling_one
,
49
ope_strigling_two
,
50
ope_hilling_two
,
51
ope_strigling_three
,
52
ope_hilling_three
,
53
ope_water_one
,
54
ope_water_two
,
55
ope_flaming_two
,
56
ope_harvest
57
}
OPotatoesEatToDo
;
58
59
60
61
class
OPotatoes
:
public
Crop
62
{
63
public
:
64
bool
Do
(
Farm
*a_farm, LE *a_field,
FarmEvent
*a_ev );
65
OPotatoes
()
66
{
67
m_first_date
=g_date->DayInYear(1,3);
68
}
69
70
};
71
72
#endif // OPOTATOESEAT_H
ope_hilling_three
Definition:
OPotatoes.h:52
ope_hilling_one
Definition:
OPotatoes.h:48
ope_fa_slurry
Definition:
OPotatoes.h:39
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition:
farm.h:463
OPOTATOESEAT_BASE
#define OPOTATOESEAT_BASE
Definition:
OPotatoes.h:32
OPotatoes::Do
bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
Definition:
OPotatoes.cpp:33
ope_water_two
Definition:
OPotatoes.h:54
ope_harvest
Definition:
OPotatoes.h:56
ope_flaming_two
Definition:
OPotatoes.h:55
ope_start
Definition:
OPotatoes.h:38
Crop::m_first_date
int m_first_date
Definition:
farm.h:540
Crop
The base class for all crops.
Definition:
farm.h:534
ope_flaming_one
Definition:
OPotatoes.h:46
ope_water_one
Definition:
OPotatoes.h:53
ope_spring_sow
Definition:
OPotatoes.h:45
ope_fp_slurry
Definition:
OPotatoes.h:41
OPotatoes
Definition:
OPotatoes.h:61
ope_hilling_two
Definition:
OPotatoes.h:50
ope_fp_manure
Definition:
OPotatoes.h:42
OPotatoes::OPotatoes
OPotatoes()
Definition:
OPotatoes.h:65
ope_strigling_two
Definition:
OPotatoes.h:49
Farm
The base class for all farm types.
Definition:
farm.h:767
ope_strigling_one
Definition:
OPotatoes.h:47
ope_strigling_three
Definition:
OPotatoes.h:51
ope_spring_harrow
Definition:
OPotatoes.h:44
OPotatoesEatToDo
OPotatoesEatToDo
Definition:
OPotatoes.h:37
ope_spring_plough
Definition:
OPotatoes.h:43
ope_fa_manure
Definition:
OPotatoes.h:40
Repo
ALMaSS_all
Landscape
cropprogs
OPotatoes.h
Generated on Wed Oct 2 2019 11:11:20 for ALMaSS Hare ODDox by
1.8.16