Skip navigation links
Ecologia
A B C D E F G H I L M N O P R S T U V W X Y 

A

about - Variable in class view.GUI
 
addAnimal(Animal) - Static method in class model.Simulator
Add an animal to the population
addDisplay() - Method in class view.GUI
Add the actual display.
addInformationPanel() - Method in class view.GUI
Add the information panel at the side
age - Variable in class model.Animal
 
age - Variable in class view.InfoBox
 
age_limit - Variable in class view.InfoBox
 
ageLimit - Variable in class model.Genome
 
ageLimit - Variable in class view.GenomeConfig
 
analyse - Variable in class view.ProgramConfig
 
analysing - Static variable in class main.EcologiaIO
 
analysis(String) - Static method in class main.EcologiaIO
Print an analysis message if the analysing flag is set.
Animal - Class in model
This is the superclass of all animal classes.
Animal(int, OccupantType, Genome, int, int, int, int, int) - Constructor for class model.Animal
The constructor.
animal_box - Variable in class view.InfoBox
 
animalInfo - Variable in class view.InfoBox
 
animals - Variable in class controller.World
 
apply - Variable in class view.ProgramConfig
 
archiveLog() - Static method in class main.EcologiaIO
Archive the current log file, ready for a new run
asHashMap() - Method in class model.Genome
Return all the "genes" of this genome in a single HashMap.
attack() - Method in class model.Carnivore
The carnivore has run down a herbivore and now tries to kill it XXX Warning: here be magic numbers!
attemptedMovesThisTurn - Variable in class model.Animal
 
autorun - Variable in class controller.World
 
autorun() - Method in class main.Ecologia
Perform an automatic run.
averageGrassDensity - Variable in class controller.World
 

B

BREAK_ERROR - Static variable in class main.EcologiaIO
 
button_panel - Variable in class view.HelpWindow
 

C

calculateGrassDensity() - Method in class model.MapField
Recalculate the grass density based on humidity values.
Carnivore - Class in model
This class simulates a carnivore.
Carnivore(int, Genome, int, int, int, int, int) - Constructor for class model.Carnivore
The constructor.
carnivore_counter - Variable in class view.GUI
 
carnivoreCounter - Variable in class controller.World
 
carnivoreGenome - Static variable in class model.Genome
 
carnivorePopulation - Static variable in class model.Simulator
 
changeEnergy(int) - Method in class model.Animal
Change the energy level of this animal.
checkGenome() - Method in class model.Genome
Check to make sure that no "gene" has a value below zero
closestSearch(OccupantType) - Method in class model.Animal
Search for the inputed object within the line of sight.
collectNews() - Method in class controller.World
 
concepts - Variable in class view.HelpWindow
 
configChooser - Variable in class view.GUI
 
configFileDialog - Variable in class view.GUI
 
configuration - Variable in class view.GUI
 
confirm - Variable in class view.GenomeConfig
 
confirm - Variable in class view.SimulationConfig
 
CONTINUABLE_ERROR - Static variable in class main.EcologiaIO
 
controller - package controller
controller handles all communication between model and view.
coordinates - Variable in class view.InfoBox
 
createGUI() - Method in class view.HelpWindow
Add the text area which will display the text and the buttons to choose which text to display.
createMenu() - Method in class view.GUI
Add the menubar
currentDirection - Variable in class model.Carnivore
 

D

debug(String) - Static method in class main.EcologiaIO
Print a debug message if the debug flag is set.
debug - Variable in class view.ProgramConfig
 
debugging - Static variable in class main.EcologiaIO
 
DEFAULT_MUTATION_RATE - Variable in class model.Genome
 
defaultGenome - Static variable in class model.Carnivore
 
defaultGenome - Static variable in class model.Herbivore
 
dimensions - Variable in class view.SimulationConfig
 
Direction - Enum in model
A list of directions and common methods related to them is often needed by animals.
Direction() - Constructor for enum model.Direction
 
disableDisplay - Variable in class view.GUI
 
Display - Class in view
This class provides a graphical representation of the simulation.
Display(int[]) - Constructor for class view.Display
The constructor
display - Variable in class view.GUI
 
