ALMaSS Hare ODDox  1.1
The hare model description following ODdox protocol
OCarrots.h
Go to the documentation of this file.
1 //
2 // OCarrots.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 #ifndef OCARROTS_H
29 #define OCARROTS_H
30 
31 #define OCARROTS_BASE 6900
32 #define OCA_WATER_DATE m_field->m_user[0]
33 
34 typedef enum {
35  oca_start = 1, // Compulsory, start event must always be 1 (one).
50 } OCarrotsToDo;
51 
52 class OCarrots: public Crop
53 {
54 public:
55  bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
57  {
58  m_first_date=g_date->DayInYear(1,3);
59  }
60 };
61 
62 #endif // OCARROTS_H
oca_spring_harrow_two
Definition: OCarrots.h:40
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
OCarrots
Definition: OCarrots.h:52
oca_harvest
Definition: OCarrots.h:49
oca_rowcul_two
Definition: OCarrots.h:43
OCarrotsToDo
OCarrotsToDo
Definition: OCarrots.h:34
oca_rowcul_three
Definition: OCarrots.h:44
Crop::m_first_date
int m_first_date
Definition: farm.h:540
oca_spring_sow
Definition: OCarrots.h:41
Crop
The base class for all crops.
Definition: farm.h:534
OCarrots::OCarrots
OCarrots()
Definition: OCarrots.h:56
OCARROTS_BASE
#define OCARROTS_BASE
Definition: OCarrots.h:31
oca_rowcul_four
Definition: OCarrots.h:45
oca_spring_plough
Definition: OCarrots.h:38
oca_water_three
Definition: OCarrots.h:48
OCarrots::Do
bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
Definition: OCarrots.cpp:32
oca_water_two
Definition: OCarrots.h:47
oca_water_one
Definition: OCarrots.h:46
oca_fp_slurry
Definition: OCarrots.h:37
oca_rowcul_one
Definition: OCarrots.h:42
oca_fa_slurry
Definition: OCarrots.h:36
oca_spring_harrow_one
Definition: OCarrots.h:39
Farm
The base class for all farm types.
Definition: farm.h:767
oca_start
Definition: OCarrots.h:35