ncore.fish
Class wator

java.lang.Object
  |
  +--uchicago.src.sim.engine.SimModelImpl
        |
        +--ncore.fish.wator
All Implemented Interfaces:
uchicago.src.reflector.DescriptorContainer, uchicago.src.sim.engine.SimEventProducer, uchicago.src.sim.engine.SimModel

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

Wator Model consists of sharks eating that they encounter near them Fish and sharks can reproduce once they reach their reproductive ages and new recruits are placed near the mother. If sharks are not able to eat fish for sharkStarve time steps then they die Sharks cannot reproduce unless they were a certain percent less than the sharkStarve index as well. Both fishes and sharks have a certain "natural mortality" that is a particular percentage of their abundance.


Field Summary
 
Fields inherited from class uchicago.src.sim.engine.SimModelImpl
descriptors, modelManipulator
 
Constructor Summary
wator()
           
 
Method Summary
 void begin()
           
static java.util.ArrayList getFishArrayList()
           
 java.lang.String[] getInitParam()
           
 java.lang.String getName()
           
 int getNumFish()
           
 int getNumFishAlive()
           
 int getNumSharkAlive()
           
 int getNumSharks()
           
 double getPropDyingFish()
           
 double getPropDyingShark()
           
 float getRandomMoveProbability()
           
 int getRepAgeFish()
           
 int getRepAgeShark()
           
 uchicago.src.sim.engine.Schedule getSchedule()
           
 int getSharkStarve()
           
 int getWorldXSize()
           
 int getWorldYSize()
           
static void main(java.lang.String[] args)
           
static void setFishArrayList(java.util.ArrayList list)
           
 void setNumFish(int numFish)
           
 void setNumSharks(int numSharks)
           
 void setPropDyingFish(double propDyingFish)
           
 void setPropDyingShark(double propDyingShark)
           
 void setRandomMoveProbability(float prob)
           
 void setRepAgeFish(int RepAgeFish)
           
 void setRepAgeShark(int RepAgeShark)
           
 void setSharkStarve(int sharkStarve)
           
 void setup()
           
 void setWorldXSize(int size)
           
 void setWorldYSize(int size)
           
 void step()
           
 
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
 

Constructor Detail

wator

public wator()
Method Detail

main

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

step

public void step()

begin

public void begin()

setup

public void setup()

getInitParam

public java.lang.String[] getInitParam()

getSchedule

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

getName

public java.lang.String getName()

getNumFish

public int getNumFish()

setNumFish

public void setNumFish(int numFish)

getRepAgeFish

public int getRepAgeFish()

setRepAgeFish

public void setRepAgeFish(int RepAgeFish)

getPropDyingFish

public double getPropDyingFish()

setPropDyingFish

public void setPropDyingFish(double propDyingFish)

getNumSharks

public int getNumSharks()

setNumSharks

public void setNumSharks(int numSharks)

getRepAgeShark

public int getRepAgeShark()

setRepAgeShark

public void setRepAgeShark(int RepAgeShark)

getPropDyingShark

public double getPropDyingShark()

setPropDyingShark

public void setPropDyingShark(double propDyingShark)

getSharkStarve

public int getSharkStarve()

setSharkStarve

public void setSharkStarve(int sharkStarve)

getWorldXSize

public int getWorldXSize()

setWorldXSize

public void setWorldXSize(int size)

getWorldYSize

public int getWorldYSize()

setWorldYSize

public void setWorldYSize(int size)

getRandomMoveProbability

public float getRandomMoveProbability()

setRandomMoveProbability

public void setRandomMoveProbability(float prob)

getFishArrayList

public static java.util.ArrayList getFishArrayList()

setFishArrayList

public static void setFishArrayList(java.util.ArrayList list)

getNumFishAlive

public int getNumFishAlive()

getNumSharkAlive

public int getNumSharkAlive()