displayNews() - Method in class view.GUI
Display news items on the ticker
drawAnimalBox() - Method in class view.InfoBox
Draw the animal box.
drawConfigWindow() - Method in class view.ProgramConfig
 
drawConfigWindow() - Method in class view.SimulationConfig
Create the interface
drawGenomeConfigWindow() - Method in class view.GenomeConfig
Create the interface
drawInfoBox() - Method in class view.InfoBox
Initialise the infobox.
drawTileBox() - Method in class view.InfoBox
Draw the tile box.

E

eco - Static variable in class main.Ecologia
 
Ecologia - Class in main
Ecologia is a relatively simple ecosystem simulator, designed to show basic relationships between predators, prey and producers.
Ecologia() - Constructor for class main.Ecologia
Ecologia implements Singleton, so the constructor is private.
EcologiaIO - Class in main
This class provides unified I/O methods for debugging, logging, error messages, etc.
EcologiaIO() - Constructor for class main.EcologiaIO
 
EcoTest - Class in main
This class is used to test new features in Ecologia during development.
EcoTest() - Constructor for class main.EcoTest
 
efficiency - Variable in class view.InfoBox
 
energy - Variable in class model.Animal
 
energy - Variable in class view.InfoBox
 
energyCarnivores - Variable in class view.SimulationConfig
 
energyCarnLabel - Variable in class view.SimulationConfig
 
energyHerbivores - Variable in class view.SimulationConfig
 
energyHerbLabel - Variable in class view.SimulationConfig
 
error(String) - Static method in class main.EcologiaIO
Print an error message
error(String, Exception) - Static method in class main.EcologiaIO
Print an error message and the stack trace
error(String, int) - Static method in class main.EcologiaIO
Give an error message and pause/shut down
exhaust(int) - Method in class model.Animal
 
exhaustion - Variable in class model.Animal
 
exit - Variable in class view.GUI
 
eyesight - Variable in class view.InfoBox
 

F

FATAL_ERROR - Static variable in class main.EcologiaIO
 
feed() - Method in class model.Herbivore
Graze the current tile.
fights_won - Static variable in class model.Carnivore
 
file - Variable in class view.GUI
 
flee() - Method in class model.Herbivore
Run away from a predator
fromInt(int) - Static method in enum controller.OccupantType
Convert the corresponding enum entry for this integer
fromInt(int) - Static method in enum model.Direction
Return the direction that this number refers to.
fromString(String) - Static method in enum controller.Humidity
Convert an integer into an enum entry
fromString(String) - Static method in enum controller.OccupantType
Transform a string into an occupant type

G

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.

H

heading - Variable in class view.ProgramConfig
 
heading - Variable in class view.SimulationConfig
 
height - Variable in class view.SimulationConfig
 
help - Variable in class view.GUI
 
help - Variable in class view.HelpWindow
 
help_menu - Variable in class view.GUI
 
helpWindow - Variable in class view.GUI
 
HelpWindow - Class in view
This window displays the help file for Ecologia.
HelpWindow() - Constructor for class view.HelpWindow
 
Herbivore - Class in model
This class simulates a herbivore.
Herbivore(int, Genome, int, int, int, int, int) - Constructor for class model.Herbivore
The constructor.
herbivore_counter - Variable in class view.GUI
 
herbivoreCounter - Variable in class controller.World
 
herbivoreGenome - Static variable in class model.Genome
 
herbivorePopulation - Static variable in class model.Simulator
 
highestGeneration - Variable in class controller.World
 
Humidity - Enum in controller
The different levels of humidity that are available.
Humidity() - Constructor for enum controller.Humidity
 
humidity - Variable in class controller.World
 
humidity - Variable in class view.InfoBox
 
humidityChooser - Variable in class view.GUI
 
hunt() - Method in class model.Carnivore
The carnivore runs toward a herbivore

I

id - Variable in class view.InfoBox
 
IDnumber - Variable in class model.Animal
 
