// model parameters class Param { // basic parameters public static final int maxX = 10; // width of the grid of habitats public static final int maxY = 20; // height of the grid of habitats public static final int numAnimals = 100; // initial number of animals // about the zebras public static final double maxSize = 20; // maximum enery reserves public static final double moveCost = 0.4; // cost of moving to the next square public static final double timeCost = 0.5; // amount of energy spent just existing for a day public static final double eatAmount = 0.8; // maximum amount that can be eaten in a day // about the habitats public static double food(int x, int y) { // initial amount of food in each square return 10*(1.0+x)/(y+5); } public static double growAmount(int x, int y) { // amount of growth per day return 0.5*(1.0+x)/(y+5); } }