edu.gmu.dparker3.sludge
Class Sludge

java.lang.Object
  extended byuchicago.src.sim.engine.SimModelImpl
      extended byedu.gmu.dparker3.sludge.Sludge
All Implemented Interfaces:
uchicago.src.reflector.DescriptorContainer, uchicago.src.sim.engine.SimEventProducer, uchicago.src.sim.engine.SimModel

public class Sludge
extends uchicago.src.sim.engine.SimModelImpl

main class

Version:
1.0
Author:
Robert Najlis

Field Summary
private  int height
           
private  java.util.ArrayList landCellList
           
private  uchicago.src.sim.space.Object2DGrid landscape
           
private  uchicago.src.sim.gui.DisplaySurface landscapeDSurf
           
private  uchicago.src.sim.gui.DisplaySurface landscapeProfitabilityDSurf
           
private  Mediator m
           
private  int mktsPerType
           
private  int numTypes
           
private  OutputDatabase outDB
           
private static boolean paramFile
           
private  int pauseTick
           
private  uchicago.src.sim.engine.Schedule schedule
           
private  uchicago.src.sim.analysis.Plot sdPlot
           
private  uchicago.src.sim.gui.TextDisplay td
           
private  uchicago.src.sim.gui.TextDisplay td2
           
private  uchicago.src.sim.gui.TextDisplay td3
           
private  uchicago.src.sim.gui.DisplaySurface textDSurf
           
private  int width
           
 
Fields inherited from class uchicago.src.sim.engine.SimModelImpl
descriptors, modelManipulator
 
Constructor Summary
Sludge()
           
 
Method Summary
 void begin()
           
private  void buildDisplay()
           
private  void buildModel()
           
private  void buildSchedule()
           
 void constructFragstatsLandscape()
           
 void finishUp()
           
 int getBoard_Height()
           
 int getBoard_Size()
           
 int getBoard_Width()
           
 int getCurrent_Step()
           
 double getDemand_Parameter()
           
 java.lang.String[] getInitParam()
           
 int getMarket_0_X()
           
 int getMarket_0_Y()
           
 boolean getMarket_0()
           
 int getMarket_1_X()
           
 int getMarket_1_Y()
           
 boolean getMarket_1()
           
 java.lang.String getName()
           
 double getONE_With_0()
           
 double getONE_With_1()
           
 double getOutput_Price_0()
           
 double getProductivity_0()
           
 double getProductivity_1()
           
 boolean getRandom_Board()
           
 uchicago.src.sim.engine.Schedule getSchedule()
           
 int getStep_Num()
           
 double getTransport_Cost_0()
           
 double getTransport_Cost_1()
           
 double getZERO_With_0()
           
 double getZERO_With_1()
           
static void main(java.lang.String[] args)
           
 void setBoard_Height(int height)
           
 void setBoard_Size(int size)
           
 void setBoard_Width(int width)
           
 void setCurrent_Step(int step)
           
 void setDemand_Parameter(double dpar)
           
 void setMarket_0_X(int x)
           
 void setMarket_0_Y(int y)
           
 void setMarket_0(boolean m)
           
 void setMarket_1_X(int x)
           
 void setMarket_1_Y(int y)
           
 void setMarket_1(boolean m)
           
 void setONE_With_0(double ob)
           
 void setONE_With_1(double sb)
           
 void setOutput_Price_0(double o)
           
 void setProductivity_0(double p)
           
 void setProductivity_1(double p)
           
 void setRandom_Board(boolean r)
           
 void setStep_Num(int stepNum)
           
 void setTransport_Cost_0(double t)
           
 void setTransport_Cost_1(double t)
           
 void setup()
           
 void setZERO_With_0(double sb)
           
 void setZERO_With_1(double ob)
           
 void showGraphs()
           
 void step()
           
 void updateFragstatsDB()
           
 
Methods inherited from class uchicago.src.sim.engine.SimModelImpl
addPropertyListener, addSimEventListener, clearMediaProducers, clearPropertyListeners, fireBooleanPropertyEvent, fireEndSim, fireNumericPropertyEvent, fireObjectPropertyEvent, firePauseSim, fireSimEvent, fireStopSim, fireStringPropertyEvent, generateNewSeed, getController, getMediaProducers, getModelManipulator, getParameterDescriptors, getPropertiesValues, getRngSeed, getTickCount, getTickCountDouble, pause, registerDisplaySurface, registerMediaProducer, removePropertyListener, removeSimEventListener, setController, setRngSeed, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m