incGeneration(int) - Method in class controller.World
Increment the generation counter as necessary.
incrementTurn() - Method in class controller.World
Increment the turn variable by one.
infobox - Variable in class view.Display
 
InfoBox - Class in view
This class is responsible for displaying information about a tile that was clicked on in the simulator.
InfoBox() - Constructor for class view.InfoBox
The constructor.
information - Variable in class view.GUI
 
initMap() - Method in class model.Simulator
Initialise the map.
initPopulations() - Method in class model.Simulator
Initialise the animal populations.
initWaterTiles() - Method in class model.Simulator
Initialise the water tiles.
isAlive - Variable in class model.Animal
 
isAlive() - Method in class model.Animal
 
isNearWater - Variable in class model.MapField
 
isRunning() - Method in class controller.World
 
iterate() - Method in class main.Ecologia
Perform one iteration of the simulation.

L

license - Variable in class view.HelpWindow
 
loadDocFile(String) - Method in class view.HelpWindow
Load a documentation file.
localHumidity - Variable in class model.MapField
 
log(String) - Static method in class main.EcologiaIO
Print a log message if the verbose flag is set.
logging - Static variable in class main.EcologiaIO
 
logging - Variable in class view.ProgramConfig
 

M

main - package main
The main package includes the class that contains the main() method, as well as any other classes that are needed by all parts of the program, yet are not directly related to the simulation.
main(String[]) - Static method in class main.Ecologia
Launch the program.
main_panel - Variable in class view.HelpWindow
 
mainBox - Variable in class view.GenomeConfig
 
mainBox - Variable in class view.ProgramConfig
 
mainBox - Variable in class view.SimulationConfig
 
map - Static variable in class model.Simulator
 
MapField - Class in model
This is a representation of a discrete area (tile) on the map.
MapField(int, int, OccupantType, Humidity, int) - Constructor for class model.MapField
The constructor.
mat_age - Variable in class view.InfoBox
 
maturityAge - Variable in class model.Genome
 
maturityAge - Variable in class view.GenomeConfig
 
menubar - Variable in class view.GUI
 
metabolism - Variable in class model.Genome
 
metabolism - Variable in class view.GenomeConfig
 
mixedSearch(OccupantType) - Method in class model.Animal
Search for the inputed object within the line of sight.
model - package model
model is responsible for the program logic.
mouseClicked(MouseEvent) - Method in class view.Display
 
mouseEntered(MouseEvent) - Method in class view.Display
 
mouseExited(MouseEvent) - Method in class view.Display
 
mousePressed(MouseEvent) - Method in class view.Display
 
mouseReleased(MouseEvent) - Method in class view.Display
 
move(Direction) - Method in class model.Animal
The animal moves in the specified direction.
movesThisTurn - Variable in class model.Animal
 
moveToNewGrazingGrounds() - Method in class model.Herbivore
Search the surrounding squares for one with a higher grass density and move there
mut_rate - Variable in class view.InfoBox
 
mutation(int) - Method in class model.Genome
Returns a mutation factor depending on the specified mutation rate.
mutationRate - Variable in class model.Genome
 
mutationRate - Variable in class view.GenomeConfig
 

N

nCarnLabel - Variable in class view.SimulationConfig
 
nearWater() - Method in class model.MapField
 
new_run - Variable in class view.GUI
 
news - Variable in class controller.World
 
newsTest() - Method in class main.EcoTest
Test the new setup of the news ticker.
next - Variable in class view.GUI
 
nextDirection(boolean) - Method in enum model.Direction
Return the next direction, going clockwise (if cw = true) or anticlockwise (if cw = false)
nextID - Variable in class controller.World
 
nHerbLabel - Variable in class view.SimulationConfig
 
no_carnivores - Variable in class view.SimulationConfig
 
no_herbivores - Variable in class view.SimulationConfig
 
no_water_tiles - Variable in class view.SimulationConfig
 
noGUI - Static variable in class main.Ecologia
 

O

occupant - Variable in class model.MapField
 
OccupantType - Enum in controller
This is a list of all the possible elements that can occupy a field.
OccupantType() - Constructor for enum controller.OccupantType
 
