ALMaSS Hare ODDox  1.1
The hare model description following ODdox protocol
dummy.h
Go to the documentation of this file.
1 //
2 // dummy.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 DUMMY_H
29 #define DUMMY_H
30 
31 // A particular crop probably doesn't need all of these, but it may need
32 // others instead in places.
33 
34 // <cropname>_BASE is the first event number to be dumped into the
35 // debugging log from this crop. *Must* be unique among all crops.
36 // I suggest steps of 100 between crops.
37 
38 #define DUMMY_BASE 100
39 
40 typedef enum {
41  start = 1, // Compulsory, must always be 1 (one).
48  grubning, // Erm...? ;-)
68  rowcol_cleaning, // My dictionary says this is hoeing too.
69  grooming, // Well...
84 } DummyToDo;
85 
86 
87 class DummyCrop: public Crop
88 {
89  public:
90  virtual bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
91 };
92 
93 #endif // DUMMY_H
fertilizer_plant5
Definition: dummy.h:57
staining
Definition: dummy.h:62
DummyCrop
Definition: dummy.h:87
autumn_sow
Definition: dummy.h:46
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
fertilizer_plant1
Definition: dummy.h:53
autumn_roll
Definition: dummy.h:45
fertilizer_animal1
Definition: dummy.h:58
spring_roll
Definition: dummy.h:51
harvest
Definition: dummy.h:74
fertilizer_plant4
Definition: dummy.h:56
spring_plough
Definition: dummy.h:49
Crop
The base class for all crops.
Definition: farm.h:534
snailicide
Definition: dummy.h:67
fertilizer_plant2
Definition: dummy.h:54
DUMMY_BASE
#define DUMMY_BASE
Definition: dummy.h:38
grass_to_hay
Definition: dummy.h:77
burning
Definition: dummy.h:82
spring_sow
Definition: dummy.h:52
flaming
Definition: dummy.h:70
grooming
Definition: dummy.h:69
compress_straw
Definition: dummy.h:81
fertilizer_animal3
Definition: dummy.h:60
stubble_hoeing
Definition: dummy.h:83
fertilizer_plant3
Definition: dummy.h:55
swathing
Definition: dummy.h:73
cattle_out
Definition: dummy.h:75
grubning
Definition: dummy.h:48
growth_enhancer
Definition: dummy.h:64
start
Definition: dummy.h:41
herbacide
Definition: dummy.h:63
fertilizer_animal2
Definition: dummy.h:59
sleep_all_day
Definition: dummy.h:42
winter_plough
Definition: dummy.h:47
insecticide
Definition: dummy.h:66
autumn_harrow
Definition: dummy.h:44
collect_straw
Definition: dummy.h:80
spring_harrow
Definition: dummy.h:50
Farm
The base class for all farm types.
Definition: farm.h:767
autumn_plough
Definition: dummy.h:43
fertilizer_animal4
Definition: dummy.h:61
cattle_in
Definition: dummy.h:76
cut_to_straw
Definition: dummy.h:79
DummyToDo
DummyToDo
Definition: dummy.h:40
fungicide
Definition: dummy.h:65
grass_to_ensilage
Definition: dummy.h:78
rowcol_cleaning
Definition: dummy.h:68
hoeing
Definition: dummy.h:71
DummyCrop::Do
virtual bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
water
Definition: dummy.h:72