All Packages  Class Hierarchy

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

Index of all Fields and Methods

A

addBreaksColor(Color). Method in class gerken.vehicles.Vehicle

Adds c to the set of participant colors that the vehicle can break.

addBrokenByColor(Color). Method in class gerken.vehicles.Vehicle

Adds c to the set of participant colors that can break the vehicle.

addConnection(NetworkConnection). Method in class gerken.vehicles.VehicleNetwork

Register a connection to the network

addHiddenNode(HiddenNode). Method in class gerken.vehicles.VehicleNetwork

Register a hidden node to the network.

addParticipant(SimulationParticipant). Method in class gerken.vehicles.VehicleScenario

Register a participant in the scenario.

addPolar(double, double). Method in class gerken.vehicles.Location

Compute and return a Location that results from moving away from the receiver for a distance of length at an angle of angle

addReceptor(Receptor). Method in class gerken.vehicles.VehicleNetwork

Register a receptor to the network

addToLightInput(double). Method in class gerken.vehicles.Receptor
Increment the receptor's light input sum by value.


B

beginDebug(). Method in class gerken.vehicles.SimulationParticipant

If the participant doesn't already have a debug window, give it one

blue(). Static method in class gerken.vehicles.VehicleNetwork

Build and return a vehicle network that veers its vehicle away from white light.

blue(double, double, double). Static method in class gerken.vehicles.Vehicle

Return a basic blue vehicle.


C

chaser(Color). Static method in class gerken.vehicles.VehicleNetwork

Build and return a vehicle network that veers its vehicle toward a light colored c.

chaser(double, double, double, Color, Color). Static method in class gerken.vehicles.Vehicle

Return a vehicle that chases after chasedColor participants.

compute(). Method in class gerken.vehicles.Receptor

All of the receiver's inputs have been summed.

cruiser(). Static method in class gerken.vehicles.VehicleNetwork

Build and return a vehicle network that travels straight ahead.

cruiser(double, double, double, Color). Static method in class gerken.vehicles.Vehicle

Return a vehicle colored vehicleColor that moves straight ahead and never turns.


D

debug(). Method in class gerken.vehicles.SimulationParticipant

If the participant has a debug window then the participant will write debug information to that window.

display(Graphics). Method in class gerken.vehicles.Light

Tell the Light to display itself using the given Graphics.

display(Graphics). Method in class gerken.vehicles.Pulsar

Tell the pulsar to display itself using the given Graphics.

display(Graphics). Method in class gerken.vehicles.ScenarioBorder

Redraw the receiver (draws a rectangle around the scenario simulation region).

display(Graphics). Method in class gerken.vehicles.SimulationParticipant

Display the receiver using the given Graphics.

display(Graphics). Method in class gerken.vehicles.Vehicle

Display the vehicle using the Graphics.

displayBoken(Graphics). Method in class gerken.vehicles.Pulsar

Tell the pulsar to display itself as being broken using the given Graphics.

displayBroken(Graphics). Method in class gerken.vehicles.Light

Tell the Light to display itself as being broken using the given Graphics.

displayBroken(Graphics). Method in class gerken.vehicles.ScenarioBorder

Redraw the receiver (draws a rectangle around the scenario simulation region).

displayBroken(Graphics). Method in class gerken.vehicles.SimulationParticipant

Display the receiver in such a way as to indicate that the receiver is broken.

displayBroken(Graphics). Method in class gerken.vehicles.Vehicle

"Erase" the old screen representation by drawing the vehicle in its old location using the background color.