occupied_by - Variable in class view.InfoBox
 
offspring - Variable in class model.Animal
 
offspring - Variable in class view.InfoBox
 
oppositeDirection() - Method in enum model.Direction
Return the opposite direction

P

paintComponent(Graphics) - Method in class view.Display
Draw the current status of the simulation onto the panel.
parent - Variable in class model.Animal
 
parent - Variable in class view.InfoBox
 
predatorPosition - Variable in class model.Herbivore
 
preyPosition - Variable in class model.Carnivore
 
printHelp() - Static method in class main.Ecologia
Print a short help text when invoked from the commandline
printStatus() - Static method in class main.EcologiaIO
Print out which flags are set.
programConfig - Variable in class view.GUI
 
ProgramConfig - Class in view
This class provides a GUI to configure program options (these can also be set via commandline flags).
ProgramConfig() - Constructor for class view.ProgramConfig
The constructor
programConfigBox - Variable in class view.GUI
 

R

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)

S

scroller - Variable in class view.HelpWindow
 
scrollscreen - Variable in class view.GUI
 
scrollticker - Variable in class view.GUI
 
search(OccupantType) - Method in class model.Animal
Search for the inputed object within the line of sight.
serialVersionUID - Static variable in class view.GUI
 
setAge(int) - Method in class model.Animal
 
setAnimals(ArrayList<HashMap<String, Integer>>) - Method in class controller.World
 
setAutorun(int) - Method in class controller.World
 
setAverageGrassDensity(int) - Method in class controller.World
 
setCarnivoreCount(int) - Method in class controller.World
 
setDefaultGenome(OccupantType, int, int, int, int, int, int, int, int, int, int, int) - Method in class controller.World
Interface for the Genome method
setEnergy(int) - Method in class model.Animal
 
setHerbivoreCount(int) - Method in class controller.World
 
setHumidity(Humidity) - Method in class controller.World
 
setLocalHumidity(Humidity) - Method in class model.MapField
 
setNearWater(boolean) - Method in class model.MapField
 
setOccupant(OccupantType) - Method in class model.MapField
 
setPosition(int, int) - Method in class model.Animal
 
setRunning(boolean) - Method in class controller.World
 
setSize(int[]) - Method in class controller.World
 
setStartEnergyCarnivores(int) - Method in class controller.World
 
setStartEnergyHerbivores(int) - Method in class controller.World
 
setStartGrassDensity(int) - Method in class controller.World
 
setStartNoCarnivores(int) - Method in class controller.World
 
setStartNoHerbivores(int) - Method in class controller.World
 
setStartNoWaterTiles(int) - Method in class controller.World
 
setStopAt(int) - Method in class controller.World
 
setTimelapse(int) - Method in class controller.World
 
show(int, int) - Method in class view.InfoBox
Displays the information about the specified tile
showConfig() - Method in class view.ProgramConfig
Show the configuration window
showConfig(boolean) - Method in class view.SimulationConfig
Show the configuration window
showGenomeConfig(boolean) - Method in class view.GenomeConfig
Update the box and make it visible
showRestartDialog - Variable in class view.GenomeConfig
 
showRestartDialog - Variable in class view.SimulationConfig
 
sight - Variable in class model.Genome
 
sight - Variable in class view.GenomeConfig
 
simConfigBox - Variable in class view.GUI
 
simulationConfig - Variable in class view.GUI
 
SimulationConfig - Class in view
This class is used to graphically configure simulation parameters prior to the start of a run.
SimulationConfig() - Constructor for class view.SimulationConfig
The constructor
simulator - Variable in class main.Ecologia
 
Simulator - Class in model
The Simulator class is the main class of the model package.
Simulator() - Constructor for class model.Simulator
The constructor.
size - Variable in class controller.World
 
size - Variable in class view.Display
 
speed - Variable in class model.Genome
 
speed - Variable in class view.GenomeConfig
 
speed - Variable in class view.InfoBox
 
speedSlider - Variable in class view.GUI
 
stamina - Variable in class model.Genome
 
