edu.gmu.dparker3.sludge
Class AgentDecision
java.lang.Object
edu.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
currLC
LandCell currLC
m
Mediator m
neighbors
java.util.ArrayList neighbors
AgentDecision
public AgentDecision()
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)