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

Agent.h

Go to the documentation of this file.
00001 //------------------------------------------------------------------------------
00002 //     8
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:       Agent.h (formerly agent.h)
00012 //
00013 //  Contents:   Header for the basic class of agents
00014 //
00015 //
00016 //
00017 //------------------------------------------------------------------------------
00018 
00019 
00020 #ifndef _Agent_h
00021 #define _Agent_h
00022 #include "MainAuxiliaryFunctions.h"
00023 
00024 class agent
00025 {  protected:
00026    int agType;    //agent type  (basic = -1)
00027         int bnummer;   //agent ID
00028         int sc_nr;     //ID of subcatchment
00029         int sek_nr;    //ID of microcatchment ("sektor")
00030         int ageOfAgent;//age of agent
00031 
00032    public:
00033         agent* nextAgent;
00034 
00035         agent(int agid, int scid, int skid);
00036         virtual ~agent()
00037         {
00038         }
00039 
00040         //member functions
00041    virtual void printToScreen();
00042         virtual void setNextPtr(agent*);
00043         virtual agent* getNext();
00044 
00045    virtual int getAgType();
00046    int getAgentID()     {return bnummer; };
00047    int getSectorID()    {return sek_nr; };
00048    int getCatchmentID() {return sc_nr; };
00049 
00050    virtual int get_alter();
00051    virtual void set_alter(int yr);
00052 };
00053 
00054 
00055 #endif
00056 

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