Skip navigation links
A B D E G H I L M N O R S W X Y 

A

adj - Variable in class Animal
Trig result used for laying out the hexagonal neighbourhood.
Agent - Interface in <Unnamed>
Basic interface for spatial agents.
agents - Variable in class Animal
Reference to the agent list set up in Model.
agents - Variable in class Model
List of all agents.
Animal - Class in <Unnamed>
Implements basic spatial elements of an agent.
Animal(Environment, ArrayList<Agent>) - Constructor for class Animal
Constructor.

B

buildAgents() - Method in class Model
Makes the agents.
buildWorld() - Method in class Model
Makes the world with initial values.

D

data - Variable in class Environment
Raster dataset for environment.

E

Environment - Class in <Unnamed>
Holds environmental data as a raster for the model.
Environment(int, int) - Constructor for class Environment
Constructor.

G

getData() - Method in class Environment
Gets the data array.
getDataValue(int, int) - Method in class Environment
Accessor method for a single data point.
getHeight() - Method in class Environment
Gets the height, as one might expect.
getNeighbourhood() - Method in class Animal
Gets the hexagonal neighbourhood around the current location.
getNeighbourhood(int, int) - Method in class Animal
Gets a hexagonal neighbourhood around an arbitrary location.
getWidth() - Method in class Environment
Gets the width, as one might expect.
getX() - Method in interface Agent
Should return spatial location x coordinate.
getX() - Method in class Animal
Gets the x coordinate.
getY() - Method in interface Agent
Should return spatial location y coordinate.
getY() - Method in class Animal
Gets the y coordinate.

H

height - Variable in class Environment
Height of environment.
height - Variable in class Model
Default environment height.

I

interactWithEnvironment() - Method in class Nibbler
Checks the value in the environment at the location, and 'nibbles' it down a bit if there is values to nibble.

L

locationSuitable(int, int) - Method in class Nibbler
Checks a prospective location for suitability.

M

main(String[]) - Static method in class Model
Just calls the constructor.
Model - Class in <Unnamed>
Main class for an agent-based model.
Model() - Constructor for class Model
Model constructor.
move() - Method in class Nibbler
Moves the nibbler from its current location to a random position one step away.

N

neighbourhoodRadius - Variable in class Animal
Neighbourhood 'radius'.
Nibbler - Class in <Unnamed>
Nibbler agent demonstrates how to implement behaviour, check and alter an environment, and communicate with other agents using method calls.
Nibbler(Environment, ArrayList<Agent>) - Constructor for class Nibbler
Constructor.
numberOfAgents - Variable in class Model
Number of agents in model.
numberOfIterations - Variable in class Model
Number of timesteps in model.

O

opp - Variable in class Animal
Trig result used for laying out the hexagonal neighbourhood.

R

run() - Method in interface Agent
Should be called to enact agent behaviour.
run() - Method in class Animal
Empty run method.
run() - Method in class Nibbler
Moves the nibbler from its current location to a random position one step away.
runAgents() - Method in class Model
Runs the agents.

S

setData(double[][]) - Method in class Environment
Sets the data array.
setDataValue(int, int, double) - Method in class Environment
Mutator method for a single data point.
stoppingCriteriaMet() - Method in class Model
Checks stopping criteria.

W

width - Variable in class Environment
Width of environment.
width - Variable in class Model
Default environment width.
world - Variable in class Animal
Reference to the environment set up in Model.
world - Variable in class Model
Environment to store raster data.

X

x - Variable in class Animal
Spatial x coordinate.

Y

y - Variable in class Animal
Spatial y coordinate.
A B D E G H I L M N O R S W X Y 
Skip navigation links