edu.gmu.dparker3.sludge
Class AgentDecision

java.lang.Object
  extended byedu.gmu.dparker3.sludge.AgentDecision

public class AgentDecision
extends java.lang.Object

type 1 has a fixed output price, type 0 determined endogenously this class (or the agent) will also need to communicate with a database class to store the info

Version:
1.0
Author:
Robert Najlis

Field Summary
(package private)  LandCell currLC
           
(package private)  Mediator m
           
(package private)  java.util.ArrayList neighbors
           
 
Constructor Summary
AgentDecision()
           
 
Method Summary
 double calcNeighborhoodEffects(java.util.ArrayList landCells, int type)
           
 void calcProduction0(LandCell lc)
           
 void calcProduction1(LandCell lc)
           
 double calcProfits(double price, double productivity, double transportation)
           
 void calcProfits0(LandCell lc)
           
 void calcProfits1(LandCell lc)
           
 void calcResPrice1(LandCell lc)
           
 void calcSupplyInfo(LandCell lc, Mediator m)
           
 void calcTransportCost0(LandCell lc)
           
 void calcTransportCost1(LandCell lc)
           
 double calcType1ReservationPrice(double profits0, double neighborhoodEffects, double transportationCost)
           
static void main(java.lang.String[] args)
           
 java.util.ArrayList neighborhoodEffects(java.util.ArrayList landCells, int type)
           
 double sumNeighborhoodEffects(java.util.ArrayList effects)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currLC

LandCell currLC

m

Mediator m

neighbors

java.util.ArrayList neighbors
Constructor Detail

AgentDecision

public AgentDecision()
Method Detail

calcSupplyInfo

public void calcSupplyInfo(LandCell lc,
                           Mediator m)

calcTransportCost0

public void calcTransportCost0(LandCell lc)

calcTransportCost1

public void calcTransportCost1(LandCell lc)

calcProfits0

public void calcProfits0(LandCell lc)

calcProfits1

public void calcProfits1(LandCell lc)

calcResPrice1

public void calcResPrice1(LandCell lc)

calcProduction0

public void calcProduction0(LandCell lc)

calcProduction1

public void calcProduction1(LandCell lc)

calcNeighborhoodEffects

public double calcNeighborhoodEffects(java.util.ArrayList landCells,
                                      int type)

neighborhoodEffects

public java.util.ArrayList neighborhoodEffects(java.util.ArrayList landCells,
                                               int type)

sumNeighborhoodEffects

public double sumNeighborhoodEffects(java.util.ArrayList effects)

calcProfits

public double calcProfits(double price,
                          double productivity,
                          double transportation)

calcType1ReservationPrice

public double calcType1ReservationPrice(double profits0,
                                        double neighborhoodEffects,
                                        double transportationCost)

main

public static void main(java.lang.String[] args)