Class WolfDeerSimulation

java.lang.Object
  extended by WolfDeerSimulation

public class WolfDeerSimulation
extends Object

Class that does a predator and prey simulation with wolves and deer

Author:
Mark Guzdial, Barb Ericson

Constructor Summary
WolfDeerSimulation()
           
 
Method Summary
 AgentNode getDeer()
          Method to get the deer linked list
 AgentNode getWolves()
          Method to get the wolf linked list
static void main(String[] args)
          Main for testing
 void run()
          Run the simulation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WolfDeerSimulation

public WolfDeerSimulation()
Method Detail

getWolves

public AgentNode getWolves()
Method to get the wolf linked list

Returns:
the first wolf in the linked list

getDeer

public AgentNode getDeer()
Method to get the deer linked list

Returns:
the first deer in the linked list

run

public void run()
Run the simulation


main

public static void main(String[] args)
Main for testing