- generation - Variable in class model.Animal
-
- generation - Variable in class view.InfoBox
-
- generation_counter - Variable in class view.GUI
-
- genome - Variable in class model.Animal
-
- Genome - Class in model
-
A genome holds a number of variables ("genes") that determine an animals characteristics.
- Genome() - Constructor for class model.Genome
-
The default constructor provides a standard genome.
- Genome(Genome) - Constructor for class model.Genome
-
This constructor creates a new genome based on the parent genome passed
to it, mutating it at random.
- Genome(int, int, int, int, int, int, int, int, int, int, int) - Constructor for class model.Genome
-
This constructor creates a genome from the values passed to it.
- Genome(HashMap<String, Integer>) - Constructor for class model.Genome
-
This constructor creates a genome from a HashMap.
- GenomeConfig - Class in view
-
This class provides GUI configuration facilities
for setting default genome values.
- GenomeConfig() - Constructor for class view.GenomeConfig
-
The constructor
- genomeConfig - Variable in class view.GUI
-
- genomeConfigBox - Variable in class view.GUI
-
- gestation - Variable in class model.Genome
-
- gestation - Variable in class view.GenomeConfig
-
- gestation - Variable in class view.InfoBox
-
- gestationPeriod - Variable in class model.Animal
-
- getAge() - Method in class model.Animal
-
- getAgeLimit() - Method in class model.Genome
-
- getAnimal(int, int) - Static method in class model.Simulator
-
Return the animal at (x, y), or null if there is no animal at that field.
- getAnimalInfo(int, int) - Method in class controller.World
-
Return information about the animal at the given position as a hash map
- getAutorun() - Method in class controller.World
-
- getAverageGrassDensity() - Method in class controller.World
-
- getCarnivore(int, int) - Static method in class model.Simulator
-
Return the carnivore at (x, y), or null if there is no animal at that field.
- getCarnivoreCount() - Method in class controller.World
-
- getDate() - Static method in class main.EcologiaIO
-
- getDefaultGenome(OccupantType) - Method in class controller.World
-
Return a hash map holding all the genome values
- getDirection(int, int) - Method in class model.Animal
-
In which direction are the given coordinates relative to this animal?
- getDistance(int, int) - Method in class model.Animal
-
How many steps are needed to get to the specified position?
- getEnergy() - Method in class model.Animal
-
- getField(int, int) - Static method in class model.Simulator
-
Returns the field at the required position.
- getFieldInfo(int, int) - Method in class controller.World
-
Return information about the map field at the given position as a hash map
- getGeneration() - Method in class controller.World
-
- getGeneration() - Method in class model.Animal
-
- getGenome() - Method in class model.Animal
-
- getGestation() - Method in class model.Genome
-
- getGrassDensity() - Method in class model.MapField
-
- getHerbivore(int, int) - Static method in class model.Simulator
-
Return the herbivore at (x, y), or null if there is no animal at that field.
- getHerbivoreCount() - Method in class controller.World
-
- getHumidity() - Method in class controller.World
-
- getID() - Method in class model.Animal
-
- getInfo() - Method in class model.Animal
-
Return a hash map containing all the information about this animal.
- getInfo() - Method in class model.MapField
-
Return a hash map containing all the information about this field.
- getInfoBox() - Method in class view.Display
-
Return the current infobox instance
- getInstance() - Static method in class controller.World
-
The Singleton method.
- getInstance() - Static method in class main.Ecologia
-
The Singleton method.
- getLocalHumidity() - Method in class model.MapField
-
- getMaturityAge() - Method in class model.Genome
-
- getMetabolism() - Method in class model.Genome
-
- getMutationRate() - Method in class model.Genome
-
- getNeighbouringField(Direction) - Method in class model.Animal
-
Calculate the neighbouring square in the specified direction
(return null if out of bounds)
- getNextID() - Method in class controller.World
-
Get the next unique animal ID number and increment the counter.
- getOccupant() - Method in class model.MapField
-
- getOffspring() - Method in class model.Animal
-
- getParent() - Method in class model.Animal
-
- getPreferredScrollableViewportSize() - Method in class view.Display
-
- getReproductionRate() - Method in class model.Genome
-
- getReproductiveEnergy() - Method in class model.Genome
-
- getScrollableBlockIncrement(Rectangle, int, int) - Method in class view.Display
-
- getScrollableTracksViewportHeight() - Method in class view.Display
-
- getScrollableTracksViewportWidth() - Method in class view.Display
-
- getScrollableUnitIncrement(Rectangle, int, int) - Method in class view.Display
-
- getSight() - Method in class model.Genome
-
- getSize() - Method in class controller.World
-
- getSpeed() - Method in class model.Genome
-
- getStamina() - Method in class model.Genome
-
- getStartEnergyCarnivores() - Method in class controller.World
-
- getStartEnergyHerbivores() - Method in class controller.World
-
- getStartGrassDensity() - Method in class controller.World
-
- getStartNoCarnivores() - Method in class controller.World
-
- getStartNoHerbivores() - Method in class controller.World
-
- getStatus(int) - Static method in enum controller.Humidity
-
Convert a number into an enum entry.
- getStopAt() - Method in class controller.World
-
- getStrength() - Method in class model.Genome
-
- getString() - Method in enum controller.Humidity
-
Return the string representation of an entry.
- getString() - Method in enum model.Direction
-
Return a string representation of this direction.
- getTimelapse() - Method in class controller.World
-
- getTurn() - Method in class controller.World
-
- getType() - Method in class model.Animal
-
- getValue() - Method in enum controller.Humidity
-
Return the numerical value of an entry.
- getWaterTiles() - Method in class controller.World
-
- getX() - Method in class model.Animal
-
- getY() - Method in class model.Animal
-
- giveNews(String) - Method in class controller.World
-
Display a news item - calling with null as a parameter resets the news list
- grass_counter - Variable in class view.GUI
-
- grassDensity - Variable in class model.MapField
-
- grassDensity - Variable in class view.SimulationConfig
-
- grassLabel - Variable in class view.SimulationConfig
-
- grasslevel - Variable in class view.InfoBox
-
- gui - Variable in class main.Ecologia
-
- GUI - Class in view
-
This class is the main class of the view package.
- GUI() - Constructor for class view.GUI
-
The constructor.
- random - Variable in class model.Animal
-
- random - Variable in class model.Genome
-
- random - Variable in class model.Simulator
-
- randomDirection() - Static method in enum model.Direction
-
Return a random direction
- randomizedSearch(OccupantType) - Method in class model.Animal
-
Search for the inputed object within the line of sight.
- readConfigFile(String) - Method in class controller.World
-
Read and parse a config file.
- reduceGrassDensity(int) - Method in class model.MapField
-
- refresh() - Method in class view.InfoBox
-
Refresh the Infobox with the data of a new tile.
- refresh() - Method in class view.ProgramConfig
-
Refresh values displayed in the text fields.
- refresh() - Method in class view.SimulationConfig
-
Refresh values displayed in the text fields.
- removeAnimal(int, int, OccupantType) - Static method in class model.Simulator
-
Remove an animal from the population
- rep_energy - Variable in class view.InfoBox
-
- repr_rate - Variable in class view.InfoBox
-
- reproduce() - Method in class model.Animal
-
The animal reproduces, setting down a child on a neighbouring square
- reproduceMidwinter() - Method in class main.EcoTest
-
Try and reproduce the Midwinter bug (random freezing)
- reproductionRate - Variable in class model.Genome
-
- reproductionRate - Variable in class view.GenomeConfig
-
- reproductionTest() - Method in class main.EcoTest
-
Does reproduction work?
- reproductiveEnergy - Variable in class model.Genome
-
- reproductiveEnergy - Variable in class view.GenomeConfig
-
- reset() - Method in class controller.World
-
Reset the world run-time variables, ready for a new run.
- reset() - Method in class main.Ecologia
-
Reset the simulator in order to start a new run.
- reset() - Method in class view.GUI
-
Destroy all windows in preparation for a new run.
- run() - Method in class main.Ecologia
-
Run the simulation.
- run - Variable in class view.GUI
-
- running - Variable in class controller.World
-
- runningThread - Variable in class main.Ecologia
-
- runTest() - Method in class main.EcoTest
-
Run a test (called first thing every update by the main class when in debug mode)