A B C D E F G H I K L M N O P R S T U V W X Y Z

A

accelerationFactor - Variable in class appletbots.spreadout.SpreadOutApplet
The acceleration factor
accelerationFactorChanged(ChangeEvent) - Method in class appletbots.spreadout.SpreadOutApplet
The method invoked when the "Acceleration Factor" slider changes
accelerationFactorLabel - Variable in class appletbots.spreadout.SpreadOutApplet
The "Acceleration Factor" label
accelerationFactorSlider - Variable in class appletbots.spreadout.SpreadOutApplet
The "Acceleration Factor" slider
accelerationVectorColor - Variable in class appletbots.Agent
The color to paint the acceleration vector
add(Vector) - Method in class appletbots.geometry.Point
Returns the result of adding a vector to this point
add(Vector) - Method in class appletbots.geometry.Vector
Returns the result of adding this vector to another vector
addListener(WorldListener) - Method in class appletbots.World
Registers a listener for this world
addObject(WorldObject) - Method in class appletbots.World
Adds an object to a random position in the world.
addObject(WorldObject, Vector) - Method in class appletbots.World
Adds an object to a random position in the world with the given initial velocity
addObject(WorldObject, Point, Vector) - Method in class appletbots.World
Adds an object to the world at the given position with the given initial velocity
Agent - Class in appletbots
This class represents an Agent in a appletbots world.
Agent() - Constructor for class appletbots.Agent
Constructs a new agent with the following default values:
size = 5
sight = 60
maxSpeed = 5.0
maxAcceleration = 3.0
Agent(int, int, double, double) - Constructor for class appletbots.Agent
Constructs an agent with the given parameters
agentSight - Variable in class appletbots.balls.BallsApplet
The agent sight value
agentSight - Variable in class appletbots.directedballs.DirectedBallsApplet
The agent sight value
agentSight - Variable in class appletbots.friendly.FriendlyApplet
The agent sight value
agentSight - Variable in class appletbots.gatherers.GatherersApplet
The agent sight value
agentSight - Variable in class appletbots.spreadout.SpreadOutApplet
The agent sight value
agentSight - Variable in class appletbots.swarm.SwarmApplet
The agent sight value
agentSight - Variable in class appletbots.tag.TagApplet
The agent sight value
agentSightChanged(ChangeEvent) - Method in class appletbots.balls.BallsApplet
The method invoked when the "Agent Sight" slider changes
agentSightChanged(ChangeEvent) - Method in class appletbots.directedballs.DirectedBallsApplet
The method invoked when the "Agent Sight" slider changes
agentSightChanged(ChangeEvent) - Method in class appletbots.friendly.FriendlyApplet
The method invoked when the "Agent Sight" slider changes
agentSightChanged(ChangeEvent) - Method in class appletbots.gatherers.GatherersApplet
The method invoked when the "Agent Sight" slider changes
agentSightChanged(ChangeEvent) - Method in class appletbots.spreadout.SpreadOutApplet
The method invoked when the "Agent Sight" slider changes
agentSightChanged(ChangeEvent) - Method in class appletbots.swarm.SwarmApplet
The method invoked when the "Agent Sight" slider changes
agentSightChanged(ChangeEvent) - Method in class appletbots.tag.TagApplet
The method invoked when the "Agent Sight" slider changes
agentSightLabel - Variable in class appletbots.balls.BallsApplet
The "Agent Sight" label
agentSightLabel - Variable in class appletbots.directedballs.DirectedBallsApplet
The "Agent Sight" label
agentSightLabel - Variable in class appletbots.friendly.FriendlyApplet
The "Agent Sight" label
agentSightLabel - Variable in class appletbots.gatherers.GatherersApplet
The "Agent Sight" label
agentSightLabel - Variable in class appletbots.spreadout.SpreadOutApplet
The "Agent Sight" label
agentSightLabel - Variable in class appletbots.swarm.SwarmApplet
The "Agent Sight" label
agentSightLabel - Variable in class appletbots.tag.TagApplet
The "Agent Sight" label
agentSightSlider - Variable in class appletbots.balls.BallsApplet
The "Agent Sight" slider
agentSightSlider - Variable in class appletbots.directedballs.DirectedBallsApplet
The "Agent Sight" slider
agentSightSlider - Variable in class appletbots.friendly.FriendlyApplet
The "Agent Sight" slider
agentSightSlider - Variable in class appletbots.gatherers.GatherersApplet
The "Agent Sight" slider
agentSightSlider - Variable in class appletbots.spreadout.SpreadOutApplet
The "Agent Sight" slider
agentSightSlider - Variable in class appletbots.swarm.SwarmApplet
The "Agent Sight" slider
agentSightSlider - Variable in class appletbots.tag.TagApplet
The "Agent Sight" slider
Applet - Class in appletbots
This is an abstract applet class to run appletbots worlds.
Applet() - Constructor for class appletbots.Applet
Constructs the applet
appletbots - package appletbots
 
appletbots.balls - package appletbots.balls
 
appletbots.directedballs - package appletbots.directedballs
 
appletbots.friendly - package appletbots.friendly
 
appletbots.gatherers - package appletbots.gatherers
 
appletbots.geometry - package appletbots.geometry
 
appletbots.spreadout - package appletbots.spreadout
 
appletbots.swarm - package appletbots.swarm
 
appletbots.tag - package appletbots.tag
 
average(Collection) - Static method in class appletbots.geometry.Vector
Returns the average of a collection of vectors

B

