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

A

AG1() - Static method in class SongPhrase
 
AG2() - Static method in class SongPhrase
 
Agent - class Agent.
Class that represents a general Agent.
Agent(ModelDisplay, Simulation) - Constructor for class Agent
Constructor that takes the model display (the original position will be randomly assigned)
Agent(int, int, ModelDisplay, Simulation) - Constructor for class Agent
Constructor that takes the x and y and a model display to draw it on
AgentNode - class AgentNode.
Class to implement a linked list of Turtle-like characters.
AgentNode() - Constructor for class AgentNode
Two constructors: One for creating the head of the list , with no agent
AgentNode(Turtle) - Constructor for class AgentNode
One constructor for creating a node with an agent
AmazingGraceSong - class AmazingGraceSong.
 
AmazingGraceSong() - Constructor for class AmazingGraceSong
 
AmazingGraceSong2 - class AmazingGraceSong2.
 
AmazingGraceSong2() - Constructor for class AmazingGraceSong2
 
AmazingGraceSongElement - class AmazingGraceSongElement.
 
AmazingGraceSongElement() - Constructor for class AmazingGraceSongElement
 
AmazingGraceSongElement2 - class AmazingGraceSongElement2.
 
AmazingGraceSongElement2() - Constructor for class AmazingGraceSongElement2
 
AnimatedPositionedScene - class AnimatedPositionedScene.
 
AnimatedPositionedScene() - Constructor for class AnimatedPositionedScene
 
AnimationRunner - class AnimationRunner.
 
AnimationRunner() - Constructor for class AnimationRunner
 
act(int) - Method in class Agent
act() with a timestep
act() - Method in class Agent
Method to act during a time step Default is to pick a random direction and move some random amount up to top speed
act(int) - Method in class BirdAgent
act(t) For first 20 steps, walk toward the egg, +/- 30 degrees.
act(int) - Method in class CrowdAgent
act(t) For first 10 steps, walk around, Then walk AWAY from the bigger, mighter dog "Hunter", and coninue wandering around.
act() - Method in class Deer
Method to act during a time step pick a random direction and move some random amount up to top speed
act() - Method in class DeerAgent
How a DeerAgent acts
act(int) - Method in class EggAgent
To act, just drop the Egg for 15 steps, then be the eyes opened for five steps, then be the eyes switching back-and-forth
act() - Method in class HungryWolf
Method to act during a time step pick a random direction and move some random amount up to top speed
act(int) - Method in class NBDAgent
To act, just drop the Egg for 15 steps, then be the eyes opened for five steps, then be the eyes switching back-and-forth
act() - Method in class PersonAgent
How a Person acts
act() - Method in class PoliticalAgent
How a PoliticalAgent acts
act() - Method in class Wolf
Method to act during a time step pick a random direction and move some random amount up to top speed
act() - Method in class WolfAgent
Method to act during a time step pick a random direction and move some random amount up to top speed
actionPerformed(ActionEvent) - Method in class PictureExplorer
Controls the zoom menu bar
actionPerformed(ActionEvent) - Method in class SoundExplorer
Method to handle an action event
actionPerformed(ActionEvent) - Method in class SoundView
 
add(CollectableNode) - Method in class CollectableNode
Add the input node after the last node in this list.
add(DrawableNode) - Method in class DrawableNode
Add the input node after the last node in this list.
add(SimEvent) - Method in class EventQueue
Add the event.
add(LLNode) - Method in class LLNode
Add the input node after the last node in this list.
add(LayeredSceneElement) - Method in class LayeredSceneElement
Add the input node after the last node in this list.
add(int) - Method in class Resource
Add more produced resource.
add(SceneElement) - Method in class SceneElement
Add the input node after the last node in this list.
add(Agent) - Method in class Simulation
Add this actor to the agents list
add(SoundElement) - Method in class SoundElement
Add the input node after the last node in this list.
addChild(DrawableNode) - Method in class Branch
Method to add nodes to children
addChild(CollectableNode) - Method in class SoundBranch
Method to add nodes to children
addEvent(SimEvent) - Method in class DESimulation
addEvent -- add an event to the queue
addEvent(SimEvent) - Method in class DSSimulation
addEvent -- add an event to the queue
addFrame(Picture) - Method in class FrameSequence
Method to add a picture to the frame sequence
addHorizontalLines() - Method in class Picture
Method to add a horizontal line every 5 pixels in the current picture
addLine(int, int, int, int) - Method in class Pen
Method to add a line segment if the pen is down
addLines() - Method in class Picture
Method to add vertical and horizontal lines to the current picture
addMessage(String, int, int) - Method in class SimplePicture
Method to draw a message as a string on the buffered image
addModel(Object) - Method in interface ModelDisplay
method to add the model to the world
addModel(Object) - Method in class TurtleWorld
Method to add a model to this model displayer
addModel(Object) - Method in class World
Method to add a model to this model displayer
addPhrase1(double, int) - Method in class AmazingGraceSongElement
 
addPhrase2(double, int) - Method in class AmazingGraceSongElement
 
addToList(DEAgent) - Method in class Resource
addToList -- add this agent to this resource's waiting list.
addVerticalLines() - Method in class Picture
Method to add a vertical line every 5 pixels in the current picture
agents - Variable in class Simulation
Linked lists for tracking all agents in the simulationh
alaw2linear(byte) - Static method in class TConversionTool
 
allDeer - Static variable in class DeerAgent
Collection of all Deer
allWolves - Static variable in class WolfAgent
Collection of all Wolves
amount - Variable in class Resource
Amount of resource available
amountAvailable() - Method in class Resource
Amount available
amountOrdered - Variable in class Distributor
AmountOrdered so-far
append(Sound) - Method in class Sound
Return this sound appended with the input sound
asArray() - Method in class SimpleSound
Method to return the byte array

B

BirdAgent - class BirdAgent.
BirdAgents use the bird character JPEGs
BirdAgent(ModelDisplay, Simulation) - Constructor for class BirdAgent
Constructor that takes the model display (the original position will be randomly assigned)
BirdAgent(int, int, ModelDisplay, Simulation) - Constructor for class BirdAgent
Constructor that takes the x and y and a model display to draw it on
BirdSimulation - class BirdSimulation.
BirdSimulation A flock of 10 birds investigate a mysterious egg, which suddenly shows itself to be a monster!
BirdSimulation() - Constructor for class BirdSimulation
 
BlueScreenNode - class BlueScreenNode.
 
BlueScreenNode(Picture) - Constructor for class BlueScreenNode
 
Branch - class Branch.
 
Branch() - Constructor for class Branch
 
backward(int) - Method in class SimpleTurtle
Method to go backward a given number of pixels
bird1 - Static variable in class BirdAgent
 
bird2 - Static variable in class BirdAgent
 
bird3 - Static variable in class BirdAgent
 
bird4 - Static variable in class BirdAgent
 
bird5 - Static variable in class BirdAgent
 
bird6 - Static variable in class BirdAgent
 
blank - Static variable in class NBDAgent
 
blendPictures() - Static method in class Picture
Method to blend pictures of Katie and Jenny
blocked - Variable in class DEAgent
For support of resources
blocked - Variable in class DSAgent
For support of resources
blocked - Variable in class Resource
Queue of who's waiting for resource
blockingPlay() - Method in class SimpleSound
Plays the sound, then sleeps for how long the sound SHOULD last.
blockingPlay() - Method in class SoundElement
 
blockingPlayAtRateDur(double, double) - Method in class SimpleSound
Calls playAtRateInRange((float)rate, 0, (int)durInFrames-1, true) .
blockingPlayAtRateInRange(float, int, int) - Method in class SimpleSound
Calls playAtRateInRange(rate, startFrame, endFrame, true) .
blockingPlayOld() - Method in class SimpleSound
Creates a new Playback thread, starts it, then waits for the entire sound to finish playing before it returns.
blueParty - Static variable in class PoliticalAgent
 
bluescreen(Picture, int, int) - Method in class Picture
Method to do chromakey assuming blue background for background at a given point.
blur(int) - Method in class Picture
Method to blur the pixels
blurCopy(int) - Method in class Picture
Method to blur the pixels using a copy of the original as the source for the average
bytesToInt16(byte[], int, boolean) - Static method in class TConversionTool
Converts 2 successive bytes starting at byteOffset in buffer to a signed integer sample with 16bit range.
bytesToInt24(byte[], int, boolean) - Static method in class TConversionTool
Converts 3 successive bytes starting at byteOffset in buffer to a signed integer sample with 24bit range.
bytesToInt32(byte[], int, boolean) - Static method in class TConversionTool
Converts a 4 successive bytes starting at byteOffset in buffer to a signed 32bit integer sample.

C

CatchAFly - class CatchAFly.
 
CatchAFly() - Constructor for class CatchAFly
 
CharNode - class CharNode.
 
CharNode(Picture) - Constructor for class CharNode
 
CollectableNode - class CollectableNode.
Stuff that all nodes and branches in the sound tree know.
CollectableNode() - Constructor for class CollectableNode
Constructor for CollectableNode just sets next to null
ColorChooser - class ColorChooser.
A class to make working with a color chooser easier for students.
ColorChooser() - Constructor for class ColorChooser
 
ColorSquares - class ColorSquares.
 
ColorSquares() - Constructor for class ColorSquares
Constructor that takes no arguments
ComposedImage - class ComposedImage.
 
ComposedImage() - Constructor for class ComposedImage
 
CrowdAgent - class CrowdAgent.
 
CrowdAgent(ModelDisplay, Simulation) - Constructor for class CrowdAgent
Constructor that takes the model display (the original position will be randomly assigned)
CrowdAgent(int, int, ModelDisplay, Simulation) - Constructor for class CrowdAgent
Constructor that takes the x and y and a model display to draw it on
CrowdSimulation - class CrowdSimulation.
BirdSimulation A flock of 10 birds investigate a mysterious egg, which suddenly shows itself to be a monster!
CrowdSimulation() - Constructor for class CrowdSimulation
 
canvas - Variable in class MyTurtleAnimation
 
changeToBaseOne() - Method in class PictureExplorer
Changes the number system to start at one
checkScroll() - Method in class PictureExplorer
Method to check that the current position is in the viewing area and if not scroll to center the current position if possible
checkScroll() - Method in class SoundExplorer
Method to check that the current position is in the viewing area and if not scroll to center the current position if possible
children - Variable in class Branch
 
children - Variable in class SoundBranch
 
chromakey(Picture) - Method in class Picture
Method to do chromakey using a blue background
chromakey(Picture, Color, int, int, int) - Method in class Picture
Method to do chromakey using an input color for background at a given point.
chromakeyBlue(Picture) - Method in class Picture
Method to do chromakey using a blue background
chromakeyRed(Picture) - Method in class Picture
Method to do chromakey using a red background
clearBackground() - Method in interface ModelDisplay
Method to clear the background
clearBackground() - Method in class World
Method to clear the background picture
clearBlue() - Method in class Picture
Method to clear the blue from the picture (set the blue to 0 for all pixels)
clearLines() - Method in class Pen
Method to clear all the lines stored for this pen
close() - Method in class PictureFrame
Close the window
close() - Method in class SimplePicture
Close the picture window.
closeFile() - Method in class Simulation
close the file and clear the output stream
collect() - Method in class CollectableNode
Collect all the sounds from me on
collect() - Method in class ScaleBranch
Collect all the sound from our children, then collect from next.
collect() - Method in class SongNode
Collect all nodes in this SongPart and return the composite Phrase
collect() - Method in class SongPart
Collect parts of this SongPart
collect() - Method in class SoundBranch
Collect all the sound from our children, then collect from next.
collect() - Method in class SoundElement
Collect all the sounds from me on, recursively.
collect() - Method in class SoundNode
Collect all the sounds from me on, recursively.
collectAfter() - Method in class CollectableNode
Collect all the sounds from me on, but if there's processing, do it after.
collectAfter() - Method in class ScaleBranch
Collect all the sound from our children, then collect from next.
collectAfter() - Method in class SoundBranch
Collect all the sound from our children, then collect from next.
collectAfter() - Method in class SoundNode
Collect and process after
colorArray - Variable in class ColorSquares
 
