|
Public Member Functions |
|
virtual int | getNumLotteryValues () |
| Number of lottery values.
|
virtual void | assignWaterRightsPerRandomData (FILE *rndWaterRightsStrm, FILE *dbgWaterRightsStrm) |
| ... by random data generator
|
virtual void | readLotteryDataFromStream (FILE *stream) |
virtual void | writeLotteryDataToStream (FILE *stream) |
virtual void | initializeWaterLottery (int numLotteryValues_) |
virtual double | drawRandomWaterRight (int inflow_) |
virtual void | assignWaterRightsPerActualData (FILE *actWaterRightsStrm, FILE *dbgWaterRightsStrm, int &catchmID_, int §orID_) |
| ... by data from file
|
virtual void | readWaterRightsFromStream (FILE *stream, int &catchmID_, int §orID_) |
virtual void | writeWaterRightsToStream (FILE *stream) |
virtual void | assignNumberOfMembers (int numMembers_) |
virtual void | createWaterRightsRegistry () |
virtual double | getWaterRightForAgent (int agFstdID_, int inflowID_) |
virtual void | setWaterRightForAgent (int agFstdID_, int inflowID_, double share_) |
|
virtual void | assignInfrastructureProjectsPerActualData (FILE *infrastructureProjectsStrm, int &catchmID_, int §orID_) |
| ... by reading data from file
|
virtual void | readInfrastructureProjectsFromStream (FILE *stream, int &catchmID_, int §orID_) |
virtual void | writeInfrastructureProjectsToStream (FILE *stream) |
virtual void | createInfrastructureProjectRegistry () |
virtual int | checkIfAgentHasProjects (int agFstdID, int year, MatrixDouble &objectIDs, MatrixDouble &sizes, MatrixDouble &purchasePrices, MatrixDouble &sharesEC, MatrixDouble &ratesDC) |
virtual void | reportImplementationResult (int agFstdID, int year, int objectID, double size, double purchasePrice, int implemented) |
|
virtual double | get_Q_B (int stype) |
| Request basic market information.
|
virtual double | get_Q_W (int month) |
virtual double | get_volB (int month) |
virtual int | getNumAgents (void) |
virtual int | getNumParcels (void) |
|
virtual void | addQ_B (int stype, double q_b) |
| Add to market level and calculate averages.
|
virtual void | addQ_W (int month, double q_w) |
virtual void | addVolB (int month, double v_B) |
virtual void | addNumAgents (int numberOfAgentsInMarket_) |
virtual void | addNumParcels (int numberOfParcelsInMarket_) |
virtual void | calcSectorAverages (void) |
|
virtual void | makeBidForRentingOut (gebot *bid) |
| Setting up rental markets for water and land.
|
virtual void | makeBidForRentingIn (gebot *bid) |
virtual void | boden_wasser_transferieren () |
virtual int | get_interesse (int *) |
virtual void | transferRentalWater (int month) |
virtual void | pachtmarkt_zuruecksetzen () |
virtual void | schattenpreise_zuruecksetzen () |
virtual double | eigentum_uebertragen (parzelle *, w_rechte *, double) |
| Sales to the landowner agent.
|
virtual double | kaufpreis_berechnen (int, w_jahr *, double) |
virtual void | writeYearlyLandRental () |
| Write market outcomes to files.
|
virtual void | writeAllMonthlyWaterRental (int shift) |
virtual void | P_in_datei_schreiben () |
virtual void | P_in_datei_schreiben (bool isExpected) |
|
| AgentUserAssociation (int agentID_, int catchmentID_, int sectorID_) |
| Constructor that also allocates required memory.
|
virtual | ~AgentUserAssociation () |
| Destructor.
|
Protected Attributes |
|
int | catchmentID |
| Catchment and sector IDs.
|
int | sectorID |
int | agType |
| Type of agent (here: agent association = 2).
|
int | agentID |
| Here: Agent association ID (not yet used).
|
int | numMembers |
| Number of members.
|
int | numLotteryValues |
| Number of lottery values (if = 0: actual data, else: random data).
|
AgentWaterRight ** | waterRightsRegistry |
| Registry of water rights.
|
MatrixDouble | wlotto |
| Random-data information for assignment of water rights.
|
bwmarkt | pachtmarkt |
| Instance of rental market.
|
int | numberOfAgentsInMarket |
| Number of agents and parcels in land market.
|
int | numberOfParcelsInMarket |
MatrixDouble | Q_B |
| Average shadow prices for land and water.
|
MatrixDouble | Q_W |
MatrixDouble | volB |
| Expected gross water availability per parcel.
|
int | numInfrastructureProjects |
| Number of irrigation infrastructure projects.
|
InfrastructureProject * | infrastructureProjectRegistry |
| Registry of infrastructure projects.
|
This agent-related class manages the access to land resources, provides irrigation infrastructure to its member farm agents, assigns water quotas and distributes irrigation water