stamina - Variable in class view.GenomeConfig
 
stamina - Variable in class view.InfoBox
 
startEnergyCarnivores - Variable in class controller.World
 
startEnergyHerbivores - Variable in class controller.World
 
startGrassDensity - Variable in class controller.World
 
startNoCarnivores - Variable in class controller.World
 
startNoHerbivores - Variable in class controller.World
 
startThread() - Method in class main.Ecologia
Start the simulation.
stopAt - Variable in class controller.World
 
stopAtField - Variable in class view.GUI
 
strength - Variable in class model.Genome
 
strength - Variable in class view.GenomeConfig
 
strength - Variable in class view.InfoBox
 
strengthEnergyFight(int, int, int, int) - Method in class model.Carnivore
A fight method based on the strength and current energy of the combatants.
strengthFight(int, int) - Method in class model.Carnivore
A fight method based on the strength of the combatants.

T

tab_pane - Variable in class view.InfoBox
 
tester - Variable in class main.Ecologia
 
testing - Variable in class main.EcoTest
 
testPopulationChanges() - Method in class main.EcoTest
Add, move and remove an animal
text - Variable in class view.HelpWindow
 
ticker - Variable in class view.GUI
 
tile_box - Variable in class view.InfoBox
 
timelapse - Variable in class controller.World
 
toInt() - Method in enum controller.OccupantType
Convert an enum entry to an integer
toString() - Method in enum controller.OccupantType
Return the string representation of an entry.
total_fights - Static variable in class model.Carnivore
 
tpcX - Variable in class main.EcoTest
 
tpcY - Variable in class main.EcoTest
 
turn - Variable in class controller.World
 
type - Variable in class model.Animal
 
type - Variable in class view.InfoBox
 
typeChooser - Variable in class view.GenomeConfig
 

U

update() - Method in class model.Animal
This method has to be called by every species.
update() - Method in class model.Carnivore
Each turn, the carnivore looks for a herbivore and moves towards it.
update() - Method in class model.Herbivore
Each turn, the herbivore looks out for predators and flees if it finds any, or otherwise grazes, if need be moving to better feeding grounds
update() - Method in class model.Simulator
Updates the model each turn.
update() - Method in class view.Display
Update the display
update() - Method in class view.GenomeConfig
Update all the text fields.
update() - Method in class view.GUI
Update the GUI.
update_counter - Variable in class view.GUI
 
updateWorld() - Method in class model.Simulator
Send the current state of the simulation on to World
updateWorld() - Method in class view.GenomeConfig
Update the default genome values
updateWorld() - Method in class view.ProgramConfig
Extract all the settings from the text fields and update the world parameters
updateWorld() - Method in class view.SimulationConfig
Extract all the settings from the text fields and update the world parameters

V

valueOf(String) - Static method in enum controller.Humidity
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum controller.OccupantType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum model.Direction
Returns the enum constant of this type with the specified name.
values() - Static method in enum controller.Humidity
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum controller.OccupantType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum model.Direction
Returns an array containing the constants of this enum type, in the order they are declared.
verbose - Static variable in class main.EcologiaIO
 
verbose - Variable in class view.ProgramConfig
 
version - Static variable in class main.Ecologia
 
view - package view
view is responsible for displaying the current status of the simulation and provides a graphical user interface.

W

waterLabel - Variable in class view.SimulationConfig
 
waterTiles - Variable in class controller.World
 
width - Variable in class view.SimulationConfig
 
World - Class in controller
The World class acts as a communicator between the model and the view packages.
World() - Constructor for class controller.World
This class implements Singleton, therefore the constructor is private.
world - Static variable in class controller.World
 
writeFile(String) - Static method in class main.EcologiaIO
Write a message to file

X

x - Variable in class model.Animal
 
x - Variable in class model.MapField
 
xtile - Variable in class view.InfoBox
 

Y

y - Variable in class model.Animal
 
y - Variable in class model.MapField
 
ytile - Variable in class view.InfoBox
 
A B C D E F G H I L M N O P R S T U V W X Y 
Skip navigation links
Ecologia