colorDistance(Color) - Method in class Pixel
Method to get the distance between this pixel's color and the passed color
colorDistance(Color, Color) - Static method in class Pixel
Method to compute the color distances between two color objects
complex1() - Method in class Picture
Complex manipulation
compose(Picture, int, int) - Method in class Picture
Method to compose this picture onto target at a given point.
composeMe - Variable in class ComposedImage
 
composeMe - Variable in class SwappableComposedImage
 
consume(int) - Method in class Resource
Consume resource
containsTurtle(Turtle) - Method in class TurtleWorld
Method to check if this world contains the passed turtle
containsTurtle(Turtle) - Method in class World
Method to check if this world contains the passed turtle
copy(Picture, int, int, int, int, int, int) - Method in class Picture
Method to copy from the passed source picture to current picture object The copying will start at startX, startY, and end at endX and endY The copy will be placed starting at targetStartX, targetStartY
copy() - Method in class Picture
A method create a copy of the current picture and return it
copy() - Method in class PositionedSceneElement
 
copyFlowerLarger() - Static method in class Picture
Method to copy a flower but scaled to 2x normal size
copyFlowerSmaller() - Static method in class Picture
Method to copy the flower but smaller (half as big)
copyKatie() - Static method in class Picture
Method to copy the picture of Katie to the canvas
copyKatieLeftRotation() - Static method in class Picture
Method to copy Katie rotated to the left 90 degrees
copyKatieMidway() - Static method in class Picture
Method to copy the picture of Katie to 100, 100 in the canvas
copyKatieRightRotation() - Static method in class Picture
Method to copy Katie rotated to the left 90 degrees
copyKatiesFace() - Static method in class Picture
Method to copy just Katie's face to the canvas
copyNode() - Method in class SongNode
copyNode returns a copy of this node
copyNode() - Method in class SoundElement
copyNode returns a copy of this element
copyPicture(SimplePicture) - Method in class SimplePicture
Method that will copy all of the passed source picture into the current picture object
copyPictureTo(Picture, int) - Method in class Picture
Method that will copy all of the passed source picture into the current picture object starting with the left corner given by xStart
count() - Method in class LLNode
Return the count of the elements in the list
countInRange(double, LinkedList) - Method in class Agent
Method to count the number of agents within the range that are on the given list
countWhite() - Method in class Picture
Method to count teh number of white pixels in a picture
createCollage() - Static method in class Picture
Method to create a collage from the flower pictures.
createCollageBetter() - Static method in class Picture
Method to create a collage of flowers with a better method
createFlowerCollage() - Static method in class Picture
Method to create a flower collage
createGraphics() - Method in class SimplePicture
Method to get a Graphics2D object for this picture which can be used to do 2D drawing on the picture
createInfoPanel() - Method in class SoundView
 
createLocationPanel(Font) - Method in class PictureExplorer
Create the pixel location panel
createWaveForm(boolean) - Method in class SoundView.SamplingPanel
 
current - Variable in class WalkingDoll
Which character node position are we at?

D

DEAgent - class DEAgent.
DEAgent - an agent in a Discrete Event simulation A DEAgent doesn't act().
DEAgent(ModelDisplay, Simulation) - Constructor for class DEAgent
Constructor that takes the model display (the original position will be randomly assigned)
DEAgent(int, int, ModelDisplay, Simulation) - Constructor for class DEAgent
Constructor that takes the x and y and a model display to draw it on
DESimulation - class DESimulation.
DSSimulation is a Discrete Event Simulation Instead of asking each agent to act(), we simply process events from a queue.
DESimulation() - Constructor for class DESimulation
 
DSAgent - class DSAgent.
DSAgent A DSAgent doesn't act().
DSAgent(ModelDisplay, Simulation) - Constructor for class DSAgent
Constructor that takes the model display (the original position will be randomly assigned)
DSAgent(int, int, ModelDisplay, Simulation) - Constructor for class DSAgent
Constructor that takes the x and y and a model display to draw it on
DSSimulation - class DSSimulation.
DSSimulation is a Discrete Event Simulation Instead of asking each agent to act(), we simply process events from a queue.
DSSimulation() - Constructor for class DSSimulation
 
