ALMaSS Hare ODDox  1.1
The hare model description following ODdox protocol
YoungForest.h
Go to the documentation of this file.
1 //
2 // YoungForest.h
3 //
4 /*
5 
6 Copyright (c) 2003, National Environmental Research Institute, Denmark (NERI)
7 
8 All rights reserved.
9 
10 
11 Redistribution and use in source and binary forms, with or without
12 modification, are permitted provided that the following conditions are met:
13 
14 *) Redistributions of source code must retain the above copyright notice, this
15 list of conditions and the following disclaimer.
16 *) Redistributions in binary form must reproduce the above copyright notice,
17 this list of conditions and the following disclaimer in the documentation
18 and/or other materials provided with the distribution.
19 *) Neither the name of the NERI nor the names of its contributors
20 may be used to endorse or promote products derived from this software without
21 specific prior written permission.
22 
23 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
27 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33 POSSIBILITY OF SUCH DAMAGE.
34 
35 */
36 
37 #ifndef YOUNGFOREST_H
38 #define YOUNGFOREST_H
39 
40 #define YOUNGFOREST_BASE 6510
41 
42 typedef enum {
43  yf_start = 1, // Compulsory, start event must always be 1 (one).
47 
48 
49 
50 class YoungForestCrop: public Crop
51 {
52 public:
53  bool Do( Farm *a_farm, LE *a_field, FarmEvent *a_ev );
55  {
56  m_first_date=g_date->DayInYear(1,4);
57  }
58 };
59 
60 #endif // YOUNGFOREST_H
YoungForestCrop::Do
bool Do(Farm *a_farm, LE *a_field, FarmEvent *a_ev)
Definition: YoungForest.cpp:32
FarmEvent
A struct to hold the information required to trigger a farm event.
Definition: farm.h:463
YoungForestCrop
Definition: YoungForest.h:50
yf_do_nothing_stop
Definition: YoungForest.h:45
Crop::m_first_date
int m_first_date
Definition: farm.h:540
Crop
The base class for all crops.
Definition: farm.h:534
YoungForestToDo
YoungForestToDo
Definition: YoungForest.h:42
yf_start
Definition: YoungForest.h:43
yf_do_nothing_start
Definition: YoungForest.h:44
Farm
The base class for all farm types.
Definition: farm.h:767
YoungForestCrop::YoungForestCrop
YoungForestCrop()
Definition: YoungForest.h:54
YOUNGFOREST_BASE
#define YOUNGFOREST_BASE
Definition: YoungForest.h:40