DisplayCoordinates(int, int). Constructor for class gerken.vehicles.DisplayCoordinates
This method written by Chris Gerken (gerken
distanceFrom(Location). Method in class gerken.vehicles.Location

Calculate and return the distance from this location to Location l


E

ExcitatoryConnection(NetworkNode, NetworkNode). Constructor for class gerken.vehicles.ExcitatoryConnection

Return an ExcitatoryConnection that connects node f to node t with weight 1.

ExcitatoryConnection(NetworkNode, NetworkNode, int). Constructor for class gerken.vehicles.ExcitatoryConnection

Return an ExcitatoryConnection that connects node f to node t with weight w.


F

fire(). Method in class gerken.vehicles.NetworkNode

If the node is not inhibited and if the input sum exceeds the threshhold, the node fires.


G

getAngleTo(Location). Method in class gerken.vehicles.SimulationParticipant

Return the angle from the receiver to the location.

getBackground(). Method in class gerken.vehicles.VehicleScenario

Return the Color used to paint the SimulationWindow's background.

getBreakDistance(). Method in class gerken.vehicles.Vehicle

Return the maximum distance from this vehicle can be broken (rendered inactive) or from which this vehicle can break other participants.

getBreaks(). Method in class gerken.vehicles.Vehicle

Return a Vector containing the colors of participants that this vehicle can break.

getBrightness(). Method in class gerken.vehicles.SimulationParticipant

Return the brightness of this participant.

getBrightnessFrom(SimulationParticipant). Method in class gerken.vehicles.SimulationParticipant

Calculate and return the brightness of an object.

getBrokenBy(). Method in class gerken.vehicles.Vehicle

Return a Vector containing the colors of participants that can break this vehicle.

getCenterX(). Method in class gerken.vehicles.VehicleScenario

Return the x coordinate of the center of the scenario's simulation area

getCenterY(). Method in class gerken.vehicles.VehicleScenario

Return the y coordinate of the center of the scenario's simulation area

getClosestTo(Location). Method in class gerken.vehicles.VehicleScenario

Return the participant closest to the given Location.

getColor(). Method in class gerken.vehicles.ScenarioBorder

The border for a scenario is always drawn in white.

getColor(). Method in class gerken.vehicles.SimulationParticipant

Return the participant's color.

getDebugText(). Method in class gerken.vehicles.SimulationParticipant

Tell the user what we can about the participant's execution state.

getDebugText(). Method in class gerken.vehicles.Vehicle

Build and return a String containing execution state for the vehicle

getDescription(). Method in class gerken.vehicles.Light

Return a string describing this light.

getDescription(). Method in class gerken.vehicles.Pulsar

Return a string describing this pulsar.

getDescription(). Method in class gerken.vehicles.ScenarioBorder

Return a string describing this light.

getDescription(). Method in class gerken.vehicles.SimulationParticipant

getDescription(). Method in class gerken.vehicles.Vehicle

Return a string describing this vehicle.

getDescription(). Method in class gerken.vehicles.VehicleNetwork

Return the network's descriptive name

getDirection(). Method in class gerken.vehicles.Vehicle

Return the direction in which this vehicle is heading.

getDisplayCoordinates(). Method in class gerken.vehicles.SimulationParticipant

Return the DisplayCoordinates cooresponding to the participant's location

getDisplayCoordinates(DisplayCoordinates). Method in class gerken.vehicles.VehicleScenario

Perform transformations on a DisplayCoordinates to get the corresponding Location.

getDisplayCoordinates(Location). Method in class gerken.vehicles.VehicleScenario

Perform transformations on a Location to get the DisplayCoordinates that correctly represent that point in a SimulatorWindow.

getFired(). Method in class gerken.vehicles.NetworkNode

Return whether the node fired during the most recent simulation step.

getHeight(). Method in class gerken.vehicles.VehicleScenario

Return the height in pixels of the simulation area

getInhibited(). Method in class gerken.vehicles.NetworkNode

Return whether or not the node has been inhibited from firing during the next simulation step.

getInput(). Method in class gerken.vehicles.NetworkNode

Return the sum of the node's inputs from the most recent simulation step.

getInput(). Method in class gerken.vehicles.Receptor

Return the light input to the receptor as an integer value.

getIsActive(). Method in class gerken.vehicles.SimulationParticipant

Return whether the participant is still active in the simulation.

getLeftAngle(). Method in class gerken.vehicles.Receptor

Get the counterclockwise-most boundary angle of the receptor's field of vision.

getLightInput(). Method in class gerken.vehicles.Receptor

Return the amount of light received by the receptor.

getLocation(). Method in class gerken.vehicles.SimulationParticipant

Return a Location representing the participants location

getMargin(). Method in class gerken.vehicles.VehicleScenario

Return the width in pixels of the space between the simulaiton border and the edge of the screen.

getName(). Method in class gerken.vehicles.NetworkNode

Return the node's name.

getOffsetTo(Location). Method in class gerken.vehicles.SimulationParticipant

Return the offset (in the form of a Location) from the receiver to the location.

getParticipants(). Method in class gerken.vehicles.VehicleScenario

Return a vector containing all of the registered participants for the scenario.

getRandomDirection(). Method in class gerken.vehicles.VehicleScenario

Return a random direction

getRandomX(). Method in class gerken.vehicles.VehicleScenario

Return a random x coordinate between 0.0 and the scenario's width inclusive

getRandomY(). Method in class gerken.vehicles.VehicleScenario

Return a random y coordinate between 0.0 and the scenario's height inclusive

getRightAngle(). Method in class gerken.vehicles.Receptor

Get the clockwise-most boundary angle of the receptor's field of vision.

getSaturated(). Method in class gerken.vehicles.Receptor

Return whether this receptor has total light inputs that exceed its threshhold.

getScenario(). Method in class gerken.vehicles.SimulationParticipant

Return the scenario in charge of the participant's simulation.

getSeesColor(). Method in class gerken.vehicles.Receptor

Return the color seen by the receptor.

getSimulationParticipantsColored(Color). Method in class gerken.vehicles.VehicleScenario

Return a Vector containing all of the registered simulation participants with color c.

getSpeed(). Method in class gerken.vehicles.Vehicle

Return the distance traveled by this vehicle when both wheels move forward.

getVariableBrightness(). Method in class gerken.vehicles.Pulsar

Return the current brightness based on phase and period.

getVectorLength(). Method in class gerken.vehicles.Location

Return the distance from the receiver to the origin.

getWeight(). Method in class gerken.vehicles.ExcitatoryConnection

Return the connection's weight.

getWidth(). Method in class gerken.vehicles.VehicleScenario

Return the width of the scenario simulation area.

getWrapsAround(). Method in class gerken.vehicles.VehicleScenario

Return whether or not vehicles can "see" and "travel" over borders to the other side of the scenario simulation area.

getX(). Method in class gerken.vehicles.DisplayCoordinates

Return the x coordinate

.
getX(). Method in class gerken.vehicles.Location

Return the X value as an double

getX(). Method in class gerken.vehicles.SimulationParticipant

Return the participant's x coordinate.

getY(). Method in class gerken.vehicles.DisplayCoordinates

Return the y coordinate

getY(). Method in class gerken.vehicles.Location

Return the Y value as an double

getY(). Method in class gerken.vehicles.SimulationParticipant

Return the participant's y coordinate.

go(). Method in class gerken.vehicles.VehicleScenario

Begin continuous simulation.

green(). Static method in class gerken.vehicles.VehicleNetwork

Build and return a vehicle network that veers its vehicle toward a white light.

green(double, double, double). Static method in class gerken.vehicles.Vehicle

Return a basic green vehicle.


H

halt(). Method in class gerken.vehicles.VehicleScenario

Stop continuous simulation.

hasPointLocation(). Method in class gerken.vehicles.Light

Answer true to indicate that this light does in fact have a location.

hasPointLocation(). Method in class gerken.vehicles.ScenarioBorder

The ScenarioBorder is an object that represents the border of a scenario simulation region and therefore has no single point location.

hasPointLocation(). Method in class gerken.vehicles.SimulationParticipant

Return whether the participant has a single point position.

hasPointLocation(). Method in class gerken.vehicles.Vehicle

Vehicles have single point locations, so answer true.

HiddenNode(int, String). Constructor for class gerken.vehicles.HiddenNode

Return a hidden node with threshhold t.


I

InhibitoryConnection(NetworkNode, NetworkNode). Constructor for class gerken.vehicles.InhibitoryConnection

Return a connection that inhibits the firing of node t (the "to" node) whenever node f (the "from" node) fires.

intX(). Method in class gerken.vehicles.Location

Return the X value as an integer

intY(). Method in class gerken.vehicles.Location

Return the Y value as an integer


L

lemming(). Static method in class gerken.vehicles.VehicleNetwork

Build and return a vehicle network that follows others of its kind.

lemming(double, double, double). Static method in class gerken.vehicles.Vehicle

Return a lemming vehicle

Light(double, double, Color). Constructor for class gerken.vehicles.Light

Return a light at location (x,y) which produces c colored light.

Location(double, double). Constructor for class gerken.vehicles.Location

Return a Location object representing coordinates (x,y).


M

moveForward(). Method in class gerken.vehicles.Vehicle

Calculate and save the vehicle's new position assuming that both wheels move.


N

nodeNamed(String). Method in class gerken.vehicles.VehicleNetwork

Return the registered node named name.

normalizeAngle(double). Method in class gerken.vehicles.VehicleNetwork

Return the equivalent angle (in radians, between + and - pi)


O

orbiter(Color). Static method in class gerken.vehicles.VehicleNetwork

Build and return a vehicle network that orbits any c-colored light.

orbiter(double, double, double, Color, Color). Static method in class gerken.vehicles.Vehicle

Return a vehicle that orbits participants colored orbitedColor.


P

Pulsar(double, double, double, Color). Constructor for class gerken.vehicles.Pulsar

Return a Pulsar at location (x,y) which produces c colored light and whose brightness will vary for a period of length p steps.


R

Receptor(double, double, Color, int, String). Constructor for class gerken.vehicles.Receptor

Return a receptor whose field of vision lies between angle l to the left and angle r to the right.

red(). Static method in class gerken.vehicles.VehicleNetwork

Build and return a vehicle network that veers its vehicle first toward and then away from a white light.

red(double, double, double). Static method in class gerken.vehicles.Vehicle

Return a basic red vehicle.

removeParticipant(SimulationParticipant). Method in class gerken.vehicles.VehicleScenario

Remove (unregister) a participant from the simulation.

run(). Method in class gerken.vehicles.VehicleScenario

Begin simulation of this scenario on a new thread.

runLeftMotor(). Method in class gerken.vehicles.Vehicle

Return whether the motor driving the left wheel will run during this simulation step.

runRightMotor(). Method in class gerken.vehicles.Vehicle

Return whether the motor driving the right wheel will run during this simulation step.


S

ScenarioBorder(). Constructor for class gerken.vehicles.ScenarioBorder
Return a new ScenarioBorder.
seesAngle(double). Method in class gerken.vehicles.Receptor

Determine whether angle lies between the receiver's leftAngle and rightAngle.

setBrightness(double). Method in class gerken.vehicles.SimulationParticipant

Set the participant's brightness.

setColor(Color). Method in class gerken.vehicles.VehicleScenario

Set the current foreground color on the SimulationWIndows's Canvas.

setColorToBackground(). Method in class gerken.vehicles.VehicleScenario

Convenience method to set the current forground color for the SimulationWindow's Canvas to that Canvas' background color.

setDescription(String). Method in class gerken.vehicles.VehicleNetwork

Set the network's desriptive name.

setFired(boolean). Method in class gerken.vehicles.NetworkNode

Set whether the network node has fired.

setFrom(NetworkNode). Method in class gerken.vehicles.NetworkConnection

Set the from node.

setInhibited(boolean). Method in class gerken.vehicles.NetworkNode
Set whether this node is inhibited from firing.

setInput(int). Method in class gerken.vehicles.NetworkNode

Set the total input value.

setIsActive(boolean). Method in class gerken.vehicles.SimulationParticipant

Set whether the participant is still active in the simulation.

setLeftAngle(double). Method in class gerken.vehicles.Receptor

Set the counterclockwise-most boundary angle of the receptor's field of vision.

setLeftMotorNode(NetworkNode). Method in class gerken.vehicles.VehicleNetwork

Specify the node to be connected to the vehicle's left wheel motor.

setName(String). Method in class gerken.vehicles.NetworkNode

Set the node's name.

setRightAngle(double). Method in class gerken.vehicles.Receptor

Set the clockwise-most boundary angle of the receptor's field of vision.

setRightMotorNode(NetworkNode). Method in class gerken.vehicles.VehicleNetwork

Specify the node to be connected to the vehicle's right wheel motor.

setSpeed(double). Method in class gerken.vehicles.Vehicle

Set the distance this vehicle will move when both wheels move forward.

setTo(NetworkNode). Method in class gerken.vehicles.NetworkConnection

Set the to node for the connection.

setWeight(int). Method in class gerken.vehicles.ExcitatoryConnection

Set the connection's weight.

setX(double). Method in class gerken.vehicles.SimulationParticipant

Set the participant's x coordinate.

setY(double). Method in class gerken.vehicles.SimulationParticipant

Set the participant's y coordinate.

standStill(). Method in class gerken.vehicles.Vehicle

Calculate the vehicle's new position should it not move (hint: the position doesn't change.

start(). Method in class gerken.vehicles.VehicleScenario

Put up a SimulationWindow for the scenario and display the initial positions of the scenario's registered participants.

step(). Method in class gerken.vehicles.Light

Perform light-specific simulation tasks

step(). Method in class gerken.vehicles.Pulsar

Increment the number of steps that have passed and use that number to calculate the new brightness.

step(). Method in class gerken.vehicles.ScenarioBorder

Perform border-specific simulation tasks

step(). Method in class gerken.vehicles.SimulationParticipant
This method written by Chris Gerken (gerken
step(). Method in class gerken.vehicles.Vehicle

Perform the simulation logic for a single step.

step(). Method in class gerken.vehicles.VehicleScenario

Perform a single step in the scenario's simulation.


T

toString(). Method in class gerken.vehicles.DisplayCoordinates

Return a text representation of the receiver.

toString(). Method in class gerken.vehicles.Location

Return a text representation of the receiver.

turn(double). Method in class gerken.vehicles.Vehicle

Turn the vehicle's direction by angle.

turnAngle(). Method in class gerken.vehicles.Vehicle

Return the angle in radians that a vehicle will turn when only one of its wheels move.

turnLeft(). Method in class gerken.vehicles.Vehicle

Turn the vehicle to the left.

turnRight(). Method in class gerken.vehicles.Vehicle

Turn the vehicle to the right.


U

updateToNode(). Method in class gerken.vehicles.ExcitatoryConnection

Check to see if the from node has fired.

updateToNode(). Method in class gerken.vehicles.InhibitoryConnection

Check to see if the from node has fired.

updateToNode(). Method in class gerken.vehicles.NetworkConnection

Take action against the connection's to node, but only if the from node has fired.


V

Vehicle(double, double, double, Color, VehicleNetwork). Constructor for class gerken.vehicles.Vehicle
Return a vehicle at location (x,y), facing in direction d, colored c and driven by network n.

VehicleNetwork(). Constructor for class gerken.vehicles.VehicleNetwork

Return a new vehicle network.

VehicleScenario(int, int, boolean). Constructor for class gerken.vehicles.VehicleScenario

Return a vehicle scenario that covers an area w pixels wide and h pixels high.

verifyLocation(SimulationParticipant). Method in class gerken.vehicles.VehicleScenario

Check to see if the participant sits outside of the ScenarioBoundary.


Y

yellow(). Static method in class gerken.vehicles.VehicleNetwork

Build and return a vehicle network that veers its vehicle toward a white light.

yellow(double, double, double). Static method in class gerken.vehicles.Vehicle

Return a basic yellow vehicle.