Ball - Class in appletbots.balls
The class represents a ball in the appletbots world
Ball(int, Color) - Constructor for class appletbots.balls.Ball
Constructs a ball with the given size (radius) and color.
Ball(int, double, Color) - Constructor for class appletbots.balls.Ball
Constructs a ball with the given size (radius), mass, and color.
Ball(int, double, double, Color) - Constructor for class appletbots.balls.Ball
Constructs a ball with the given size (radius), maxSpeed, mass, and color.
ballMass - Variable in class appletbots.balls.BallsApplet
The ball mass
ballMass - Variable in class appletbots.directedballs.DirectedBallsApplet
The ball mass
ballMassChanged(ChangeEvent) - Method in class appletbots.balls.BallsApplet
The method invoked when the "Ball Mass" slider changes
ballMassChanged(ChangeEvent) - Method in class appletbots.directedballs.DirectedBallsApplet
The method invoked when the "Ball Mass" slider changes
ballMassLabel - Variable in class appletbots.balls.BallsApplet
The "Ball Mass" label
ballMassLabel - Variable in class appletbots.directedballs.DirectedBallsApplet
The "Ball Mass" label
ballMassSlider - Variable in class appletbots.balls.BallsApplet
The "Ball Mass" slider
ballMassSlider - Variable in class appletbots.directedballs.DirectedBallsApplet
The "Ball Mass" slider
BallsApplet - Class in appletbots.balls
An applet to run a KickerAgent simulation
BallsApplet() - Constructor for class appletbots.balls.BallsApplet
 
bottomRightTeam - Variable in class appletbots.gatherers.Gatherer
Whether or not the agent is on the team with the home base in the bottom right-hand corner of the world

C

CarriableObject - Class in appletbots
This class represents an object that can be picked up in the appletbots world.
CarriableObject(double, double, int, Color) - Constructor for class appletbots.CarriableObject
Creates a new CarriableObject with the given parameters
CarrierAgent - Class in appletbots
This class represents an agent that can pick up objects in the appletbots world.
CarrierAgent(int, int, int, double, double) - Constructor for class appletbots.CarrierAgent
Constructs an agent with the given parameters
chooseBall() - Method in class appletbots.balls.Kicker
Selects a ball at random from those visible
chooseFood(boolean) - Method in class appletbots.gatherers.Gatherer
Selects closest visible food not already in home base
chooseNeighborsByProximity - Variable in class appletbots.swarm.SwarmApplet
How to choose neighbors to follow
chooseNeighborsByProximityCheckBox - Variable in class appletbots.swarm.SwarmApplet
The "Choose Neighbors by Proximity" checkbox
chooseNeighborsByProximityClicked(ActionEvent) - Method in class appletbots.swarm.SwarmApplet
The method invoked when the user selects or deselects the "Choose Neighbors by Proximity" check box
clone() - Method in class appletbots.geometry.Point
Returns a copy of this point
clone() - Method in class appletbots.geometry.Vector
Returns a copy of this vector
collidedWith(WorldObject) - Method in class appletbots.tag.TagAgent
Informs the object that it has been in a collision
collidedWith(WorldObject) - Method in class appletbots.WorldObject
Informs the object that it has been in a collision
CollisionException - Exception in appletbots
This exception is thrown when two objects collide
CollisionException(WorldObject, WorldObject) - Constructor for exception appletbots.CollisionException
Creates a new CollisionException with the given collider and collidee
CollisionException(String) - Constructor for exception appletbots.CollisionException
Creates a new CollisionException with the given error message
CollisionException() - Constructor for exception appletbots.CollisionException
Creates a new CollisionException
color - Variable in class appletbots.VectorToDraw
The color with which to draw the vector
color - Variable in class appletbots.WorldObject
The object's color
compareTo(Object) - Method in class appletbots.geometry.Vector
Compares this vector to another based solely on magnitude.

D

data - Variable in class appletbots.ObjectViewer
The location and velocity data of the selected object
delay - Variable in class appletbots.World
The number of milliseconds to sleep in between time cycles
destroy() - Method in class appletbots.Applet
Stops any threads still running
DirectedBallsApplet - Class in appletbots.directedballs
An applet to run a DirectedKicker simulation
DirectedBallsApplet() - Constructor for class appletbots.directedballs.DirectedBallsApplet
 
DirectedKicker - Class in appletbots.directedballs
A directed kicker agent chooses a visible ball at random and tries to "kick" it so that the ball will move in the the bot's goal direction.
DirectedKicker(Vector, Color, int, int, double, double) - Constructor for class appletbots.directedballs.DirectedKicker
Constructs a new DirectedKicker with the given parameters
direction - Variable in class appletbots.directedballs.DirectedKicker
The goal direction
distance(Point) - Method in class appletbots.geometry.Point
Returns the distance between this point and another point
divide(double) - Method in class appletbots.geometry.Vector
Returns the result of dividinig this vector by a scalar number
dotProduct(Vector) - Method in class appletbots.geometry.Vector
Returns the dot product of this vector and another vector
drop(CarriableObject) - Method in class appletbots.CarrierAgent
Drops an object
dropFood() - Method in class appletbots.gatherers.Gatherer
Attempts to drop any carried food
dropItem(CarrierAgent, CarriableObject) - Method in class appletbots.World
Drops an item from a CarrierAgent

E

equals(Object) - Method in class appletbots.geometry.Point
Returns whether or not this point equals another point
equals(Object) - Method in class appletbots.geometry.Vector
Returns whether or not this vector equals another vector

F

Food - Class in appletbots.gatherers
The class represents a piece of food in the appletbots world
Food(int, double, double, Color) - Constructor for class appletbots.gatherers.Food
Constructs a food with the given size (radius), maxSpeed, mass, and color.
FriendlyAgent - Class in appletbots.friendly
A friendly agent looks at all the other agents he can see and randomly selects one to be his friend.
FriendlyAgent(int, int, double, double) - Constructor for class appletbots.friendly.FriendlyAgent
Constructs a new FriendlyAgent with the given parameters
FriendlyApplet - Class in appletbots.friendly
An applet to run a FriendlyAgent simulation
FriendlyApplet() - Constructor for class appletbots.friendly.FriendlyApplet
 

G

