Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

AgentLivestockUnit.h

Go to the documentation of this file.
00001 //------------------------------------------------------------------------------
00002 //
00003 //  Thomas Berger (main author), Pepijn Schreinemachers, and Thorsten Arnold
00004 //
00005 //
00006 //  Hohenheim University (490d)
00007 //  Professorship for Land Use Economics in the Tropics and Subtropics
00008 //
00009 //  May not be distributed without permission by main author
00010 //
00011 //  File:       AgentLivestockUnit.h (formerly livestck.h)
00012 //
00013 //  Contents:   Livestock class, containing individual information of each
00014 //              livestock unit, e.g. age, sex.
00015 //
00016 //
00017 //------------------------------------------------------------------------------
00018 
00019 
00020 #ifndef _AgentLivestockUnit_h
00021 #define _AgentLivestockUnit_h
00022 
00023 
00024 
00025 
00026 class livestck
00027 {  protected:
00028    int hhID;//Household ID (i.e. "Betriebsnummer)
00029    int scID;//Watershed ID (i.e. "SubcatchmentNum")
00030    int pID; //personal ID
00031    int age;
00032    int type;
00033 
00034    int** health; //health status
00035 
00036         public:
00037         livestck(int hID, int scID, int pID, int type, int age);
00038         virtual ~livestck()
00039         {
00040         }
00041 
00042         //Pointers for list of herd members
00043    livestck* nextLivestck;
00044    void setNextPtr_M (livestck*);
00045    livestck* getNext_M();
00046 
00047         livestck* prevLivestck;
00048    void setPrevPtr_M (livestck*);
00049    livestck* getPrev_M();
00050 
00051 
00052         //Elementfunctions
00053    virtual int getHhID();
00054    virtual int getScID();
00055    virtual int getPID();
00056         virtual int getAge();
00057    virtual void increaseAge();
00058    virtual int getType();
00059 
00060    virtual void printToScreen();
00061 };
00062 
00063 
00064 #endif

Generated on Thu Aug 28 12:38:44 2008 for MPMAS by  doxygen 1.3.9.1