private Mediator m

landscape

private uchicago.src.sim.space.Object2DGrid landscape

width

private int width

height

private int height

landscapeDSurf

private uchicago.src.sim.gui.DisplaySurface landscapeDSurf

landscapeProfitabilityDSurf

private uchicago.src.sim.gui.DisplaySurface landscapeProfitabilityDSurf

textDSurf

private uchicago.src.sim.gui.DisplaySurface textDSurf

td

private uchicago.src.sim.gui.TextDisplay td

td2

private uchicago.src.sim.gui.TextDisplay td2

td3

private uchicago.src.sim.gui.TextDisplay td3

schedule

private uchicago.src.sim.engine.Schedule schedule

landCellList

private java.util.ArrayList landCellList

numTypes

private int numTypes

mktsPerType

private int mktsPerType

pauseTick

private int pauseTick

outDB

private OutputDatabase outDB

sdPlot

private uchicago.src.sim.analysis.Plot sdPlot

paramFile

private static boolean paramFile
Constructor Detail

Sludge

public Sludge()
Method Detail

main

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

step

public void step()

begin

public void begin()

setup

public void setup()

buildModel

private void buildModel()

buildDisplay

private void buildDisplay()

buildSchedule

private void buildSchedule()

finishUp

public void finishUp()
              throws java.io.IOException
Throws:
java.io.IOException

showGraphs

public void showGraphs()

constructFragstatsLandscape

public void constructFragstatsLandscape()
                                 throws java.io.IOException
Throws:
java.io.IOException

updateFragstatsDB

public void updateFragstatsDB()

getInitParam

public java.lang.String[] getInitParam()

getName

public java.lang.String getName()

getSchedule

public uchicago.src.sim.engine.Schedule getSchedule()

getBoard_Size

public int getBoard_Size()

setBoard_Size

public void setBoard_Size(int size)

getBoard_Width

public int getBoard_Width()

setBoard_Width

public void setBoard_Width(int width)

getBoard_Height

public int getBoard_Height()

setBoard_Height

public void setBoard_Height(int height)

getDemand_Parameter

public double getDemand_Parameter()

setDemand_Parameter

public void setDemand_Parameter(double dpar)

getMarket_0

public boolean getMarket_0()

setMarket_0

public void setMarket_0(boolean m)

getMarket_0_X

public int getMarket_0_X()

setMarket_0_X

public void setMarket_0_X(int x)

getMarket_0_Y

public int getMarket_0_Y()

setMarket_0_Y

public void setMarket_0_Y(int y)

getMarket_1

public boolean getMarket_1()

setMarket_1

public void setMarket_1(boolean m)

getMarket_1_X

public int getMarket_1_X()

setMarket_1_X

public void setMarket_1_X(int x)

getMarket_1_Y

public int getMarket_1_Y()

setMarket_1_Y

public void setMarket_1_Y(int y)

getProductivity_0

public double getProductivity_0()

setProductivity_0

public void setProductivity_0(double p)

getProductivity_1

public double getProductivity_1()

setProductivity_1

public void setProductivity_1(double p)

getTransport_Cost_0

public double getTransport_Cost_0()

setTransport_Cost_0

public void setTransport_Cost_0(double t)

getTransport_Cost_1

public double getTransport_Cost_1()

setTransport_Cost_1

public void setTransport_Cost_1(double t)

getOutput_Price_0

public double getOutput_Price_0()

setOutput_Price_0

public void setOutput_Price_0(double o)

getZERO_With_0

public double getZERO_With_0()

setZERO_With_0

public void setZERO_With_0(double sb)

getZERO_With_1

public double getZERO_With_1()

setZERO_With_1

public void setZERO_With_1(double ob)

getONE_With_1

public double getONE_With_1()

setONE_With_1

public void setONE_With_1(double sb)

getONE_With_0

public double getONE_With_0()

setONE_With_0

public void setONE_With_0(double ob)

setRandom_Board

public void setRandom_Board(boolean r)

getRandom_Board

public boolean getRandom_Board()

setStep_Num

public void setStep_Num(int stepNum)

getStep_Num

public int getStep_Num()

setCurrent_Step

public void setCurrent_Step(int step)

getCurrent_Step

public int getCurrent_Step()