Gatherer - Class in appletbots.gatherers
A gatherer agent chooses the closest visible piece of food that is currently not being carried by anyone (and is not already in the agent's home base) and accelerates towards it.
Gatherer(int, boolean, int, int, double, double) - Constructor for class appletbots.gatherers.Gatherer
Constructs a new Gatherer with the given parameters
GatherersApplet - Class in appletbots.gatherers
An applet to run a Gatherer simulation
GatherersApplet() - Constructor for class appletbots.gatherers.GatherersApplet
 
GatherersWorld - Class in appletbots.gatherers
This class represents a world for Gatherers to collect food.
GatherersWorld(int, int, int) - Constructor for class appletbots.gatherers.GatherersWorld
Constructs a new gatherers world with the given dimensions
getAcceleration() - Method in class appletbots.Agent
Returns the agent's acceleration.
getAngleToVector(Vector) - Method in class appletbots.geometry.Vector
Returns the angle (in radians) from this vector to the given vector
getCarriedBy() - Method in class appletbots.CarriableObject
Returns the agent carrying the object
getClosestObjectOfType(Agent, Class) - Method in class appletbots.World
Returns the closest object of the given type to the given agent that is seen by the agent
getCollidee() - Method in exception appletbots.CollisionException
Returns the collidee.
getCollider() - Method in exception appletbots.CollisionException
Returns the collider.
getColor() - Method in class appletbots.WorldObject
Returns the object's color
getData(WorldObject) - Method in class appletbots.World
Returns the location and velocity data for the given object
getDelay() - Method in class appletbots.Applet
Returns the number of milliseconds between time cycles
getDelay() - Method in class appletbots.World
Returns the number of milliseconds to wait between time cycles
getDistanceBetweenObjects(WorldObject, WorldObject) - Method in class appletbots.World
Returns the distance between the two objects
getFriend() - Method in class appletbots.friendly.FriendlyAgent
Returns the selected friend
getInventory() - Method in class appletbots.CarrierAgent
Returns the contents of the agent's inventory
getLength() - Method in class appletbots.geometry.Vector
Returns the length of the vector
getLocation() - Method in class appletbots.WorldObjectData
Returns the location of the object.
getMass() - Method in class appletbots.WorldObject
Returns the object's mass
getMaxAcceleration() - Method in class appletbots.Agent
Returns the agent's maximum acceleration
getMaxSpeed() - Method in class appletbots.WorldObject
Returns the object's maximum speed
getNearestGatherer(boolean) - Method in class appletbots.gatherers.Gatherer
Returns the nearest visible gatherer
getNeighbors(Agent) - Method in class appletbots.World
Returns all the other agents that can be seen by the given agent, normally called by the given agent himself.
getObject() - Method in class appletbots.WorldObjectData
Returns the object
getObjectAt(int, int) - Method in class appletbots.World
Returns the object at the given x and y coordinates.
getPickUpDistance() - Method in class appletbots.CarrierAgent
Returns the distance the agents needs to be from an object to be able to pick it up
getRandom(double) - Static method in class appletbots.geometry.Vector
Returns a random vector of the given length
getRandomAcceleration() - Method in class appletbots.Agent
Returns a random acceleration vector
getRandomPoint() - Method in class appletbots.World
Returns a random point in the world
getRandomPoint(int) - Method in class appletbots.World
Returns a random point in the world within a given distance from the boundaries
getRunning() - Method in class appletbots.WorldThread
Returns whether or not this world thread is running or should continue to run
getSeenObjects(Agent) - Method in class appletbots.World
Returns all the objects that can be seen by the given agent, normally called by the given agent himself.
getSettingsPanel() - Method in class appletbots.Applet
Returns a blank settings panel.
getSettingsPanel() - Method in class appletbots.balls.BallsApplet
Returns a settings panel with "Number of Agents", "Number of Balls", "Agent Sight", and "Ball Mass" sliders
getSettingsPanel() - Method in class appletbots.directedballs.DirectedBallsApplet
Returns a settings panel with "Number of Red Agents", "Number of Blue Agents", "Number of Balls", "Agent Sight", and "Ball Mass" sliders
getSettingsPanel() - Method in class appletbots.friendly.FriendlyApplet
Returns a settings panel with "Number of Agents" and "Agent Sight" sliders
getSettingsPanel() - Method in class appletbots.gatherers.GatherersApplet
Returns a settings panel with "Number of Agents", "Number of Food", and "Agent Sight" sliders
getSettingsPanel() - Method in class appletbots.spreadout.SpreadOutApplet
Returns a settings panel with "Number of Agents" and "Agent Sight" sliders
getSettingsPanel() - Method in class appletbots.swarm.SwarmApplet
Returns a settings panel with "Number of Agents" and "Agent Sight" sliders
getSettingsPanel() - Method in class appletbots.tag.TagApplet
Returns a settings panel with "Number of Agents", "Number of 'It' Agents", and "Agent Sight" sliders
getShowAcceleration() - Method in class appletbots.Agent
Returns whether or not the agent's acceleration vector will be drawn
getShowSight() - Method in class appletbots.ObjectViewer
Returns whether or not the "Show Sight" check box is checked
getShowVelocity() - Method in class appletbots.Agent
Returns whether or not the agent's velocity vector will be drawn
getSight() - Method in class appletbots.Agent
Returns the distance this agent can see
getSize() - Method in class appletbots.WorldObject
Returns the object's radius
getTime() - Method in class appletbots.World
Returns the number of elapsed time cycles
getVectorsToDraw() - Method in class appletbots.Agent
Returns an array of vectors that should be drawn at the time this agent is painted
getVectorToObject(WorldObject, WorldObject) - Method in class appletbots.World
Returns a vector from the first object to the second object.
getVelocity(WorldObject) - Method in class appletbots.World
Returns the velocity for the given object
getVelocity() - Method in class appletbots.WorldObjectData
Returns the velocity of the object.
getWorldHeight() - Method in class appletbots.World
Returns the height (in pixels) of the world
getWorldWidth() - Method in class appletbots.World
Returns the width (in pixels) of the world

H

hasItem(CarriableObject) - Method in class appletbots.CarrierAgent
Returns whether or not the agent is carrying the given item
hasItems() - Method in class appletbots.CarrierAgent
Returns whether or not the agent is carrying any items

I

importObjects(World) - Method in class appletbots.World
Imports all the objects from another world into this one
incrementTime() - Method in class appletbots.gatherers.GatherersWorld
Called by the WorldThread.
incrementTime() - Method in class appletbots.World
Called by the WorldThread.
init() - Method in class appletbots.Applet
Initializes the applet
initializeWorld() - Method in class appletbots.Applet
Returns an initialized world with the desired agents and object added.
initializeWorld() - Method in class appletbots.balls.BallsApplet
Initializes the world with the appropriate number of balls and KickerAgents with the appropriate "agent sight" settings
initializeWorld() - Method in class appletbots.directedballs.DirectedBallsApplet
Initializes the world with the appropriate number of balls and DirectedKickerAgents with the appropriate "agent sight" settings
initializeWorld() - Method in class appletbots.friendly.FriendlyApplet
Initializes the world with the appropriate number of FriendlyAgents with the appropriate "agent sight" settings
initializeWorld() - Method in class appletbots.gatherers.GatherersApplet
Initializes the world with the appropriate amount of food and Gatherers with the appropriate "agent sight" settings
initializeWorld() - Method in class appletbots.spreadout.SpreadOutApplet
Initializes the world with the appropriate number of SpreadOutAgents with the appropriate "agent sight" settings
initializeWorld() - Method in class appletbots.swarm.SwarmApplet
Initializes the world with the appropriate number of SwarmAgents with the appropriate "agent sight" settings
initializeWorld() - Method in class appletbots.tag.TagApplet
Initializes the world with the appropriate number of TagAgents with the appropriate "agent sight" settings
inWorld(Point, int) - Method in class appletbots.World
Returns whether or not an object with the given size at the given location would be complete inside the boundaries of the world
isAligned(Vector) - Method in class appletbots.geometry.Vector
Returns whether or not this vector is aligned (pointing in same direction) to the given vector
isBottomRightTeam() - Method in class appletbots.gatherers.Gatherer
Returns whether or not the agent is on the team with the home base in the bottom right-hand corner of the world
isCarried() - Method in class appletbots.CarriableObject
Returns whether or not the object is being carried
isInHome(WorldObject, boolean) - Method in class appletbots.gatherers.GatherersWorld
Returns whether or not the given object is in the home base zone of team specified by the bottomRightTeam boolean parameter
isIt() - Method in class appletbots.tag.TagAgent
Returns whether or not this agent is "it"
isParallel(Vector) - Method in class appletbots.geometry.Vector
Returns whether or not this vector is parellel to the given vector
isRunning() - Method in class appletbots.World
Returns whether or not the world thread is running

K

Kicker - Class in appletbots.balls
A kicker agent chooses a visible ball at random and accelerates towards it.
Kicker(int, int, double, double) - Constructor for class appletbots.balls.Kicker
Constructs a new Kicker with the given parameters

L

listeners - Variable in class appletbots.World
Registered listeners

M

mass - Variable in class appletbots.WorldObject
The object's mass
MAX_ACCELERATION_FACTOR - Static variable in class appletbots.spreadout.SpreadOutApplet
The maximum acceleration factor allowed
MAX_ADD_OBJECT_ATTEMPTS - Static variable in class appletbots.World
The maximum number of attempts (1000) that should be made trying to add an object randomly to the world.
MAX_AGENT_SIGHT - Static variable in class appletbots.balls.BallsApplet
The maximum agent sight value allowed
MAX_AGENT_SIGHT - Static variable in class appletbots.directedballs.DirectedBallsApplet
The maximum agent sight value allowed
MAX_AGENT_SIGHT - Static variable in class appletbots.friendly.FriendlyApplet
The maximum agent sight value allowed
MAX_AGENT_SIGHT - Static variable in class appletbots.gatherers.GatherersApplet
The maximum agent sight value allowed
MAX_AGENT_SIGHT - Static variable in class appletbots.spreadout.SpreadOutApplet
The maximum agent sight value allowed
MAX_AGENT_SIGHT - Static variable in class appletbots.swarm.SwarmApplet
The maximum agent sight value allowed
MAX_AGENT_SIGHT - Static variable in class appletbots.tag.TagApplet
The maximum agent sight value allowed
MAX_BALL_MASS - Static variable in class appletbots.balls.BallsApplet
The maximum allowed ball mass
MAX_BALL_MASS - Static variable in class appletbots.directedballs.DirectedBallsApplet
The maximum allowed ball mass
MAX_BLUE_NUM_AGENTS - Static variable in class appletbots.directedballs.DirectedBallsApplet
The maximum number of blue agents allowed
MAX_BLUE_NUM_AGENTS - Static variable in class appletbots.gatherers.GatherersApplet
The maximum number of blue agents allowed
MAX_NUM_AGENTS - Static variable in class appletbots.balls.BallsApplet
The maximum number of agents allowed
MAX_NUM_AGENTS - Static variable in class appletbots.friendly.FriendlyApplet
The maximum number of agents allowed
MAX_NUM_AGENTS - Static variable in class appletbots.spreadout.SpreadOutApplet
The maximum number of agents allowed
MAX_NUM_AGENTS - Static variable in class appletbots.swarm.SwarmApplet
The maximum number of agents allowed
MAX_NUM_AGENTS - Static variable in class appletbots.tag.TagApplet
The maximum number of agents allowed
MAX_NUM_BALLS - Static variable in class appletbots.balls.BallsApplet
The maximum number of balls allowed
MAX_NUM_BALLS - Static variable in class appletbots.directedballs.DirectedBallsApplet
The maximum number of balls allowed
MAX_NUM_FOOD - Static variable in class appletbots.gatherers.GatherersApplet
The maximum number of food allowed
MAX_NUM_IT_AGENTS - Static variable in class appletbots.tag.TagApplet
The maximum number of "it" agents allowed
MAX_NUM_NEIGHBORS_TO_FOLLOW - Static variable in class appletbots.swarm.SwarmApplet
The maximum number of neighbors to follow allowed
MAX_RANDOMIZATION_FACTOR - Static variable in class appletbots.swarm.SwarmApplet
The maximum randomization factor allowed
MAX_RED_NUM_AGENTS - Static variable in class appletbots.directedballs.DirectedBallsApplet
The maximum number of red agents allowed
MAX_RED_NUM_AGENTS - Static variable in class appletbots.gatherers.GatherersApplet
The maximum number of red agents allowed
maxAcceleration - Variable in class appletbots.Agent
The maximum amount of acceleration for this agent
maxSpeed - Variable in class appletbots.WorldObject
The object's maximum speed
MILLISECONDS_BETWEEN_TIME_FIELD_UPDATES - Static variable in class appletbots.Applet
The number of milliseconds to wait between time field updates.
MIN_ACCELERATION_FACTOR - Static variable in class appletbots.spreadout.SpreadOutApplet
The minimum acceleration factor allowed
MIN_AGENT_SIGHT - Static variable in class appletbots.balls.BallsApplet
The minimum agent sight value allowed
MIN_AGENT_SIGHT - Static variable in class appletbots.directedballs.DirectedBallsApplet
The minimum agent sight value allowed
MIN_AGENT_SIGHT - Static variable in class appletbots.friendly.FriendlyApplet
The minimum agent sight value allowed
MIN_AGENT_SIGHT - Static variable in class appletbots.gatherers.GatherersApplet
The minimum agent sight value allowed
MIN_AGENT_SIGHT - Static variable in class appletbots.spreadout.SpreadOutApplet
The minimum agent sight value allowed
MIN_AGENT_SIGHT - Static variable in class appletbots.swarm.SwarmApplet
The minimum agent sight value allowed
MIN_AGENT_SIGHT - Static variable in class appletbots.tag.TagApplet
The minimum agent sight value allowed
MIN_BALL_MASS - Static variable in class appletbots.balls.BallsApplet
The minimum allowed ball mass
MIN_BALL_MASS - Static variable in class appletbots.directedballs.DirectedBallsApplet
The minimum allowed ball mass
MIN_BLUE_NUM_AGENTS - Static variable in class appletbots.directedballs.DirectedBallsApplet
The minimum number of blue agents allowed
MIN_BLUE_NUM_AGENTS - Static variable in class appletbots.gatherers.GatherersApplet
The minimum number of blue agents allowed
MIN_NUM_AGENTS - Static variable in class appletbots.balls.BallsApplet
The minimum number of agents allowed
MIN_NUM_AGENTS - Static variable in class appletbots.friendly.FriendlyApplet
The minimum number of agents allowed
MIN_NUM_AGENTS - Static variable in class appletbots.spreadout.SpreadOutApplet
The minimum number of agents allowed
MIN_NUM_AGENTS - Static variable in class appletbots.swarm.SwarmApplet
The minimum number of agents allowed
MIN_NUM_AGENTS - Static variable in class appletbots.tag.TagApplet
The minimum number of agents allowed
MIN_NUM_BALLS - Static variable in class appletbots.balls.BallsApplet
The minimum number of balls allowed
MIN_NUM_BALLS - Static variable in class appletbots.directedballs.DirectedBallsApplet
The minimum number of balls allowed
MIN_NUM_FOOD - Static variable in class appletbots.gatherers.GatherersApplet
The minimum number of food allowed
MIN_NUM_IT_AGENTS - Static variable in class appletbots.tag.TagApplet
The minimum number of "it" agents allowed
MIN_NUM_NEIGHBORS_TO_FOLLOW - Static variable in class appletbots.swarm.SwarmApplet
The minimum number of neighbors to follow allowed
MIN_RANDOMIZATION_FACTOR - Static variable in class appletbots.swarm.SwarmApplet
The minimum randomization factor allowed
MIN_RED_NUM_AGENTS - Static variable in class appletbots.directedballs.DirectedBallsApplet
The minimum number of red agents allowed
MIN_RED_NUM_AGENTS - Static variable in class appletbots.gatherers.GatherersApplet
The minimum number of red agents allowed
multiply(double) - Method in class appletbots.geometry.Vector
Returns the result of multiplying this vector times a scalar number

N

normalize() - Method in class appletbots.geometry.Vector
Creates a new vector aligned with this one with a length of 1
numAgents - Variable in class appletbots.balls.BallsApplet
The number of agents
numAgents - Variable in class appletbots.friendly.FriendlyApplet
The number of agents
numAgents - Variable in class appletbots.spreadout.SpreadOutApplet
The number of agents
numAgents - Variable in class appletbots.swarm.SwarmApplet
The number of agents
numAgents - Variable in class appletbots.tag.TagApplet
The number of agents
numAgentsChanged(ChangeEvent) - Method in class appletbots.balls.BallsApplet
The method invoked when the "Number of Agents" slider changes
numAgentsChanged(ChangeEvent) - Method in class appletbots.friendly.FriendlyApplet
The method invoked when the "Number of Agents" slider changes
numAgentsChanged(ChangeEvent) - Method in class appletbots.spreadout.SpreadOutApplet
The method invoked when the "Number of Agents" slider changes
numAgentsChanged(ChangeEvent) - Method in class appletbots.swarm.SwarmApplet
The method invoked when the "Number of Agents" slider changes
numAgentsChanged(ChangeEvent) - Method in class appletbots.tag.TagApplet
The method invoked when the "Number of Agents" slider changes
numAgentsLabel - Variable in class appletbots.balls.BallsApplet
The "Number of Agents" label
numAgentsLabel - Variable in class appletbots.friendly.FriendlyApplet
The "Number of Agents" label
numAgentsLabel - Variable in class appletbots.spreadout.SpreadOutApplet
The "Number of Agents" label
numAgentsLabel - Variable in class appletbots.swarm.SwarmApplet
The "Number of Agents" label
numAgentsLabel - Variable in class appletbots.tag.TagApplet
The "Number of Agents" label
numAgentsSlider - Variable in class appletbots.balls.BallsApplet
The "Number of Agents" slider
numAgentsSlider - Variable in class appletbots.friendly.FriendlyApplet
The "Number of Agents" slider
numAgentsSlider - Variable in class appletbots.spreadout.SpreadOutApplet
The "Number of Agents" slider
numAgentsSlider - Variable in class appletbots.swarm.SwarmApplet
The "Number of Agents" slider
numAgentsSlider - Variable in class appletbots.tag.TagApplet
The "Number of Agents" slider
numBalls - Variable in class appletbots.balls.BallsApplet
The number of balls
numBalls - Variable in class appletbots.directedballs.DirectedBallsApplet
The number of balls
numBallsChanged(ChangeEvent) - Method in class appletbots.balls.BallsApplet
The method invoked when the "Number of Balls" slider changes
numBallsChanged(ChangeEvent) - Method in class appletbots.directedballs.DirectedBallsApplet
The method invoked when the "Number of Balls" slider changes
numBallsLabel - Variable in class appletbots.balls.BallsApplet
The "Number of Balls" label
numBallsLabel - Variable in class appletbots.directedballs.DirectedBallsApplet
The "Number of Balls" label
numBallsSlider - Variable in class appletbots.balls.BallsApplet
The "Number of Balls" slider
numBallsSlider - Variable in class appletbots.directedballs.DirectedBallsApplet
The "Number of Balls" slider
numBlueAgents - Variable in class appletbots.directedballs.DirectedBallsApplet
The number of blue agents
numBlueAgents - Variable in class appletbots.gatherers.GatherersApplet
The number of blue agents
numBlueAgentsChanged(ChangeEvent) - Method in class appletbots.directedballs.DirectedBallsApplet
The method invoked when the "Number of Blue Agents" slider changes
numBlueAgentsChanged(ChangeEvent) - Method in class appletbots.gatherers.GatherersApplet
The method invoked when the "Number of Blue Agents" slider changes
numBlueAgentsLabel - Variable in class appletbots.directedballs.DirectedBallsApplet
The "Number of Blue Agents" label
numBlueAgentsLabel - Variable in class appletbots.gatherers.GatherersApplet
The "Number of Blue Agents" label
numBlueAgentsSlider - Variable in class appletbots.directedballs.DirectedBallsApplet
The "Number of Blue Agents" slider
numBlueAgentsSlider - Variable in class appletbots.gatherers.GatherersApplet
The "Number of Blue Agents" slider
numFood - Variable in class appletbots.gatherers.GatherersApplet
The number of food
numFoodChanged(ChangeEvent) - Method in class appletbots.gatherers.GatherersApplet
The method invoked when the "Number of Food" slider changes
numFoodLabel - Variable in class appletbots.gatherers.GatherersApplet
The "Number of Food" label
numFoodSlider - Variable in class appletbots.gatherers.GatherersApplet
The "Number of Food" slider
numItAgents - Variable in class appletbots.tag.TagApplet
The number of "it" agents
numItAgentsChanged(ChangeEvent) - Method in class appletbots.tag.TagApplet
The method invoked when the "Number of 'It' Agents" slider changes
numItAgentsLabel - Variable in class appletbots.tag.TagApplet
The "Number of 'It' Agents" label
numItAgentsSlider - Variable in class appletbots.tag.TagApplet
The "Number of 'It' Agents" slider
numNeighborsToFollow - Variable in class appletbots.swarm.SwarmApplet
The number of neighbors to follow
numNeighborsToFollowChanged(ChangeEvent) - Method in class appletbots.swarm.SwarmApplet
The method invoked when the "Number of Neighbors to Follow" slider changes
numNeighborsToFollowLabel - Variable in class appletbots.swarm.SwarmApplet
The "Number of Neighbors to Follow" label
numNeighborsToFollowSlider - Variable in class appletbots.swarm.SwarmApplet
The "Number of Neighbors to Follow" slider
numRedAgents - Variable in class appletbots.directedballs.DirectedBallsApplet
The number of red agents
numRedAgents - Variable in class appletbots.gatherers.GatherersApplet
The number of red agents
numRedAgentsChanged(ChangeEvent) - Method in class appletbots.directedballs.DirectedBallsApplet
The method invoked when the "Number of Red Agents" slider changes
numRedAgentsChanged(ChangeEvent) - Method in class appletbots.gatherers.GatherersApplet
The method invoked when the "Number of Red Agents" slider changes
numRedAgentsLabel - Variable in class appletbots.directedballs.DirectedBallsApplet
The "Number of Red Agents" label
numRedAgentsLabel - Variable in class appletbots.gatherers.GatherersApplet
The "Number of Red Agents" label
numRedAgentsSlider - Variable in class appletbots.directedballs.DirectedBallsApplet
The "Number of Red Agents" slider
numRedAgentsSlider - Variable in class appletbots.gatherers.GatherersApplet
The "Number of Red Agents" slider

O

objectDistanceComparator(WorldObject) - Method in class appletbots.World
Returns a comparator to sort other objects by their distance to the given object
objectsTable - Variable in class appletbots.World
A hashtable mapping each object to its location and velocity datum
objectViewer - Variable in class appletbots.Applet
The object viewer panel
ObjectViewer - Class in appletbots
This class represents an object viewer panel to be used with the appletbots applet.
ObjectViewer() - Constructor for class appletbots.ObjectViewer
Creates a new object viewer panel
observeWorld() - Method in class appletbots.Agent
The method invoked to allow the agent to observe the world and optionally modify his acceleration to try to achieve a goal.
observeWorld() - Method in class appletbots.balls.Kicker
Observes the world, and follows the Kicker Algorithm.
observeWorld() - Method in class appletbots.directedballs.DirectedKicker
Observes the world, and follows the Directed Kicker Algorithm.
observeWorld() - Method in class appletbots.friendly.FriendlyAgent
Observes the world, and follows the Friendly Agent Algorithm.
observeWorld() - Method in class appletbots.gatherers.Gatherer
Observes the world, and follows the Gatherer Algorithm.
observeWorld() - Method in class appletbots.RandomAgent
Ignores any world stimuli and sets the acceleration randomly.
observeWorld() - Method in class appletbots.spreadout.SpreadOutAgent
Observes the world, and follows the Spread-Out Agent Algorithm.
observeWorld() - Method in class appletbots.swarm.SwarmAgent
Observes the world, and follows the Swarm Agent Algorithm.
observeWorld() - Method in class appletbots.tag.TagAgent
Observes the world, and follows the Tag Agent Algorithm.
OutOfThisWorldException - Exception in appletbots
This exception is thrown when an object (or part of an object) leaves the boundaries of the world.
OutOfThisWorldException(String) - Constructor for exception appletbots.OutOfThisWorldException
Creates a new OutOfTheWorldException with the given message
OutOfThisWorldException() - Constructor for exception appletbots.OutOfThisWorldException
Creates a new OutOfThisWorldException

P

paint(Graphics) - Method in class appletbots.World
Paints the world (invoked by Swing)
paintObject(WorldObject, Graphics) - Method in class appletbots.World
Paints an individual object in the world
paintObjects(Graphics) - Method in class appletbots.gatherers.GatherersWorld
Paints the objects in the world
paintObjects(Graphics) - Method in class appletbots.World
Paints the objects in the world
pickUp(CarriableObject) - Method in class appletbots.CarrierAgent
Picks up an object
pickUp(CarriableObject) - Method in class appletbots.gatherers.Gatherer
Picks up an object
Point - Class in appletbots.geometry
This class represents a point in two-dimensional space
Point(double, double) - Constructor for class appletbots.geometry.Point
Creates a new point with the given coordinates

R

RandomAgent - Class in appletbots
This is an agent that doesn't really react to stimuli in the world, it simply accelerates in a random direction.
RandomAgent() - Constructor for class appletbots.RandomAgent
 
randomizationFactor - Variable in class appletbots.swarm.SwarmApplet
The randomization factor
randomizationFactorChanged(ChangeEvent) - Method in class appletbots.swarm.SwarmApplet
The method invoked when the "Randomization Factor" slider changes
randomizationFactorLabel - Variable in class appletbots.swarm.SwarmApplet
The "Randomization Factor" label
randomizationFactorSlider - Variable in class appletbots.swarm.SwarmApplet
The "Randomization Factor" slider
removeObject(WorldObject) - Method in class appletbots.World
Removes an object from the world
resetClicked(ActionEvent) - Method in class appletbots.Applet
The method invoked when the reset button is clicked.
rotate(double) - Method in class appletbots.geometry.Vector
Returns the result of rotating this vector by theta radians
run() - Method in class appletbots.TimeUpdaterThread
Simply calls applet.updateTimeField() and sleeps for applet.getDelay() milliseconds
run() - Method in class appletbots.WorldThread
Calls world.incrementTime() and sleeps for world.getDelay()

S

selectedObject - Variable in class appletbots.World
The object that is currently selected
selectedObjectColor - Variable in class appletbots.World
The color to paint the object that is selected
selectedSight - Variable in class appletbots.World
The color in which to paint the "sight circle" of the selected object
selectObject(WorldObject) - Method in class appletbots.World
Selects the given object
selectObjectAt(int, int) - Method in class appletbots.World
Selects the object at the given location
setAcceleration(Vector) - Method in class appletbots.Agent
Sets the agent's acceleration vector.
setCarriedBy(CarrierAgent) - Method in class appletbots.CarriableObject
Informs the object about who is carrying it
setData(WorldObjectData) - Method in class appletbots.ObjectViewer
Sets a new selected object by passing the object's location and velocity data
setDelay(int) - Method in class appletbots.World
Sets the number of milliseconds to wait between time cycles
setIt(boolean) - Method in class appletbots.tag.TagAgent
Sets whether or not this agent is "it"
setLength(double) - Method in class appletbots.geometry.Vector
Creates a new vector aligned with this one with the given length
setLocation(Point) - Method in class appletbots.WorldObjectData
Sets the location of the object
setRunning(boolean) - Method in class appletbots.WorldThread
Sets whether or not this world thread is running or should continue to run
setSelectedObjectColor(Color) - Method in class appletbots.World
Sets the color to paint the selected object
setSelectedSight(Color) - Method in class appletbots.World
Sets the color with which to paint the selected object's "sight circle"
setShowAcceleration(boolean) - Method in class appletbots.Agent
Sets a flag to let the agent know whether or not to draw his acceleration vector
setShowVelocity(boolean) - Method in class appletbots.Agent
Sets a flag to let the agent know whether or not to draw his velocity vector
settingsPanel - Variable in class appletbots.Applet
The settings panel
setVelocity(Vector) - Method in class appletbots.WorldObjectData
Sets the velocity of the object
setWorld(World) - Method in class appletbots.Agent
Tells the agent what world he is in.
showAccelerationCheckBox - Variable in class appletbots.ObjectViewer
The "Show Acceleration" check box
showAccelerationClicked(ActionEvent) - Method in class appletbots.ObjectViewer
The method invoked when the user selects or deselects the "Show Acceleration" check box
showSightCheckBox - Variable in class appletbots.ObjectViewer
The "Show Sight" check box
showVelocityCheckBox - Variable in class appletbots.ObjectViewer
The "Show Velocity" check box
showVelocityClicked(ActionEvent) - Method in class appletbots.ObjectViewer
The method invoked when the user selects or deselects the "Show Velocity" check box
sight - Variable in class appletbots.Agent
The distance the agent can see
size - Variable in class appletbots.WorldObject
The object's radius
speedChanged(ChangeEvent) - Method in class appletbots.Applet
The method invoked when the speed slider is clicked.
SpreadOutAgent - Class in appletbots.spreadout
A spread-out agent looks at its neighbors, and accelerates to a position to maximize the distance to his neighbors.
SpreadOutAgent(int, int, double, double, double, boolean) - Constructor for class appletbots.spreadout.SpreadOutAgent
Constructs a spread-out agent with the given parameters
SpreadOutApplet - Class in appletbots.spreadout
An applet to run a SpreadOutAgent simulation
SpreadOutApplet() - Constructor for class appletbots.spreadout.SpreadOutApplet
 
startClicked(ActionEvent) - Method in class appletbots.Applet
The method invoked when the start button is clicked.
startThread() - Method in class appletbots.World
Starts the world thread
stationaryFood - Variable in class appletbots.gatherers.GatherersApplet
Whether or not the food is stationary
stationaryFoodCheckBox - Variable in class appletbots.gatherers.GatherersApplet
The "Stationary Food" checkbox
stationaryFoodClicked(ActionEvent) - Method in class appletbots.gatherers.GatherersApplet
The method invoked when the user selects or deselects the "Stationary Food" check box
stopClicked(ActionEvent) - Method in class appletbots.Applet
The method invoked when the stop button is clicked.
stopThread() - Method in class appletbots.World
Stops the world thread
stopWhenNoNeighbors - Variable in class appletbots.spreadout.SpreadOutApplet
Whether or not to stop when there are no visible neighbors
stopWhenNoNeighborsCheckBox - Variable in class appletbots.spreadout.SpreadOutApplet
The "Stop When No Visible Neighbors" checkbox
stopWhenNoNeighborsClicked(ActionEvent) - Method in class appletbots.spreadout.SpreadOutApplet
The method invoked when the user selects or deselects the "Choose Neighbors by Proximity" check box
subtract(Vector) - Method in class appletbots.geometry.Vector
Returns the result of subtracting another vector from this vector
SwarmAgent - Class in appletbots.swarm
A swarm agent looks at its neighbors, chooses a certain number of them, and accelerates in the direction of their average velocity, with a part of its acceleration being randomized.
SwarmAgent(int, int, double, double, int, boolean, double) - Constructor for class appletbots.swarm.SwarmAgent
Constructs a swarm agent with the given parameters
SwarmApplet - Class in appletbots.swarm
An applet to run a SwarmAgent simulation
SwarmApplet() - Constructor for class appletbots.swarm.SwarmApplet
 

T

TagAgent - Class in appletbots.tag
If a tag agent is "it", he will try to touch whichever non-"it" agent is closest to him.
TagAgent(int, int, double, double) - Constructor for class appletbots.tag.TagAgent
Constructs a new TagAgent with the given parameters
TagApplet - Class in appletbots.tag
An applet to run a TagAgent simulation
TagApplet() - Constructor for class appletbots.tag.TagApplet
 
thread - Variable in class appletbots.World
The thread driving the world
threadStarted() - Method in interface appletbots.WorldListener
 
threadStopped() - Method in interface appletbots.WorldListener
 
time - Variable in class appletbots.World
The number of time cycles that have passed
timeCarried - Variable in class appletbots.gatherers.Gatherer
The amount of time the gatherer has been carrying a piece of food
timeIncremented(long) - Method in interface appletbots.WorldListener
 
timeToRest - Variable in class appletbots.gatherers.Gatherer
The the amount of time needed to rest
TimeUpdaterThread - Class in appletbots
This thread is used by the appletbots applet to update its components after each time cycle
TimeUpdaterThread(Applet) - Constructor for class appletbots.TimeUpdaterThread
Constructs a new TimeUpdaterThread for the given applet
toString() - Method in class appletbots.geometry.Point
Returns a string representation of this point
toString() - Method in class appletbots.geometry.Vector
Returns a string representation of this vector
towardsHome - Variable in class appletbots.gatherers.Gatherer
The vector pointing in the direction of the agent's home base

U

update() - Method in class appletbots.ObjectViewer
Updates the panel
updateTimeField() - Method in class appletbots.Applet
Updates the time field if the time field has not been updated in at least MILLISECONDS_BETWEEN_TIME_FIELD_UPDATES milliseconds.

V

Vector - Class in appletbots.geometry
This class represents an immutable two-dimensional vector
Vector(double, double) - Constructor for class appletbots.geometry.Vector
Creates a new vector with the given x and y components
Vector(Point, Point) - Constructor for class appletbots.geometry.Vector
Constructs a new vector from one point to another
vector - Variable in class appletbots.VectorToDraw
The vector to draw
VectorToDraw - Class in appletbots
This class represents a vector to be drawn when painting the world.
VectorToDraw(Vector, Color) - Constructor for class appletbots.VectorToDraw
Creates a new vector-to-draw object with the given parameters
velocityVectorColor - Variable in class appletbots.Agent
The color to paint the velocity vector

W

world - Variable in class appletbots.Agent
The world in which the agent exists
World - Class in appletbots
This class represents a world in which multiple agents can exist and interact with each other or with objects in the world.
World(int, int) - Constructor for class appletbots.World
Constructs a new world with the given dimensions
worldClicked(MouseEvent) - Method in class appletbots.Applet
The method invoked when the user clicks on the world.
WorldListener - Interface in appletbots
A world listener
WorldObject - Class in appletbots
This is an abstract class representing an object in the world
WorldObject(double, double, int, Color) - Constructor for class appletbots.WorldObject
Creates a new WorldObject with the given parameters
WorldObjectData - Class in appletbots
This object contains the location and velocity values for an object in the world
WorldObjectData(Point, Vector, WorldObject) - Constructor for class appletbots.WorldObjectData
Constructs a new WorldObjectData with the given location and velocity values for the given object
WorldThread - Class in appletbots
This is the main thread that drives the changes in the world.
WorldThread(World) - Constructor for class appletbots.WorldThread
Creates a new world thread to run on the given world

X

x - Variable in class appletbots.geometry.Point
The x-coordinate
x - Variable in class appletbots.geometry.Vector
The x-component of the vector
X_AXIS - Static variable in class appletbots.geometry.Vector
A normalized vector in the direction of the x-axis

Y

y - Variable in class appletbots.geometry.Point
The y-coordinate
y - Variable in class appletbots.geometry.Vector
The y-component of the vector
Y_AXIS - Static variable in class appletbots.geometry.Vector
A normalized vector in the direction of the y-axis

Z

ZERO - Static variable in class appletbots.geometry.Vector
A zero vector

A B C D E F G H I K L M N O P R S T U V W X Y Z