edu.gmu.dparker3.sludge
Class Agent

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

public class Agent
extends java.lang.Object

Version:
1.0
Author:
Robert Najlis

Field Summary
private  LandCell currLC
           
(package private)  AgentDecision decision
           
private  java.util.ArrayList landCellList
           
private  Mediator m
           
 
Constructor Summary
Agent(LandCell cell)
           
Agent(Mediator m)
           
 
Method Summary
 void calcProfits1(LandCell lc)
           
 void calcSupplyInfo(LandCell lc)
          caclulate all supply information, including transport cost, production and profits, for types 0 and 1
 int determineLandCellType(LandCell lc)
          I believe this function is no longer in use
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

landCellList

private java.util.ArrayList landCellList

m

private Mediator m

decision

AgentDecision decision

currLC

private LandCell currLC
Constructor Detail

Agent

public Agent(Mediator m)

Agent

public Agent(LandCell cell)
Method Detail

calcSupplyInfo

public void calcSupplyInfo(LandCell lc)
caclulate all supply information, including transport cost, production and profits, for types 0 and 1

Parameters:
lc - the land cell currently being evaluated by the agent

calcProfits1

public void calcProfits1(LandCell lc)

determineLandCellType

public int determineLandCellType(LandCell lc)
I believe this function is no longer in use


main

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