Deer - class Deer.
Class that represents a deer.
Deer(ModelDisplay, WolfDeerSimulation) - Constructor for class Deer
Constructor that takes the model display (the original position will be randomally assigned
Deer(int, int, ModelDisplay, WolfDeerSimulation) - Constructor for class Deer
Constructor that takes the x and y and a model display to draw it on
DeerAgent - class DeerAgent.
DeerAgent -- Deer as a subclass of Agent
DeerAgent(ModelDisplay, Simulation) - Constructor for class DeerAgent
Constructor that takes the model display (the original position will be randomly assigned)
DeerAgent(int, int, ModelDisplay, Simulation) - Constructor for class DeerAgent
Constructor that takes the x and y and a model display to draw it on
DigitalPicture - interface DigitalPicture.
Interface to describe a digital picture.
DiseaseSimulation - class DiseaseSimulation.
DiseaseSimulation -- using the Simulation class
DiseaseSimulation() - Constructor for class DiseaseSimulation
 
Distributor - class Distributor.
Distributor -- takes orders from Market to Warehouse, fills them, and returns with product.
Distributor(ModelDisplay, Simulation) - Constructor for class Distributor
Constructor that takes the model display (the original position will be randomly assigned)
Distributor(int, int, ModelDisplay, Simulation) - Constructor for class Distributor
Constructor that takes the x and y and a model display to draw it on
Dot01 - class Dot01.
 
Dot01() - Constructor for class Dot01
 
Dot03 - class Dot03.
 
Dot03() - Constructor for class Dot03
 
Dot05 - class Dot05.
 
Dot05() - Constructor for class Dot05
 
Dot07 - class Dot07.
 
Dot07() - Constructor for class Dot07
 
DrawAScene - class DrawAScene.
 
DrawAScene() - Constructor for class DrawAScene
 
DrawAScene2 - class DrawAScene2.
 
DrawAScene2() - Constructor for class DrawAScene2
 
DrawableNode - class DrawableNode.
Stuff that all nodes and branches in the scene tree know.
DrawableNode() - Constructor for class DrawableNode
Constructor for DrawableNode just sets next to null
DrunkenTurtle - class DrunkenTurtle.
 
DrunkenTurtle(ModelDisplay) - Constructor for class DrunkenTurtle
Constructor that takes the model display
darken() - Method in class Picture
Method to darken the color in the picture
decreaseRed() - Method in class Picture
Method to decrease the red by half in the current picture
decreaseRed(double) - Method in class Picture
Method to decrease the red by an amount
degong() - Method in class SoundListTest
 
delete(int, int) - Method in class Sound
Delete from start to end in this sound
die() - Method in class Agent
Method that handles when an Agent dies
die() - Method in class Deer
Method that handles when a deer dies
die() - Method in class DeerAgent
To die, do normal stuff, but also remove from deer list
displayImage() - Method in class PictureFrame
A method to make sure the frame is displayed
displayPixelInformation(String, String) - Method in class PictureExplorer
Method to display the pixel information from the passed x and y but also converts x and y from strings
dog1 - Static variable in class CrowdAgent
 
dog2 - Static variable in class CrowdAgent
 
doggy - Variable in class AnimatedPositionedScene
We'll need to keep track of the elements of the scene
doggyflip - Variable in class AnimatedPositionedScene
We'll need to keep track of the elements of the scene
dogwag - Static variable in class CrowdAgent
 
draw() - Method in class WalkingDoll
Draw the current character
drawExample() - Static method in class Picture
Method to show using drawing on a picture
drawFilledRectangles() - Static method in class Picture
Method to draw a picture with a succession of filled rectangles with the top left corner the darkest and the bottom right the lightest
drawFromMeOn(Picture) - Method in class LayeredSceneElement
Method to draw from this node on in the list, using bluescreen.
drawFromMeOn(Picture) - Method in class PositionedSceneElement
Method to draw from this node on in the list, using bluescreen.
drawFromMeOn(Picture) - Method in class SceneElement
Method to draw from this node on in the list.
drawGrayEffect() - Static method in class Picture
Method to draw a gray effect picture
drawInfoString(Graphics) - Method in class SimpleTurtle
Method to draw the information string
drawOn(Picture) - Method in class DrawableNode
Draw on the given picture
drawOn(Picture) - Method in class World
Method to drawOn the input picture
drawRectangles() - Static method in class Picture
Method to draw a picture with a succession of rectangles
drawWith(Turtle) - Method in class BlueScreenNode
 
drawWith(Turtle) - Method in class Branch
 
drawWith(Turtle) - Method in class CharNode
 
drawWith(Turtle) - Method in class DrawableNode
Use the given turtle to draw oneself
drawWith(Turtle) - Method in class HBranch
 
drawWith(Turtle) - Method in class MoveBranch
 
drawWith(Turtle) - Method in class PictNode
 
drawWith(Turtle) - Method in class SceneElement
 
drawWith(Turtle) - Method in class SceneElementLayered
Method to draw from this picture.
drawWith(Turtle) - Method in class SceneElementPositioned
Method to draw from this picture.
drawWith(Turtle) - Method in class VBranch
 
drop(Picture) - Method in class SimpleTurtle
Method to draw a passed picture at the current turtle location and rotation

E

EggAgent - class EggAgent.
EggAgent -- big scary egg that sits there until t=30, then emerges as a monster!
EggAgent(ModelDisplay, Simulation) - Constructor for class EggAgent
Constructor that takes the model display (the original position will be randomly assigned)
EggAgent(int, int, ModelDisplay, Simulation) - Constructor for class EggAgent
Constructor that takes the x and y and a model display to draw it on
EventQueue - class EventQueue.
EventQueue It's called an event "queue," but it's not really.
EventQueue() - Constructor for class EventQueue
 
EventQueueExercisor - class EventQueueExercisor.
 
EventQueueExercisor() - Constructor for class EventQueueExercisor
 
egg - Variable in class BirdSimulation
 
egg1 - Static variable in class EggAgent
 
egg2 - Static variable in class EggAgent
 
egg3 - Static variable in class EggAgent
 
egg4 - Static variable in class EggAgent
 
elements - Variable in class Queue
Where we'll store our elements
empty() - Method in class EventQueue
 
empty() - Method in class Queue
Empty?
endStep(int) - Method in class BirdSimulation
 
endStep(int) - Method in class CrowdSimulation
 
endStep(int) - Method in class PoliticalSimulation
EndStep, count the number of each
endStep(int) - Method in class Simulation
End of step processing
events - Variable in class DESimulation
Queue for Events
events - Variable in class DSSimulation
Queue for Events
explore() - Method in class SimplePicture
Method to open a picture explorer on a copy of this simple picture
explore() - Method in class SimpleSound
Method to open a sound viewer on a copy of this sound

F

FACTORY_ARRIVE - Static variable in class Truck
 
FactoryProduct - class FactoryProduct.
FactoryProduct -- Represents the products in the factory, which is the resource that the Truck produces and the Distributor consumes.
FactoryProduct() - Constructor for class FactoryProduct
 
FactorySimulation - class FactorySimulation.
FactorySimulation -- set up the whole simulation, including creation of the Trucks and Distributors.
FactorySimulation() - Constructor for class FactorySimulation
 
Fetch - class Fetch.
 
Fetch() - Constructor for class Fetch
 
FileChooser - class FileChooser.
A class to make working with a file chooser easier for students.
FileChooser() - Constructor for class FileChooser
 
FrameSequence - class FrameSequence.
Class to save frames in a movie to a directory.
FrameSequence(String) - Constructor for class FrameSequence
Constructor that takes a directory name
FrameSequence(String, String) - Constructor for class FrameSequence
Constructor that takes a directory name and a base file name
f - Variable in class MyTurtleAnimation
 
factor - Variable in class ScaleBranch
Amount to scale
fakeSunset() - Method in class Picture
Method to fake a sunset by reducing the blue and green in a picture by 30%
fetch(String) - Static method in class Fetch
 
fetchimage(String, Component) - Static method in class Fetch
 
fillMeUp() - Method in class AmazingGraceSong
 
fillMeUp() - Method in class AmazingGraceSong2
 
fillMeUp() - Method in class MVAmazingGraceSong
 
fillMeUp() - Method in class MyFourPartSong
 
first - Variable in class Song
first Channel
flip() - Method in class Picture
Method to flip an image left-to-right
flyenterance - Variable in class CatchAFly
The nodes we need to track between methods
flyescape - Variable in class CatchAFly
The nodes we need to track between methods
forward(int) - Method in class DrunkenTurtle
 
forward() - Method in class SimpleTurtle
Method to go forward by 100 pixels
forward(int) - Method in class SimpleTurtle
Method to move the turtle forward the given number of pixels
frame - Variable in class PictureFrame
Main window used as the frame
frames - Variable in class AnimatedPositionedScene
A FrameSequence for storing the frames
frames - Variable in class AnimationRunner
FrameSequence where the animation is created
frames - Variable in class CatchAFly
FrameSequence where the animation is created
frames - Variable in class Simulation
FrameSequence in case the user wants an animation
frames - Variable in class SunsetMoonrise
FrameSequence where the animation is created
frames - Variable in class WalkingDoll
FrameSequence for the display
frames - Variable in class WolfAttackMovie
FrameSequence where the animation is created

G

GUItree - class GUItree.
 
GUItree() - Constructor for class GUItree
 
GUItreeBordered - class GUItreeBordered.
 
GUItreeBordered() - Constructor for class GUItreeBordered
 
GUItreeBoxed - class GUItreeBoxed.
 
GUItreeBoxed() - Constructor for class GUItreeBoxed
 
GUItreeFlowed - class GUItreeFlowed.
 
GUItreeFlowed() - Constructor for class GUItreeFlowed
 
GUItreeInteractive - class GUItreeInteractive.
 
GUItreeInteractive() - Constructor for class GUItreeInteractive
 
GenerateNewNormal - class GenerateNewNormal.
 
GenerateNewNormal() - Constructor for class GenerateNewNormal
 
GenerateNormal - class GenerateNormal.
 
GenerateNormal() - Constructor for class GenerateNormal
 
GenerateUniform - class GenerateUniform.
 
GenerateUniform() - Constructor for class GenerateUniform
 
GetURLInfo - class GetURLInfo.
 
GetURLInfo() - Constructor for class GetURLInfo
 
Greeter - class Greeter.
 
Greeter() - Constructor for class Greeter
 
gap - Variable in class HBranch
Horizontal gap between children
gap - Variable in class VBranch
Vertical gap between children
getAgent() - Method in class AgentNode
Getter for the turtle
getAgent() - Method in class SimEvent
 
getAgents() - Method in class Simulation
Accessor for all agents
getAlpha() - Method in class Pixel
Method to get the amount of alpha (transparency) at this pixel.
getAudioFileFormat() - Method in class SimpleSound
Method that returns the AudioFileFormat describing this simple sound.
getAverage() - Method in class Pixel
Method to get the average of the colors of this pixel
getBaseName() - Method in class FrameSequence
Method to get the base name
getBasicPixel(int, int) - Method in interface DigitalPicture
 
getBasicPixel(int, int) - Method in class SimplePicture
Method to return the pixel value as an int for the given x and y location
getBlue() - Method in class Pixel
Method to get the amount of blue at this pixel.
getBlue(int) - Static method in class Pixel
Method to get the blue value from a pixel represented as an int
getBodyColor() - Method in class SimpleTurtle
Method to get the body color
getBuffer() - Method in class SimpleSound
Method that returns the byte array representation of this simple sound.
getBufferedImage() - Method in interface DigitalPicture
 
getBufferedImage() - Method in class SimplePicture
Method to get the buffered image
getChannels() - Method in class SimpleSound
Obtains the number of channels of this sound.
getClosest(double, LinkedList) - Method in class Agent
Method to get the closest agent within the passed distance to this agent but NOT this agent.
getClosest(double, AgentNode) - Method in class Deer
Method to get the closest wolf within the passed distance to this deer.
getClosest(double, AgentNode) - Method in class Wolf
Method to get the closest deer within the passed distance to this wolf.
getColor() - Method in class Pen
Method to get the pen (ink) color
getColor() - Method in class Pixel
Method to get a color object that represents the color at this pixel.
getCurrentX() - Method in class ImageDisplay
Method to get the current x
getCurrentY() - Method in class ImageDisplay
Method to get the current y
getDEBUG() - Method in class SimpleSound
Method to get the value of the debug flag
getDeer() - Method in class WolfDeerSimulation
 
getDirectory() - Method in class FrameSequence
Method to get the directory to write the frames to
getDistance(int, int) - Method in class SimpleTurtle
Get the distance from the passed x and y location
getEndTime() - Method in class AmazingGraceSongElement
 
getEndTime() - Method in class AmazingGraceSongElement2
 
getEndTime() - Method in class SongElement
 
getExtension() - Method in class SimplePicture
Method to get the extension for this picture
getFactor() - Method in class ScaleBranch
Accessors
getFactory() - Method in class FactorySimulation
Accessor for factory
getFileName() - Method in interface DigitalPicture
 
getFileName() - Method in class SimplePicture
Method to get the file name associated with the picture
getFileName() - Method in class SimpleSound
Method that returns the name of the file this sound came from.
getFrame(int) - Method in class SimpleSound
Returns an array containing all of the bytes in the specified frame.
getFrameNumber() - Method in class FrameSequence
Method to get the frame number
getGraphics() - Method in interface ModelDisplay
Method that returns the graphics context for this model display
getGraphics() - Method in class SimplePicture
Method to get a graphics object for this picture to use to draw on
getGraphics() - Method in class World
Method to get the graphics context for drawing on
getGreen() - Method in class Pixel
Method to get the amount of green at this pixel.
getGreen(int) - Static method in class Pixel
Method to get the green value from a pixel represented as an int
getHeading() - Method in class SimpleTurtle
Method to get the current heading
getHeight() - Method in interface DigitalPicture
 
getHeight() - Method in interface ModelDisplay
Method to get the height of the display
getHeight() - Method in class SimplePicture
Method to get the height of the picture in pixels
getHeight() - Method in class TurtleWorld
Method to get the height in pixels
getHeight() - Method in class World
Method to get the height in pixels
getID() - Method in class Student
 
getImage() - Method in class ComposedImage
 
getImage() - Method in interface DigitalPicture
 
getImage() - Method in class ImageDisplay
Method to get the image
getImage() - Method in class SimplePicture
Method to get an image from the picture
getImage() - Method in class SwappableComposedImage
 
getInfoColor() - Method in class SimpleTurtle
Method to get the information color
getLastTurtle() - Method in class TurtleWorld
Metod to get the last turtle in this world
getLastTurtle() - Method in class World
Metod to get the last turtle in this world
getLeftSample(int) - Method in class SimpleSound
Obtains the left sample of the audio data contained at the specified frame.
getLength() - Method in class SimpleSound
Method to return the length of the sound as the number of samples
getLengthInBytes() - Method in class SimpleSound
Obtains the length of this sound in bytes.
getLengthInFrames() - Method in class SimpleSound
Obtains the length of the audio data contained in the file, expressed in sample frames.
getMediaDirectory() - Static method in class FileChooser
Method to get the directory for the media
getMediaPath(String) - Static method in class FileChooser
Method to get the full path for the passed file name
getMediaPath(String) - Static method in class SimplePicture
Method to get the directory for the media
getMessage() - Method in class SimEvent
 
getModelDisplay() - Method in class SimpleTurtle
Method to get the model display for this simple turtle
getName() - Method in class Person
 
getName() - Method in class SimpleTurtle
Method to get the name of the turtle
getNext() - Method in class CollectableNode
 
getNext() - Method in class DrawableNode
 
getNext() - Method in class LLNode
 
getNext() - Method in class LayeredSceneElement
 
getNext() - Method in class PositionedSceneElement
 
getNext() - Method in class SceneElement
 
getNext() - Method in class SoundElement
 
getNumFrames() - Method in class FrameSequence
Method to get the number of frames in this sequence
getNumSamples() - Method in class SimpleSound
Returns the number of samples in this sound
getPen() - Method in class SimpleTurtle
Method to get the pen from the turtle
getPenColor() - Method in class SimpleTurtle
Method to get the pen color
getPenWidth() - Method in class SimpleTurtle
Method to get the pen width
getPicture() - Method in class LayeredSceneElement
Returns the picture in the node.
getPicture() - Method in class PositionedSceneElement
Returns the picture in the node.
getPicture() - Method in class SceneElement
Returns the picture in the node.
getPicture() - Method in class SimpleTurtle
Method to get the picture for this simple turtle
getPicture() - Method in class World
Method to get the background picture
getPictureFrame() - Method in class FrameSequence
Method to get the picture frame to use to show this sequence
getPictureFrame() - Method in class SimplePicture
Method to get the picture frame for the picture
getPictureWithHeight(int) - Method in class SimplePicture
Method to create a new picture of the passed height.
getPixel(int, int) - Method in interface DigitalPicture
 
getPixel(int, int) - Method in class SimplePicture
Method to get a pixel object for the given x and y location
getPixels() - Method in class SimplePicture
Method to get a one-dimensional array of Pixels for this simple picture
getPlaybacks() - Method in class SimpleSound
Method that returns the vector of playback threads currently active on this sound.
getPlaying() - Method in class Playback
Method to return true if this playback thread is playing and false otherwise
getPreferredScrollableViewportSize() - Method in class ImageDisplay
Method to return the preferred size
getRed() - Method in class Pixel
Method to get the amount of red at this pixel.
getRed(int) - Static method in class Pixel
Method to get the red value from a pixel represented as an int
getRightSample(int) - Method in class SimpleSound
Obtains the right sample of the audio data contained at the specified frame.
getSample(int) - Method in class SimpleSound
Method to create and return a SoundSample object for the given frame number
getSampleValue(int) - Method in class SimpleSound
If this is a mono sound, obtains the single sample contained within this frame, else obtains the first (left) sample contained in the specified frame.
getSampleValueAt(int) - Method in class SimpleSound
Method to get the sample at the passed index and handle any SoundExceptions
getSamples() - Method in class SimpleSound
Method to create and return an array of SoundSample objects
getSamplingRate() - Method in class SimpleSound
Method to get the sampling rate of this sound
getScore() - Method in class MVAmazingGraceSong
 
getScore() - Method in class MyFourPartSong
 
getScrollableBlockIncrement(Rectangle, int, int) - Method in class ImageDisplay
Method to return the block increment for scrolling
getScrollableTracksViewportHeight() - Method in class ImageDisplay
Method to check if the viewport height is the source height
getScrollableTracksViewportWidth() - Method in class ImageDisplay
Method to check if the viewport width is the source width
getScrollableUnitIncrement(Rectangle, int, int) - Method in class ImageDisplay
Method to return the unit increment for scrolling
getShellColor() - Method in class SimpleTurtle
Method to get the shell color
getShowInfo() - Method in class SimpleTurtle
Method to get value of show info
getSimulation() - Method in class Agent
 
getSound() - Method in class SoundElement
Return my sound
getSoundExplorer() - Method in class SimpleSound
Method that returns the SoundExplorer
getSpeed() - Method in class Agent
 
getStudent() - Method in class StudentNode
 
getTime() - Method in class DESimulation
getTime -- return what time it is now.
getTime() - Method in class DSSimulation
getTime -- return what time it is now.
getTime() - Method in class SimEvent
 
getTitle() - Method in interface DigitalPicture
 
getTitle() - Method in class SimplePicture
Method to get the title of the picture
getTranslationEnclosingRectangle(AffineTransform) - Method in class SimplePicture
Method to get the coordinates of the enclosing rectangle after this transformation is applied to the current picture
getTurtleIterator() - Method in class World
Method to get an iterator on the list of turtles
getTurtleList() - Method in class World
Method to get the list of turtles in the world
getType() - Method in class WebPageReader
The type of the material at the other end of the URL is the contentType from the URLConnection
getValue() - Method in class SoundSample
Method to get the value of this sample as in int and handle the possible sound exception
getWidth() - Method in interface DigitalPicture
 
getWidth() - Method in interface ModelDisplay
Method to get the width of the display
getWidth() - Method in class Pen
Method to get the width of the pen
getWidth() - Method in class SimplePicture
Method to get the width of the picture in pixels
getWidth() - Method in class TurtleWorld
Method to get the width in pixels
getWidth() - Method in class World
Method to get the width in pixels
getWolves() - Method in class WolfDeerSimulation
Accessors for wolves and deer
getX() - Method in class Pixel
Method to get the x location of this pixel.
getX() - Method in class WalkingDoll
 
getXPos() - Method in class MoveBranch
Accessors
getXPos() - Method in class SimpleTurtle
Method to get the current x position
getY() - Method in class Pixel
Method to get the y location of this pixel.
getY() - Method in class WalkingDoll
 
getYPos() - Method in class MoveBranch
 
getYPos() - Method in class SimpleTurtle
Method to get the current y position
grayscale() - Method in class Picture
Method to change the picture to gray scale
grayscaleWithLuminance() - Method in class Picture
Method to change the picture to gray scale with luminance
greet() - Method in class Person
 
greet() - Method in class Student
 

H

HBranch - class HBranch.
 
HBranch(int) - Constructor for class HBranch
 
HungryWolf - class HungryWolf.
A class that extends the Wolf to have a Hunger level.
HungryWolf(ModelDisplay, WolfDeerSimulation) - Constructor for class HungryWolf
Constructor that takes the model display (the original position will be randomly assigned)
HungryWolf(int, int, ModelDisplay, WolfDeerSimulation) - Constructor for class HungryWolf
Constructor that takes the x and y and a model display to draw it on
head - Variable in class AnimationRunner
The nodes we need to track between methods
hero - Variable in class WolfAttackMovie
The nodes we need to track between methods
hide() - Method in class SimpleTurtle
Method to hide the turtle (stop showing it) This doesn't affect the pen status
hide() - Method in class World
Method to hide the frame
house - Variable in class AnimatedPositionedScene
We'll need to keep track of the elements of the scene
house() - Static method in class SongPhrase
 
hunter - Variable in class CrowdSimulation
 
hunter1 - Static variable in class NBDAgent
 

I

ImageDisplay - class ImageDisplay.
Class to display an image and the current location with a + sign
ImageDisplay(Image) - Constructor for class ImageDisplay
Constructor that takes the image to display
ImageDisplay(Image, int, int) - Constructor for class ImageDisplay
Constructor that takes the image and current x and y
InsertClassNameHere - class InsertClassNameHere.
 
InsertClassNameHere() - Constructor for class InsertClassNameHere
 
imageIcon - Variable in class PictureFrame
ImageIcon used to display the picture in the label
increaseRed() - Method in class Picture
 
increaseRed2() - Method in class Picture
Method to increase the amount of red by 1.3
increaseRed3() - Method in class Picture
Method to increase the amount of red by 1.3
increaseVolume(double) - Method in class Sound
Increase the volume of a sound
infect() - Method in class PersonAgent
Become infected
infected() - Method in class PersonAgent
Count infected
infection - Variable in class PersonAgent
 
init(Simulation) - Method in class Agent
Method to initialize the new wolf object
init(Simulation) - Method in class BirdAgent
Set up the birds
init() - Method in class ColorSquares
Method to initialize the panel
init(Simulation) - Method in class CrowdAgent
Set up the dogs
init(Simulation) - Method in class DEAgent
 
init(Simulation) - Method in class DSAgent
 
init(WolfDeerSimulation) - Method in class Deer
Method to initialize the new deer object
init(Simulation) - Method in class DeerAgent
Initialize, by adding to Deer list
init(Simulation) - Method in class Distributor
Initialize a distributor.
init(Simulation) - Method in class EggAgent
To initialize, set it up as the Egg in the upper lefthand corner
init(WolfDeerSimulation) - Method in class HungryWolf
Method to initialize the hungry wolf object
init(Simulation) - Method in class NBDAgent
To initialize, set it up as the Egg in the upper lefthand corner
init(Simulation) - Method in class PersonAgent
Initialize, by setting color and making move fast
init(Simulation) - Method in class PoliticalAgent
Initialize
init(Simulation) - Method in class Truck
Set up the truck Start out at the factory
init(WolfDeerSimulation) - Method in class Wolf
Method to initialize the new wolf object
init(Simulation) - Method in class WolfAgent
Initialize, by adding to Wolf list
insertAfter(CollectableNode) - Method in class CollectableNode
Insert the input node after this node.
insertAfter(DrawableNode) - Method in class DrawableNode
Insert the input node after this node.
insertAfter(LLNode) - Method in class LLNode
Insert the input node after this node.
insertAfter(LayeredSceneElement) - Method in class LayeredSceneElement
Insert the input node after this node.
insertAfter(PositionedSceneElement) - Method in class PositionedSceneElement
Insert the input node after this node.
insertAfter(SceneElement) - Method in class SceneElement
Insert the input node after this node.
insertAfter(SongNode) - Method in class SongNode
Insert the input SongNode AFTER this node, and make whatever node comes NEXT become the next of the input node.
insertAfter(Sound, int) - Method in class Sound
insert the input Sound after the nth sample (input integer).
insertAfter(SoundElement) - Method in class SoundElement
Insert the input node after this node.
insertInOrder(SimEvent) - Method in class EventQueue
Put thisEvent into elements, assuming that it's already in order.
intToBytes16(int, byte[], int, boolean) - Static method in class TConversionTool
Converts a 16 bit sample of type int to 2 bytes in an array.
intToBytes24(int, byte[], int, boolean) - Static method in class TConversionTool
Converts a 24 bit sample of type int to 3 bytes in an array.
intToBytes32(int, byte[], int, boolean) - Static method in class TConversionTool
Converts a 32 bit sample of type int to 4 bytes in an array.
intToUnsignedByte(int) - Static method in class TConversionTool
 
intToUnsignedBytes16(int, byte[], int, boolean) - Static method in class TConversionTool
 
intToUnsignedBytes24(int, byte[], int, boolean) - Static method in class TConversionTool
 
intToUnsignedBytes32(int, byte[], int, boolean) - Static method in class TConversionTool
 
isBlocked() - Method in class DEAgent
Are we blocked?
isPenDown() - Method in class Pen
Method to get pen down status
isPenDown() - Method in class SimpleTurtle
Method to check if the pen is down
isReady(Resource) - Method in class DEAgent
Are we ready to be unlocked?
isReady(Resource) - Method in class Distributor
Are we ready to be unlocked?
isShown() - Method in class FrameSequence
Method to check if the frame sequence is being shown
isStereo() - Method in class SimpleSound
Method to check if a sound is stereo (2 channels) or not
isVisible() - Method in class SimpleTurtle
Method to get the value of the visible flag

J

jenny - Variable in class MyTurtleAnimation
 

L

LLNode - class LLNode.
 
LLNode() - Constructor for class LLNode
Constructor for LLNode just sets next to null
LayeredSceneElement - class LayeredSceneElement.
 
LayeredSceneElement(Picture, int, int) - Constructor for class LayeredSceneElement
Make a new element with a picture as input, and next as null, to be drawn at given x,y
LotsOfTurtles - class LotsOfTurtles.
 
LotsOfTurtles() - Constructor for class LotsOfTurtles
 
last() - Method in class CharNode
Don't try to get the last() from a circular list!
last() - Method in class CollectableNode
Return the last element in the list
last() - Method in class DrawableNode
Return the last element in the list
last() - Method in class LLNode
Return the last element in the list
last() - Method in class LayeredSceneElement
Return the last element in the list
last() - Method in class PositionedSceneElement
Return the last element in the list
last() - Method in class SceneElement
Return the last element in the list
last() - Method in class SoundElement
Return the last element in the list
lighten() - Method in class Picture
Method to lighten the colors in the picture
lightenNested() - Method in class Picture
Method to lighten the colors using a nested for loop
lightenWhileNested() - Method in class Picture
Method to lighten the colors using a nested for loop
lineForFile() - Method in class DiseaseSimulation
lineForFile -- write out number of infected
lineForFile() - Method in class PoliticalSimulation
lineForFile -- write out number of each party
lineForFile() - Method in class Simulation
lineForFile -- string to write to file on each timeStep.
lineForFile() - Method in class WDSimulation
lineForFile -- write out number of wolves and deer
linear2alaw(short) - Static method in class TConversionTool
 
linear2ulaw(int) - Static method in class TConversionTool
Converts a linear signed 16bit sample to a uLaw byte.
load(Image) - Method in interface DigitalPicture
 
load(String) - Method in interface DigitalPicture
 
load(Image) - Method in class SimplePicture
Method to load the buffered image with the passed image
load(String) - Method in class SimplePicture
Method to load the picture from the passed file name
load - Variable in class Truck
Amount of product being carried
loadFromFile(String) - Method in class SimpleSound
Resets the fields of this sound so that it now represents the sound in the specified file.
loadPage(String) - Method in class SimpleBrowser
 
loadPictureAndShowIt(String) - Method in class SimplePicture
Method to load a picture from a file name and show it in a picture frame
locx - Variable in class ComposedImage
 
locx - Variable in class SwappableComposedImage
 
locy - Variable in class ComposedImage
 
locy - Variable in class SwappableComposedImage
 
log(String) - Method in class DESimulation
Log something -- write to console or interactions pane, And to the output file, if it exists.

M

MARKET_ARRIVE - Static variable in class Distributor
 
MARKET_LEAVE - Static variable in class Distributor
 
MAXSPEED - Static variable in class Agent
class constant for top speed (max num steps can move in a timestep)
MVAmazingGraceSong - class MVAmazingGraceSong.
 
MVAmazingGraceSong() - Constructor for class MVAmazingGraceSong
 
MidtermTesting - class MidtermTesting.
 
MidtermTesting() - Constructor for class MidtermTesting
 
ModelDisplay - interface ModelDisplay.
Interface to used to communicate between a model and its display Copyright Georgia Institute of Technology 2004
MoveBranch - class MoveBranch.
 
MoveBranch(int, int) - Constructor for class MoveBranch
Construct a branch with children and next as null
MultiElementScene - class MultiElementScene.
 
MultiElementScene() - Constructor for class MultiElementScene
 
MyCollage - class MyCollage.
 
MyCollage() - Constructor for class MyCollage
 
MyFirstSong - class MyFirstSong.
 
MyFirstSong() - Constructor for class MyFirstSong
 
MyFourPartSong - class MyFourPartSong.
 
MyFourPartSong() - Constructor for class MyFourPartSong
 
MyPicture - class MyPicture.
 
MyPicture() - Constructor for class MyPicture
 
MySong - class MySong.
 
MySong() - Constructor for class MySong
 
MySoundCollage - class MySoundCollage.
 
MySoundCollage() - Constructor for class MySoundCollage
 
MyTurtleAnimation - class MyTurtleAnimation.
 
MyTurtleAnimation() - Constructor for class MyTurtleAnimation
 
MyTurtlePicture - class MyTurtlePicture.
 
MyTurtlePicture() - Constructor for class MyTurtlePicture
 
main(String[]) - Static method in class ColorSquares
 
main(String[]) - Static method in class Dot01
 
main(String[]) - Static method in class Dot03
 
main(String[]) - Static method in class Dot05
 
main(String[]) - Static method in class Dot07
 
main(String[]) - Static method in class DrawAScene
 
main(String[]) - Static method in class DrawAScene2
 
main(String[]) - Static method in class EventQueueExercisor
 
main(String[]) - Static method in class Fetch
 
main(String[]) - Static method in class GUItree
 
main(String[]) - Static method in class GenerateNewNormal
 
main(String[]) - Static method in class GenerateNormal
 
main(String[]) - Static method in class GenerateUniform
 
main(String[]) - Static method in class GetURLInfo
 
main(String[]) - Static method in class Greeter
 
main(String[]) - Static method in class InsertClassNameHere
 
main(String[]) - Static method in class LotsOfTurtles
 
main(String[]) - Static method in class MidtermTesting
 
main(String[]) - Static method in class MultiElementScene
 
main(String[]) - Static method in class MyCollage
 
main(String[]) - Static method in class MyFirstSong
 
main(String[]) - Static method in class MyPicture
 
main(String[]) - Static method in class MySong
 
main(String[]) - Static method in class MySoundCollage
 
main(String[]) - Static method in class MyTurtlePicture
 
main(String[]) - Static method in class PSETest
 
main(String[]) - Static method in class Person
 
main(String[]) - Static method in class PictureExplorer
Test Main.
main(String[]) - Static method in class PictureTest
 
main(String[]) - Static method in class RhythmTool
 
main(String[]) - Static method in class RunBirdSimulation
 
main(String[]) - Static method in class RunPictureTool
 
main(String[]) - Static method in class SoundListDifferent
 
main(String[]) - Static method in class SoundView
 
main(String[]) - Static method in class SquareInSquare
 
main(String[]) - Static method in class Test
 
main(String[]) - Static method in class TestLayeredSceneElement
 
main(String[]) - Static method in class TestStringArgs
 
main(String[]) - Static method in class TurtleSquares
 
make() - Method in class AnimatedPositionedScene
 
makeAIS() - Method in class SimpleSound
Creates an AudioInputStream for this sound from the buffer and the audioFileFormat.
makeMe() - Method in class SwappableComposedImage
 
makeSunset() - Method in class Picture
Method to make a picture look like it was taken at sunset by reducing the blue and green to make it look more red
makeSunset(String) - Static method in class Picture
Method to simulate a sunset by reducing the green and blue
maxSpeed - Static variable in class Wolf
class constant for top speed (max num steps can move in a timestep)
message - Variable in class SimEvent
What is the event? We'll use integers to represent the meaning of the event -- the "message" of the event.
methodA() - Method in class Picture
 
methodB() - Method in class Picture
 
methodC() - Method in class Picture
 
mirrorHorizontal() - Method in class Picture
Method to mirror around a horizontal line in the middle based on the height.
mirrorHorizontalBottomToTop() - Method in class Picture
Method to mirror around a horiztonal line in the middle based on the height of the picture.
mirrorTemple() - Static method in class Picture
Method to mirror the piedmont of the temple
mirrorVertical() - Method in class Picture
Method to mirror around a vertical line in the middle of the picture based on the width
mix(Sound, double) - Method in class Sound
Mix the input sound with this sound, with percent ratio of input.
modelChanged() - Method in interface ModelDisplay
method to notify the thing that displays that the model has changed
modelChanged() - Method in class TurtleWorld
Method that allows the model to notify the display
modelChanged() - Method in class World
Method that allows the model to notify the display
moonrise - Variable in class SunsetMoonrise
The nodes we need to track between methods
mouseClicked(MouseEvent) - Method in class PictureExplorer
Method called when the mouse is clicked
mouseClicked(MouseEvent) - Method in class SoundExplorer
Handle a mouse click event
mouseClicked(MouseEvent) - Method in class SoundView
 
mouseDragged(MouseEvent) - Method in class PictureExplorer
Called when the mouse is dragged (button held down and moved)
mouseDragged(MouseEvent) - Method in class SoundExplorer
Method to handle a mouse dragged event
mouseDragged(MouseEvent) - Method in class SoundView
 
mouseEntered(MouseEvent) - Method in class PictureExplorer
Method called when the component is entered (mouse moves over it)
mouseEntered(MouseEvent) - Method in class SoundExplorer
Method to handle a mouse entered event
mouseEntered(MouseEvent) - Method in class SoundView
 
mouseExited(MouseEvent) - Method in class PictureExplorer
Method called when the mouse moves over the component
mouseExited(MouseEvent) - Method in class SoundExplorer
Method to handle a mouse exited event
mouseExited(MouseEvent) - Method in class SoundView
 
mouseMoved(MouseEvent) - Method in class PictureExplorer
Method called when the mouse is moved with no buttons down
mouseMoved(MouseEvent) - Method in class SoundExplorer
Method to handle a mouse move event
mouseMoved(MouseEvent) - Method in class SoundView
 
mousePressed(MouseEvent) - Method in class PictureExplorer
Method called when the mouse button is pushed down
mousePressed(MouseEvent) - Method in class SoundExplorer
Method to handle a mouse press
mousePressed(MouseEvent) - Method in class SoundView
 
mouseReleased(MouseEvent) - Method in class PictureExplorer
Method called when the mouse button is released
mouseReleased(MouseEvent) - Method in class SoundExplorer
Method to handle a mouse release
mouseReleased(MouseEvent) - Method in class SoundView
 
moveTo(int, int) - Method in class MoveBranch
 
moveTo(int, int) - Method in class SimpleTurtle
Method to move to turtle to the given x and y location
myFrames - Variable in class BirdSimulation
 
myFrames - Variable in class CrowdSimulation
 
myLabel - Variable in class SwappableComposedImage
 
myList - Variable in class SongPart
 
myPart - Variable in class SongPart
 
myPic - Variable in class PictureTool
 
myPic - Variable in class SceneElement
the picture that this element holds
myPict - Variable in class Agent
 
myPict - Variable in class CharNode
The picture I'm associated with
myPict - Variable in class PictNode
The picture I'm associated with
mySim - Variable in class Wolf
My simulation
mySound - Variable in class SoundElement
The sound this element is associated with
mySound - Variable in class SoundNode
The sound I'm associated with
myStupidMethod() - Method in class Picture
My function that shifts r, g, b -- Mark Guzdial
myWindow - Variable in class SwappableComposedImage
 
myX - Variable in class WolfAgent
 
myY - Variable in class WolfAgent
 

N

NBDAgent - class NBDAgent.
EggAgent -- big scary egg that sits there until t=30, then emerges as a monster!
NBDAgent(ModelDisplay, Simulation) - Constructor for class NBDAgent
Constructor that takes the model display (the original position will be randomly assigned)
NBDAgent(int, int, ModelDisplay, Simulation) - Constructor for class NBDAgent
Constructor that takes the x and y and a model display to draw it on
negate() - Method in class Picture
Method to negate the picture
newLoad() - Method in class Truck
A new load is between 10 and 20 on a uniform distribution
newOrders() - Method in class Distributor
 
newSound - Variable in class RhythmTool
 
next() - Method in class AmazingGraceSongElement
 
next() - Method in class AmazingGraceSongElement2
 
next - Variable in class CollectableNode
The next branch/node/whatever to process
next - Variable in class DrawableNode
The next branch/node/whatever to process
next - Variable in class LLNode
The next branch/node/whatever to process
next() - Method in class MyTurtleAnimation
 
next(int) - Method in class MyTurtleAnimation
 
next - Variable in class SceneElement
the next element in the list -- any SceneElement
next() - Method in class SongElement
 
next() - Method in class SongNode
Provides public access to the next node.
next - Variable in class SoundElement
The next element to process
nextLine() - Method in class WebPageReader
Next line is the next line from the material at the other end of the URL.
night1 - Variable in class SunsetMoonrise
The nodes we need to track between methods
night2 - Variable in class SunsetMoonrise
The nodes we need to track between methods
night3 - Variable in class SunsetMoonrise
The nodes we need to track between methods
night4 - Variable in class SunsetMoonrise
The nodes we need to track between methods
now - Variable in class DESimulation
current time
now - Variable in class DSSimulation
current time
num - Variable in class RhythmTool
 

O

openFile(String) - Method in class Simulation
Open the input file and set the BufferedWriter to speak to it.
openFile(String) - Method in class WolfDeerSimulation
Open the input file and set the BufferedWriter to speak to it.
openFrames(String) - Method in class Simulation
Open a frame sequence at the given directory
output - Variable in class Simulation
A BufferedWriter for writing to
output - Variable in class WolfDeerSimulation
 

P

PROB_OF_STAY - Static variable in class Agent
class constant for probability of NOT turning
PROB_OF_STAY - Static variable in class Wolf
class constant for probability of NOT turning
PSETest - class PSETest.
 
PSETest() - Constructor for class PSETest
 
Pen - class Pen.
Class to represent a pen which has a color, width, and a list of lines that it should draw.
Pen() - Constructor for class Pen
Constructor that takes no arguments
Pen(Color, int) - Constructor for class Pen
Constructor that takes all the ink color, and width
Pen(Color, int, boolean) - Constructor for class Pen
Constructor that takes the ink color, width, and penDown flag
Person - class Person.
 
Person() - Constructor for class Person
 
Person(String) - Constructor for class Person
 
PersonAgent - class PersonAgent.
PersonAgent -- Person as a subclass of Agent
PersonAgent(ModelDisplay, Simulation) - Constructor for class PersonAgent
Constructor that takes the model display (the original position will be randomly assigned)
PersonAgent(int, int, ModelDisplay, Simulation) - Constructor for class PersonAgent
Constructor that takes the x and y and a model display to draw it on
PictNode - class PictNode.
 
PictNode(Picture) - Constructor for class PictNode
 
Picture - class Picture.
A class that represents a picture.
Picture() - Constructor for class Picture
Constructor that takes no arguments
Picture(String) - Constructor for class Picture
Constructor that takes a file name and creates the picture
Picture(int, int) - Constructor for class Picture
Constructor that takes the width and height
PictureExplorer - class PictureExplorer.
Displays a picture and lets you explore the picture by displaying the x, y, red, green, and blue values of the pixel at the cursor when you click a mouse button or press and hold a mouse button while moving the cursor.
PictureExplorer(DigitalPicture) - Constructor for class PictureExplorer
Public constructor
PictureFrame - class PictureFrame.
Class that holds a digital picture and displays it.
PictureFrame() - Constructor for class PictureFrame
A constructor that takes no arguments.
PictureFrame(DigitalPicture) - Constructor for class PictureFrame
A constructor that takes a picture to display
PictureTest - class PictureTest.
 
PictureTest() - Constructor for class PictureTest
 
PictureTool - class PictureTool.
 
PictureTool(String) - Constructor for class PictureTool
 
Pixel - class Pixel.
Class that references a pixel in a picture.
Pixel(DigitalPicture, int, int) - Constructor for class Pixel
A constructor that take the x and y location for the pixel and the picture the pixel is coming from
Playback - class Playback.
The class Playback extends from Thread and allows for playback of a simple sound.
Playback(SimpleSound) - Constructor for class Playback
Constructor that takes the simple sound to be played
PoliticalAgent - class PoliticalAgent.
PoliticalAgent -- Red or Blue Stater as a subclass of Agent
PoliticalAgent(ModelDisplay, Simulation) - Constructor for class PoliticalAgent
Constructor that takes the model display (the original position will be randomly assigned)
PoliticalAgent(int, int, ModelDisplay, Simulation) - Constructor for class PoliticalAgent
Constructor that takes the x and y and a model display to draw it on
PoliticalSimulation - class PoliticalSimulation.
PoliticalSimulation -- using the Simulation class
PoliticalSimulation() - Constructor for class PoliticalSimulation
 
PositionedSceneElement - class PositionedSceneElement.
 
PositionedSceneElement(Picture) - Constructor for class PositionedSceneElement
Make a new element with a picture as input, and next as null.
paint(Graphics) - Method in class SoundView.SamplingPanel
 
paintComponent(Graphics) - Method in class ImageDisplay
Method to handle displaying this object
paintComponent(Graphics) - Method in class Pen
Metod to paint the lines
paintComponent(Graphics) - Method in class SimpleTurtle
Method to paint the turtle
paintComponent(Graphics) - Method in class TurtleWorld
Method to paint this component
paintComponent(Graphics) - Method in class World
Method to paint this component
part() - Method in class AmazingGraceSongElement
 
pattern1() - Static method in class SongPhrase
 
pattern2() - Static method in class SongPhrase
 
peek() - Method in class EventQueue
 
peek() - Method in class Queue
Peek at, but don't remove, top of queue
peek() - Method in class Queue2
Peek at, but don't remove, top of queue
peek() - Method in class Stack
 
peek() - Method in class Stack2
 
penDown() - Method in class SimpleTurtle
Method to set the pen down
penUp() - Method in class SimpleTurtle
Method to lift the pen up
penguinentry - Variable in class AnimationRunner
The nodes we need to track between methods
penguinretreat - Variable in class AnimationRunner
The nodes we need to track between methods
phrase1() - Static method in class AmazingGraceSongElement2
 
phrase2() - Static method in class AmazingGraceSongElement2
 
pickAColor() - Static method in class ColorChooser
Method to let the user pick a color and return the color object.
pickAFile() - Static method in class FileChooser
Method to let the user pick a file and return the full file name as a string.
pickAndShow() - Static method in class Picture
Class method to let the user pick a file name and then create the picture and show it
play() - Method in class SimpleSound
Creates a new Playback thread and starts it.
play() - Method in class SoundTreeExample
 
play() - Method in class SunsetMoonrise
Render the whole animation
playAfter() - Method in class SoundTreeExample
 
playAtRateDur(double, double) - Method in class SimpleSound
Calls playAtRateInRange((float)rate, 0, (int)durInFrames-1, false) .
playAtRateInRange(float, int, int) - Method in class SimpleSound
Calls playAtRateInRange(rate, startFrame, endFrame, false) .
playAtRateInRange(float, int, int, boolean) - Method in class SimpleSound
Plays the specified segment of this sound at the given sample rate.
playFromMeOn() - Method in class CollectableNode
Play the list of sound elements after me
playFromMeOn() - Method in class SoundElement
Play the list of sound elements after me
playScaled(double) - Method in class SoundTreeExample
 
playSound() - Method in class SoundElement
Play JUST me, blocked.
politics - Variable in class PoliticalAgent
 
pop() - Method in class EventQueue
 
pop() - Method in class Queue
Pop an object from the Queue
pop() - Method in class Queue2
Pop an object from the Queue
pop() - Method in class Stack
 
pop() - Method in class Stack2
 
portion(int, int) - Method in class Sound
Return part of a sound
posterize(int) - Method in class Picture
Method to posterize (reduce the number of colors) in the picture
posterize() - Method in class Picture
Method to posterize (reduce the number of colors) in the picture The number of reds, greens, and blues will be 4
printError(String) - Method in class SimpleSound
Invokes printError(message, null)
printError(String, Exception) - Method in class SimpleSound
Prints the given String to the "standard" error output stream, then prints a stack trace on the exception, and then exits the program.
printinfo(URLConnection) - Static method in class GetURLInfo
 
processEvent(int) - Method in class DEAgent
Process an event.
processEvent(int) - Method in class Distributor
Process an event.
processEvent(int) - Method in class Truck
Process an event.
push(Object) - Method in class Queue
Push an object onto the Queue
push(Object) - Method in class Queue2
Push an object onto the Queue
push(Object) - Method in class Stack
 
push(Object) - Method in class Stack2
 

Q

Queue - class Queue.
Implements a simple queue
Queue() - Constructor for class Queue
 
Queue2 - class Queue2.
Implements a simple queue
Queue2() - Constructor for class Queue2
 

R

Resource - class Resource.
Resource class -- manages agents requesting a resource
Resource() - Constructor for class Resource
Start out with no resource and an empty queue
RhythmTool - class RhythmTool.
 
RhythmTool() - Constructor for class RhythmTool
 
RunBirdSimulation - class RunBirdSimulation.
 
RunBirdSimulation() - Constructor for class RunBirdSimulation
 
RunPictureTool - class RunPictureTool.
 
RunPictureTool() - Constructor for class RunPictureTool
 
randNumGen - Static variable in class Agent
random number generator
randNumGen - Static variable in class Wolf
random number generator
random() - Static method in class SongPhrase
 
randomAboveC() - Static method in class SongPhrase
 
readyToRead() - Method in class WebPageReader
A WebPageReader is ready to read if the stream is ready
redParty - Static variable in class PoliticalAgent
 
reduceBlue() - Method in class Picture
Method to reduce the blue in the picture by 30%
reduceBlue(String) - Static method in class Picture
Method to create a picture and reduce the blue in it
reduceBlueIncreaseGreen() - Method in class Picture
Method to reduce blue by 25% and increase green by 50%
reduceGreen() - Method in class Picture
Method to reduce the green in the picture by 30%
reduceGreen(String) - Static method in class Picture
Method to create a picture from the passed file name and reduce the green in it
remove(Turtle) - Method in class AgentNode
Remove the node where this turtle is found.
remove(LLNode) - Method in class CharNode
Don't try to remove() from a circular list!
remove(CollectableNode) - Method in class CollectableNode
Method to remove node from list, fixing links appropriately.
remove(DrawableNode) - Method in class DrawableNode
Method to remove node from list, fixing links appropriately.
remove(LLNode) - Method in class LLNode
Method to remove node from list, fixing links appropriately.
remove(LayeredSceneElement) - Method in class LayeredSceneElement
Method to remove node from list, fixing links appropriately.
remove(Object) - Method in interface ModelDisplay
Method to remove the model from the world
remove(PositionedSceneElement) - Method in class PositionedSceneElement
Method to remove node from list, fixing links appropriately.
remove(SceneElement) - Method in class SceneElement
Method to remove node from list, fixing links appropriately.
remove(Agent) - Method in class Simulation
Remove this actor from the agents list
remove(SoundElement) - Method in class SoundElement
Method to remove node from list, fixing links appropriately.
remove(Object) - Method in class World
Method to remove the passed object from the world
removePlayback(Playback) - Method in class SimpleSound
Deletes the specified playback object from the Vector.
removeRedEye(int, int, int, int, Color) - Method in class Picture
Method to remove red eye from the current picture object in the rectange define by startX, startY, endX, endY.
renderAnimation() - Method in class AnimationRunner
Render the whole animation
renderAnimation() - Method in class CatchAFly
Render the whole animation
renderAnimation() - Method in class WolfAttackMovie
Render the whole animation
renderScene() - Method in class AnimationRunner
Render just the first scene
renderScene() - Method in class CatchAFly
Render just the first scene
renderScene() - Method in class SunsetMoonrise
Render just the first scene
renderScene() - Method in class WolfAttackMovie
Render just the first scene
repaint() - Method in class PictureExplorer
Repaints the image on the scrollpane.
repaint() - Method in class PictureFrame
Method to force the picture frame to repaint (redraw)
repaint() - Method in class SimplePicture
Method to force the picture to redraw itself.
repeatNext(SongNode, int) - Method in class SongNode
Repeat the input phrase for the number of times specified.
repeatNext(SoundElement, int) - Method in class SoundElement
Repeat the input phrase for the number of times specified.
repeatNextInserting(SongNode, int) - Method in class SongNode
Repeat the input phrase for the number of times specified.
replace(Picture, Picture) - Method in class PositionedSceneElement
Replace the one picture with the other picture in all the elements from me on.
replace(Sound, Sound) - Method in class SoundElement
Replace the one sound with the other sound in all the elements from me on.
replay() - Method in class AnimatedPositionedScene
 
replay() - Method in class AnimationRunner
Replay the animation
replay(int) - Method in class FrameSequence
Method to replay the frames (pictures) added so far
replay(int) - Method in class MyTurtleAnimation
 
replay() - Method in class SunsetMoonrise
Replay the animation w/out sound
replay(int) - Method in class WalkingDoll
Delegate replay
replay() - Method in class WolfAttackMovie
Replay the animation
reverse() - Method in class LLNode
Reverse the list starting at this, and return the last element of the list.
reverse() - Method in class LayeredSceneElement
Reverse the list starting at this, and return the last element of the list.
reverse() - Method in class SceneElement
Reverse the list starting at this, and return the last element of the list.
reverse() - Method in class Sound
Method to reverse a sound.
reverse2() - Method in class LLNode
Reverse2: Push all the elements on the stack, then pop all the elements off the stack.
rhythm1() - Static method in class SongPhrase
 
riff1() - Static method in class SongPhrase
 
riff2() - Static method in class SongPhrase
 
riff3() - Static method in class SongPhrase
 
riff4() - Static method in class SongPhrase
 
root() - Method in class AnimationRunner
Return the sceneRoot
root() - Method in class CatchAFly
Return the sceneRoot @return sceneRoot
root - Variable in class RhythmTool
 
root - Variable in class SoundListTest
 
root() - Method in class SoundListTest
 
root - Variable in class SoundTreeExample
 
root() - Method in class SoundTreeExample
 
root() - Method in class SunsetMoonrise
Return the sceneRoot
root() - Method in class WolfAttackMovie
Return the sceneRoot
run(double) - Method in class DESimulation
Run until a certain time step is reached, by calling setUp (which we hope creates the base agents and schedules the first round of events), then repeatedly processing an event from the eventQueue.
run() - Method in class Playback
Starts this thread.
run(int) - Method in class Simulation
Ask all agents to run for the number of input steps
run() - Method in class Simulation
Run for a default of 50 steps
run() - Method in class WolfDeerSimulation
 

S

ScaleBranch - class ScaleBranch.
 
ScaleBranch(double) - Constructor for class ScaleBranch
Construct a branch with this factor
SceneElement - class SceneElement.
An element that knows how to draw itself in a scene with a turtle
SceneElement() - Constructor for class SceneElement
 
SceneElementLayered - class SceneElementLayered.
 
SceneElementLayered(Picture, int, int) - Constructor for class SceneElementLayered
Make a new element with a picture as input, and next as null, to be drawn at given x,y
SceneElementPositioned - class SceneElementPositioned.
 
SceneElementPositioned(Picture) - Constructor for class SceneElementPositioned
Make a new element with a picture as input, and next as null.
SimEvent - class SimEvent.
SimulationEvent (SimEvent) -- an event that occurs in a simulation, like a truck arriving at a factory, or a salesperson leaving the market
SimEvent(DEAgent, double, int) - Constructor for class SimEvent
 
SimEvent() - Constructor for class SimEvent
 
SimpleBrowser - class SimpleBrowser.
 
SimpleBrowser() - Constructor for class SimpleBrowser
Most of the action is in the constructor.
SimplePicture - class SimplePicture.
A class that represents a simple picture.
SimplePicture() - Constructor for class SimplePicture
A Constructor that takes no arguments.
SimplePicture(String) - Constructor for class SimplePicture
A Constructor that takes a file name and uses the file to create a picture
SimplePicture(int, int) - Constructor for class SimplePicture
A constructor that takes the width and height desired for a picture and creates a buffered image of that size.
SimplePicture(SimplePicture) - Constructor for class SimplePicture
A Constructor that takes a picture to copy information from
SimpleSound - class SimpleSound.
The SimpleSound class is an implementation of the Java Sound API specifically designed for use with students.
SimpleSound() - Constructor for class SimpleSound
Constructs a SimpleSound of 1 second long.
SimpleSound(int) - Constructor for class SimpleSound
Constructs a SimpleSound of the specified length.
SimpleSound(int, boolean) - Constructor for class SimpleSound
Constructs a simple sound with the given sample size in bits and type of endian (big or little)
SimpleSound(String) - Constructor for class SimpleSound
Constructs a new SimpleSound from the given file.
SimpleSound(SimpleSound) - Constructor for class SimpleSound
Constructor that creates a new SimpleSound by copying a passed SimpleSound
SimpleTurtle - class SimpleTurtle.
Class that represents a Logo-style turtle.
SimpleTurtle(int, int) - Constructor for class SimpleTurtle
Constructor that takes the x and y position for the turtle
SimpleTurtle(int, int, ModelDisplay) - Constructor for class SimpleTurtle
Constructor that takes the x and y position and the model displayer
SimpleTurtle(ModelDisplay) - Constructor for class SimpleTurtle
Constructor that takes a model display and adds a turtle in the middle of it
SimpleTurtle(int, int, Picture) - Constructor for class SimpleTurtle
Constructor that takes the x and y position and the picture to draw on
SimpleTurtle(Picture) - Constructor for class SimpleTurtle
Constructor that takes the picture to draw on and will appear in the middle
Simulation - class Simulation.
Class that implements a general Simulation
Simulation() - Constructor for class Simulation
Constructor to set output to null
Song - class Song.
 
Song() - Constructor for class Song
 
SongElement - class SongElement.
 
SongElement() - Constructor for class SongElement
 
SongNode - class SongNode.
 
SongNode() - Constructor for class SongNode
When we make a new element, the next part is empty, and ours is a blank new part
SongPart - class SongPart.
 
SongPart(int, SongNode) - Constructor for class SongPart
Construct a SongPart
SongPhrase - class SongPhrase.
 
SongPhrase() - Constructor for class SongPhrase
 
Sound - class Sound.
Class that represents a sound.
Sound(String) - Constructor for class Sound
Constructor that takes a file name
Sound(int) - Constructor for class Sound
Constructor that takes the number of seconds that this sound will have
SoundBranch - class SoundBranch.
 
SoundBranch() - Constructor for class SoundBranch
 
SoundElement - class SoundElement.
Sounds for a linked list
SoundElement(Sound) - Constructor for class SoundElement
Constructor sets next to null and references the input sound.
SoundException - exception SoundException.
 
SoundException(String) - Constructor for class SoundException
 
SoundExplorer - class SoundExplorer.
This class allows you to explore a Sound.
SoundExplorer(SimpleSound, boolean) - Constructor for class SoundExplorer
Constructor that takes a sound and a boolean flag
SoundListDifferent - class SoundListDifferent.
 
SoundListDifferent() - Constructor for class SoundListDifferent
 
SoundListTest - class SoundListTest.
 
SoundListTest() - Constructor for class SoundListTest
 
SoundNode - class SoundNode.
 
SoundNode(Sound) - Constructor for class SoundNode
 
SoundSample - class SoundSample.
Class that represents a sample of a sound.
SoundSample(SimpleSound, int) - Constructor for class SoundSample
Constructor that takes a sound and valueArray
SoundTest - class SoundTest.
A JUnit test case class.
SoundTest() - Constructor for class SoundTest
 
SoundTreeExample - class SoundTreeExample.
 
SoundTreeExample() - Constructor for class SoundTreeExample
 
SoundView - class SoundView.
 
SoundView(Sound, boolean) - Constructor for class SoundView
 
SoundView.SamplingPanel - class SoundView.SamplingPanel.
 
SoundView.SamplingPanel(boolean) - Constructor for class SoundView.SamplingPanel
 
Soundroot - Variable in class CatchAFly
 
SquareInSquare - class SquareInSquare.
 
SquareInSquare() - Constructor for class SquareInSquare
 
Stack - class Stack.
 
Stack() - Constructor for class Stack
 
Stack2 - class Stack2.
Implementation of a stack as an array
Stack2() - Constructor for class Stack2
 
Student - class Student.
 
Student() - Constructor for class Student
 
Student(String) - Constructor for class Student
 
Student(String, int) - Constructor for class Student
 
StudentNode - class StudentNode.
 
StudentNode(Student) - Constructor for class StudentNode
 
SunsetMoonrise - class SunsetMoonrise.
 
SunsetMoonrise() - Constructor for class SunsetMoonrise
 
SwappableComposedImage - class SwappableComposedImage.
 
SwappableComposedImage() - Constructor for class SwappableComposedImage
 
scale(double) - Method in class Picture
Method to scale the picture by a factor, and return the result
scale(double) - Method in class Sound
Scale up or down a sound by the given factor (1.0 returns the same, 2.0 doubles the length, and 0.5 halves the length)
scale2x() - Method in class Picture
A method to scale the current picture object 2 x regular size
scaledBranch - Variable in class SoundTreeExample
 
sceneRoot - Variable in class AnimationRunner
The root of the scene data structure
sceneRoot - Variable in class CatchAFly
The root of the scene data structure
sceneRoot - Variable in class SunsetMoonrise
The root of the scene data structure
sceneRoot - Variable in class WolfAttackMovie
The root of the scene data structure
second - Variable in class Song
second Channel
sepiaTint() - Method in class Picture
Method to change the current picture to a sepia tint (modify the middle colors to a light brown and the light colors to a light yellow and make the shadows darker
setAgent(Turtle) - Method in class AgentNode
Setter for the turtle
setAllPixelsToAColor(Color) - Method in class SimplePicture
Method to set the color in the picture to the passed color
setAlpha(int) - Method in class Pixel
Method to set the alpha (transparency) to a new alpha value
setAudioFileFormat(AudioFileFormat) - Method in class SimpleSound
Changes the AudioFileFormat of this sound.
setAutoRepaint(boolean) - Method in class World
Method to set the automatically repaint flag
setBase(int) - Method in class SoundExplorer
Method to set the base for the index.
setBaseName(String) - Method in class FrameSequence
Method to set the base name
setBasicPixel(int, int, int) - Method in interface DigitalPicture
 
setBasicPixel(int, int, int) - Method in class SimplePicture
Method to set the value of a pixel in the picture from an int
setBlue(int) - Method in class Pixel
Method to set the blue to a new blue value
setBodyColor(Color) - Method in class SimpleTurtle
Method to set the body color
setBuffer(byte[]) - Method in class SimpleSound
Changes the byte array that represents this sound.
setChannel(int) - Method in class AmazingGraceSongElement
 
setColor(Color) - Method in class Pen
Method to set the pen (ink) color
setColor(Color) - Method in class Pixel
Method to set the pixel color to the passed in color object.
setColor(Color) - Method in class SimpleTurtle
Method to set the color of the turtle.
setCurrentX(int) - Method in class ImageDisplay
Method to set the current x
setCurrentY(int) - Method in class ImageDisplay
Method to set the current y
setDirectory(String) - Method in class FrameSequence
Method to set the directory to write the frames to
setFactor(double) - Method in class ScaleBranch
 
setFirst(SongPart) - Method in class Song
Take in a SongPart to make the first channel in the song
setFrame(int, byte[]) - Method in class SimpleSound
Changes the value of each byte of the specified frame.
setGreen(int) - Method in class Pixel
Method to set the green to a new green value
setHeading(double) - Method in class SimpleTurtle
Method to set the heading
setID(int) - Method in class Student
 
setImage(Image) - Method in class ImageDisplay
Method to set the image
setInfoColor(Color) - Method in class SimpleTurtle
Method to set the information color
setLeftSample(int, int) - Method in class SimpleSound
 
setLoc(int, int) - Method in class ComposedImage
 
setLoc(int, int) - Method in class SwappableComposedImage
 
setLoc(int, int) - Method in class WalkingDoll
 
setMediaPath(String) - Static method in class FileChooser
Method to set the media path by setting the directory to use
setMediaPath(String) - Static method in class SimplePicture
Method to set the media path by setting the directory to use
setMessage(int) - Method in class SimEvent
 
setModelDisplay(ModelDisplay) - Method in class SimpleTurtle
Method to set the model display for this simple turtle
setName(String) - Method in class Person
 
setName(String) - Method in class SimpleTurtle
Method to set the name of the turtle
setNext(AmazingGraceSongElement) - Method in class AmazingGraceSongElement
 
setNext(AmazingGraceSongElement2) - Method in class AmazingGraceSongElement2
 
setNext(CollectableNode) - Method in class CollectableNode
Methods to set and get next elements
setNext(DrawableNode) - Method in class DrawableNode
Methods to set and get next elements
setNext(LLNode) - Method in class LLNode
Methods to set and get next elements
setNext(LayeredSceneElement) - Method in class LayeredSceneElement
Methods to set and get next elements
setNext(PositionedSceneElement) - Method in class PositionedSceneElement
Methods to set and get next elements
setNext(SceneElement) - Method in class SceneElement
Methods to set and get next elements
setNext(SongElement) - Method in class SongElement
 
setNext(SongNode) - Method in class SongNode
Creates a link between the current node and the input node
setNext(SoundElement) - Method in class SoundElement
Methods to set and get next elements
setPen(Pen) - Method in class SimpleTurtle
Method to set the pen for this turtle
setPenColor(Color) - Method in class SimpleTurtle
Method to set the pen color
setPenDown(boolean) - Method in class Pen
Method to set the pen down value
setPenDown(boolean) - Method in class SimpleTurtle
Method to set the pen down boolean variable
setPenWidth(int) - Method in class SimpleTurtle
Method to set the pen width
setPhrase(Phrase, double, int) - Method in class AmazingGraceSongElement2
 
setPhrase(Phrase, double, int) - Method in class SongElement
 
setPhrase(Phrase) - Method in class SongNode
setPhrase takes a Phrase and makes it the one for this node
setPicture(Picture) - Method in class PictureFrame
Method to set the picture to show in this picture frame
setPicture(Picture) - Method in class SimpleTurtle
Method to set the picture for this simple turtle
setPicture(Picture) - Method in class World
Method to set the background picture
setPictureFrame(PictureFrame) - Method in class FrameSequence
Method to set the picture frame to use to shown this
setPictureFrame(PictureFrame) - Method in class SimplePicture
Method to set the picture frame for this picture
setPolitics(Color) - Method in class PoliticalAgent
Set politics
setRed(int) - Method in class Pixel
Method to set the red to a new red value
setRightSample(int, int) - Method in class SimpleSound
 
setSampleValue(int, int) - Method in class SimpleSound
Changes the value of the sample found at the specified frame.
setSampleValueAt(int, int) - Method in class SimpleSound
Method to set the sample value at the passed index to the passed value
setSecond(SongPart) - Method in class Song
Take in a SongPart to make the second channel in the song
setShellColor(Color) - Method in class SimpleTurtle
Method to set the shell color
setShowInfo(boolean) - Method in class SimpleTurtle
Method to show the turtle information string
setShown(boolean) - Method in class FrameSequence
Method to set the shown flag
setSoundExplorer(SoundExplorer) - Method in class SimpleSound
Changes the explorer of this object.
setSpeed(int) - Method in class Agent
Accessors
setTime(double) - Method in class SimEvent
 
setTitle(String) - Method in interface DigitalPicture
 
setTitle(String) - Method in class PictureExplorer
Set the title of the frame
setTitle(String) - Method in class PictureFrame
Method to set the title for the picture frame
setTitle(String) - Method in class SimplePicture
Method to set the title for the picture
setTitle(String) - Method in class SoundExplorer
Method to set the title on the main window
setTitle(String) - Method in class SoundView
 
setUp() - Method in class AnimatedPositionedScene
 
setUp() - Method in class AnimationRunner
Set up all the pieces of the tree.
setUp() - Method in class BirdSimulation
Set up the world with 10 birds and the mysterious egg
setUp() - Method in class CatchAFly
Set up all the pieces of the tree.
setUp() - Method in class CrowdSimulation
Set up the world with 10 birds and the mysterious egg
setUp() - Method in class DiseaseSimulation
Fill the world with 60 persons, one sick
setUp() - Method in class FactorySimulation
 
setUp() - Method in class PoliticalSimulation
Fill the world with 60 persons
setUp() - Method in class Simulation
setUp the simulation.
setUp() - Method in class SoundListTest
 
setUp() - Method in class SoundTreeExample
 
setUp() - Method in class SunsetMoonrise
Set up all the pieces of the tree.
setUp() - Method in class WDSimulation
Fill the world with wolves and deer
setUp() - Method in class WalkingDoll
Setup to display walking left to right
setUp() - Method in class WolfAttackMovie
Set up all the pieces of the tree.
setUp2() - Method in class SoundListTest
 
setUp2() - Method in class SoundTreeExample
 
setValue(int) - Method in class SoundSample
Method to set the value of this sample and handle the sound exception
setVisible(boolean) - Method in class SimpleTurtle
Method to set the visible flag
setWidth(int) - Method in class Pen
Method to set the width of the pen
show() - Method in interface DigitalPicture
 
show() - Method in class FrameSequence
Method to show the frame sequence
show() - Method in class MyTurtleAnimation
 
show() - Method in class SimplePicture
Method to show the picture in a picture frame
show() - Method in class SimpleTurtle
Method to show the turtle (doesn't affect the pen status
show() - Method in class Song
 
show() - Method in class SongPart
Collect all notes in this SongPart and open it up for viewing.
show() - Method in class World
Method to show the frame
showFromMeOn() - Method in class AmazingGraceSongElement
 
showFromMeOn() - Method in class AmazingGraceSongElement2
 
showFromMeOn() - Method in class SongElement
 
showFromMeOn(int) - Method in class SongNode
Collect all the notes from this node on in an part (then a score) and open it up for viewing.
showMe() - Method in class AmazingGraceSong
 
showMe() - Method in class AmazingGraceSong2
 
showMe() - Method in class ComposedImage
 
showMe() - Method in class MVAmazingGraceSong
 
showMe() - Method in class MyFourPartSong
 
showNamed(String) - Static method in class Picture
Class method to create a picture object from the passed file name and then show it
simulation - Variable in class Agent
My simulation
size() - Method in class EventQueue
 
size() - Method in class Queue
Return the size of a queue
size() - Method in class Queue2
Return the size of a queue
size() - Method in class Stack
 
size() - Method in class Stack2
Size is simply the top index
sky1 - Variable in class SunsetMoonrise
The nodes we need to track between methods
sky2 - Variable in class SunsetMoonrise
The nodes we need to track between methods
sky3 - Variable in class SunsetMoonrise
The nodes we need to track between methods
sort() - Method in class EventQueue
 
speed - Variable in class Agent
My current speed
spider - Variable in class CatchAFly
The nodes we need to track between methods
square(int) - Method in class Turtle
 
start - Variable in class WalkingDoll
Starting position for new walking.
start() - Method in class WalkingDoll
Start a walking sequence
step() - Method in class WalkingDoll
Draw the next step
steps(int) - Method in class WalkingDoll
Draw a few steps
stopPlaying() - Method in class Playback
Stops this thread by breaking the while loop in the run method.
stuckness - Variable in class PoliticalAgent
 
sunset - Variable in class SunsetMoonrise
The nodes we need to track between methods
sunsetize() - Method in class Picture
Method to make a picture look sunset-like
swapBackground(Picture, Picture) - Method in class Picture
Method to replace the background in the current picture with the background from another picture
swapBackgroundForThreshold(Picture, Picture, double) - Method in class Picture
Method to replace the background in the current picture with the background from another picture for pixels that have a color distance to the old background of under the passed threshold

T

TConversionTool - class TConversionTool.
 
TConversionTool() - Constructor for class TConversionTool
 
Test - class Test.
 
Test() - Constructor for class Test
 
TestLayeredSceneElement - class TestLayeredSceneElement.
 
TestLayeredSceneElement() - Constructor for class TestLayeredSceneElement
 
TestStringArgs - class TestStringArgs.
 
TestStringArgs() - Constructor for class TestStringArgs
 
Truck - class Truck.
Truck -- delivers product from Factory to Warehouse.
Truck(ModelDisplay, Simulation) - Constructor for class Truck
Constructor that takes the model display (the original position will be randomly assigned)
Truck(int, int, ModelDisplay, Simulation) - Constructor for class Truck
Constructor that takes the x and y and a model display to draw it on
Turtle - class Turtle.
Class that represents a turtle which is similar to a Logo turtle.
Turtle(int, int, Picture) - Constructor for class Turtle
Constructor that takes the x and y and a picture to draw on
Turtle(int, int, ModelDisplay) - Constructor for class Turtle
Constructor that takes the x and y and a model display to draw it on
Turtle(ModelDisplay) - Constructor for class Turtle
Constructor that takes the model display
Turtle(Picture) - Constructor for class Turtle
Constructor that takes a picture to draw on
TurtleSquares - class TurtleSquares.
 
TurtleSquares() - Constructor for class TurtleSquares
 
TurtleWorld - class TurtleWorld.
Class to represent a 2d world that can hold turtles and display them Copyright Georgia Institute of Technology 2004
TurtleWorld() - Constructor for class TurtleWorld
Constructor that takes no arguments
testPickAndPlay() - Method in class SoundTest
A test method.
time - Variable in class SimEvent
When does this event occur?
timeToDeliver() - Method in class Distributor
 
toString() - Method in class AgentNode
Make a printable form
toString() - Method in class BlueScreenNode
Method to return a string with informaiton about this node
toString() - Method in class Branch
Method to return a string with informaiton about this branch
toString() - Method in class CharNode
Method to return a string with informaiton about this node
toString() - Method in class HBranch
Method to return a string with informaiton about this branch
toString() - Method in class MoveBranch
Method to return a string with informaiton about this branch
toString() - Method in class Person
 
toString() - Method in class PictNode
Method to return a string with informaiton about this node
toString() - Method in class Picture
Method to return a string with information about this picture.
toString() - Method in class Pixel
Method to return a string with information about this pixel
toString() - Method in class ScaleBranch
Method to return a string with informaiton about this branch
toString() - Method in class SimplePicture
Method to return a string with information about this picture
toString() - Method in class SimpleSound
Obtains a string representation of this JavaSound.
toString() - Method in class SimpleTurtle
Method to return a string with informaiton about this turtle
toString() - Method in class Sound
Method to return the string representation of this sound
toString() - Method in class SoundBranch
Method to return a string with informaiton about this branch
toString() - Method in class SoundElement
Provide a printable representation of me
toString() - Method in class SoundNode
Method to return a string with informaiton about this node
toString() - Method in class SoundSample
Method to return a string with the information about this object
toString() - Method in class Student
 
toString() - Method in class StudentNode
 
toString() - Method in class VBranch
Method to return a string with informaiton about this branch
toString() - Method in class World
Method that returns information about this world in the form of a string
topQuarter() - Method in class Picture
 
tree1 - Variable in class AnimatedPositionedScene
We'll need to keep track of the elements of the scene
tree2 - Variable in class AnimatedPositionedScene
We'll need to keep track of the elements of the scene
tree3 - Variable in class AnimatedPositionedScene
We'll need to keep track of the elements of the scene
tripTime() - Method in class Distributor
 
tripTime() - Method in class Truck
A trip distance averages 3 days
turn(int) - Method in class SimpleTurtle
Method to turn the turtle the passed degrees use negative to turn left and pos to turn right
turnKatieRedHead() - Static method in class Picture
Method to turn to turn Katie into a red head
turnKatieRedHeadInRange() - Static method in class Picture
Method to turn to turn Katie into a red head using a range
turnLeft() - Method in class SimpleTurtle
Method to turn left
turnRight() - Method in class SimpleTurtle
Method to turn right
turnToFace(SimpleTurtle) - Method in class SimpleTurtle
Method to turn to face another simple turtle
turnToFace(int, int) - Method in class SimpleTurtle
Method to turn towards the given x and y

U

ulaw2linear(byte) - Static method in class TConversionTool
 
unblocked(Resource) - Method in class DEAgent
I've been unblocked!
unblocked(Resource) - Method in class Distributor
I've been unblocked!
unsignedByteToInt(byte) - Static method in class TConversionTool
 
unsignedByteToInt16(byte[], int, boolean) - Static method in class TConversionTool
 
unsignedByteToInt24(byte[], int, boolean) - Static method in class TConversionTool
 
unsignedByteToInt32(byte[], int, boolean) - Static method in class TConversionTool
 
update(LineEvent) - Method in class SoundExplorer
Method to handle the line event update
update(LineEvent) - Method in class SoundView
 
updateDisplay() - Method in class SimpleTurtle
Method to update the display of this turtle and also check that the turtle is in the bounds
updateImage() - Method in class PictureFrame
A method to update the picture frame image with the image in the picture
updateImageAndShowIt() - Method in class PictureFrame
A method to update the picture frame image with the image in the picture and show it
updatePicture(int, int, int, int) - Method in class Pixel
Method to update the picture based on the passed color values for this pixel

V

VBranch - class VBranch.
 
VBranch(int) - Constructor for class VBranch
 
validTime(double) - Method in class DEAgent
Provide a time that's not negative

W

WAREHOUSE_ARRIVE - Static variable in class Distributor
 
WAREHOUSE_ARRIVE - Static variable in class Truck
 
WDSimulation - class WDSimulation.
WDSimulation -- using the Simulation class
WDSimulation() - Constructor for class WDSimulation
 
WalkingDoll - class WalkingDoll.
 
WalkingDoll() - Constructor for class WalkingDoll
We'll do the list setup in the constructor
WebPageReader - class WebPageReader.
 
WebPageReader(String) - Constructor for class WebPageReader
Open with a URL
Wolf - class Wolf.
Class that represents a wolf.
Wolf(ModelDisplay, WolfDeerSimulation) - Constructor for class Wolf
Constructor that takes the model display (the original position will be randomly assigned)
Wolf(int, int, ModelDisplay, WolfDeerSimulation) - Constructor for class Wolf
Constructor that takes the x and y and a model display to draw it on
WolfAgent - class WolfAgent.
WolfAgent -- Wolf as a subclass of Agent
WolfAgent(ModelDisplay, Simulation) - Constructor for class WolfAgent
Constructor that takes the model display (the original position will be randomly assigned)
WolfAgent(int, int, ModelDisplay, Simulation) - Constructor for class WolfAgent
Constructor that takes the x and y and a model display to draw it on
WolfAttackMovie - class WolfAttackMovie.
 
WolfAttackMovie() - Constructor for class WolfAttackMovie
 
WolfDeerSimulation - class WolfDeerSimulation.
 
WolfDeerSimulation() - Constructor for class WolfDeerSimulation
Constructor to set output to null
World - class World.
Class to represent a 2d world that can hold turtles and display them Copyright Georgia Institute of Technology 2004
World() - Constructor for class World
Constructor that takes no arguments
World(boolean) - Constructor for class World
Constructor that takes a boolean to say if this world should be visible or not
World(int, int) - Constructor for class World
Constructor that takes a width and height for this world
waitFor(Resource) - Method in class DEAgent
Block myself for the input resource
weave(SongNode, int, int) - Method in class SongNode
Weave the input phrase count times every skipAmount nodes
weave(SoundElement, int, int) - Method in class SoundElement
Weave the input sound count times every skipAmount elements
whom - Variable in class SimEvent
To whom does it occur? Who should be informed when it occurred?
wolfentry - Variable in class WolfAttackMovie
The nodes we need to track between methods
wolfretreat - Variable in class WolfAttackMovie
The nodes we need to track between methods
world - Variable in class Simulation
World that the simulation runs
write(String) - Method in class SimplePicture
Method to write the contents of the picture to a file with the passed name
write(String) - Method in class SimpleSound
Method to write this sound to a file
writeToFile(String) - Method in class SimpleSound
Creates an audioInputStream from this sound, and then writes this stream out to the file with the specified name.

X

x - Variable in class MoveBranch
Position where to draw at
x - Variable in class WalkingDoll
Position for the character

Y

y - Variable in class MoveBranch
Position where to draw at
y - Variable in class WalkingDoll
Position for the character

Z

zoom(double) - Method in class PictureExplorer
Zooms in the on picture by scaling the image.

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