Overview | Package | Class | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

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

## A

acceptGap() - Method in class TurnOffJunctionModel
actionPerformed(ActionEvent) - Method in class Main
  Handles events.
actionPerformed(ActionEvent) - Method in class GraphPopup
actionPerformed(ActionEvent) - Method in class InputPopup
actionPerformed(ActionEvent) - Method in class JunctionPopup
actionPerformed(ActionEvent) - Method in class Popup
actionPerformed(ActionEvent) - Method in class StatsPopup
AdaptiveSig1JunModel - class AdaptiveSig1JunModel.
AdaptiveSig1JunModel(int, Shape, int, boolean, RoadNetwork) - Constructor for class AdaptiveSig1JunModel
AdaptiveSig2JunModel - class AdaptiveSig2JunModel.
AdaptiveSig2JunModel(int, Shape, int, boolean, RoadNetwork) - Constructor for class AdaptiveSig2JunModel
add(ImmutableList, Object) - Static method in class time.ImmutableList
addAttribute(XMLAttribute) - Method in class XML.XMLElement
  Add a new attribute to the attribute list
addButton(String, int, int, boolean) - Method in class Popup
addCar(Car) - Method in class CarContainer
addCheckBox(String, int, int, boolean) - Method in class Popup
addComboBox(String[], int, int, int) - Method in class Popup
addEndLane(int, int) - Method in class JunctionModel
addLabel(String, int, int) - Method in class Popup
addLaneSection(int, int, int, int) - Method in class LaneModel
addRadioButton(String, boolean, int, int, ButtonGroup) - Method in class Popup
addSeperator(int, int) - Method in class Popup
addStartLane(int, int) - Method in class JunctionModel
addTextField(int, int, int) - Method in class Popup
addTimed(Timed) - Method in class time.TimeManager
  Method to add an object to the timer
addTimerToElements(TimeManager) - Method in class RoadNetwork
  Adds timed elements to the global clock.
addToTimer(TimeManager) - Method in class CarGenerator
addToTimer(TimeManager) - Method in class JunctionModel
adjustmentValueChanged(AdjustmentEvent) - Method in class time.TimeManager
  A method to change the timers delay.
anycollisions(Car) - Method in class CarContainer
APPEND_TO_END_OF_ROAD - Static variable in class RoadDesigner
APPEND_TO_START_OF_ROAD - Static variable in class RoadDesigner
appendToEndOfRoad(int, int) - Method in class Road
appendToStart(int, int, GeneralPath) - Static method in class Utils.GPathUtils
  returns a path equal to "path" but with an extra initial section
appendToStartOfRoad(int, int) - Method in class Road
AppletButton - class AppletButton.
AppletButton() - Constructor for class AppletButton
AREA - Variable in class Car
attachRoad(int, int, boolean) - Method in class Junction
attributes - Variable in class XML.XMLElement
AVERAGE - Static variable in class InputPopup

## B

BridgeJunctionModel - class BridgeJunctionModel.
BridgeJunctionModel(int, int, int, Shape, RoadNetwork) - Constructor for class BridgeJunctionModel
BUSY - Static variable in class InputPopup
busyness - Variable in class Road
busyness - Variable in class LaneModel

## C

calculateBoundaryPath(boolean) - Method in class Road
calculateGeneralDirection(int, int, int, int) - Static method in class Utils.GeoUtils
calculateGeneralDirection(Line2D) - Static method in class Utils.GeoUtils
calculateLeftSide() - Method in class Road
calculateRightSide() - Method in class Road
calculateShape() - Method in class Road
CALM - Static variable in class InputPopup
canMoveOn(boolean) - Method in class Main
  Tests if the roadDesigner is in a valid state to move to a simulation.
Car - class Car.
Car(LaneSection, CarGenerator, TimeManager, int) - Constructor for class Car
CarContainer - class CarContainer.
CarContainer(int, int, int, int, int) - Constructor for class CarContainer
carGenerator - Variable in class Car
carGenerator - Variable in class RoadNetwork
CarGenerator - class CarGenerator.
CarGenerator(RoadNetwork, int) - Constructor for class CarGenerator
carPath - Variable in class Car
carQueue - Variable in class LaneModel
carRoutes - Static variable in class Car
carsEntered - Static variable in class Car
carsExited - Static variable in class Car
carShape - Variable in class Car
carsOnConflictingPath(CarContainer) - Method in class TurnOffJunctionModel
carsOnPriorityLane() - Method in class TurnOffJunctionModel
centerLine - Static variable in class Road
centerX() - Method in class Car
centerY() - Method in class Car
changeDelay(int) - Method in class SimPanel
changeDelay(int) - Method in class time.TimeManager
  A method to change the timers delay.
changeLocation(float, float) - Method in class Junction
changeType() - Method in class Junction
checkappendLimits(int, int) - Method in class Road
  Checks whether its valid to append to the start of this road given the angle that the road would be created at.
checkBoundsWith(Line2D, Line2D, Line2D, Line2D, Rectangle2D) - Method in class Road
checkextendLimits(int, int) - Method in class Road
  Checks whether its valid to extend the end of this road given the angle that the road would be created at.
checkSetUp() - Method in class Car
clear() - Method in class RoadDesigner
CLICKED_ON_HANDLE - Static variable in class RoadDesigner
CLICKED_ON_JUNCTION - Static variable in class RoadDesigner
clipAllRoads() - Method in class RoadDesigner
close() - Method in class XML.XMLLoader
close() - Method in class XML.XMLSaver
collectPhase - Variable in class GiveWayJunctionModel
collide(Car) - Method in class Car
componentHidden(ComponentEvent) - Method in class JunctionPopup
componentHidden(ComponentEvent) - Method in class RoadDesigner
componentMoved(ComponentEvent) - Method in class JunctionPopup
componentMoved(ComponentEvent) - Method in class RoadDesigner
componentResized(ComponentEvent) - Method in class JunctionPopup
componentResized(ComponentEvent) - Method in class RoadDesigner
componentShown(ComponentEvent) - Method in class JunctionPopup
componentShown(ComponentEvent) - Method in class RoadDesigner
contains(Point2D) - Method in class Junction
convertToArrayConvienient(int) - Method in class JunctionModel
createAnyLeft(int, int) - Method in class JunctionModel
createAnyOpposite(int, int) - Method in class JunctionModel
createAnyRight(int, int) - Method in class JunctionModel
createcorrespondingLeft(int, int) - Method in class JunctionModel
createcorrespondingRight(int, int) - Method in class JunctionModel
createLeftTurns(int, int) - Method in class JunctionModel
createPathBetween(int, int, int) - Method in class JunctionModel
createPathBetween(int, int, int, int) - Method in class JunctionModel
createPathToOppositeSide(int, int) - Method in class JunctionModel
createRightTurns(int, int) - Method in class JunctionModel
currentElement - Variable in class XML.XMLLoader
currentIndex - Variable in class RoadNetwork
cutOffAt(double, double) - Method in class Road
cutOffAt(int) - Method in class Road

## D

DEBUG - Static variable in class Main
deepClone() - Method in class Road
deepClone(int) - Method in class Road
DELETE - Static variable in class RoadDesigner
dettachRoad(int) - Method in class Junction
distanceToEnd - Variable in class Car
DONT_DRAW - Static variable in class RoadDesigner
DRAG_JUNCTION - Static variable in class RoadDesigner
DRAG_LEFT_ROAD_EDGE - Static variable in class RoadDesigner
DRAG_RIGHT_ROAD_EDGE - Static variable in class RoadDesigner
DRAG_ROAD_HANDLE - Static variable in class RoadDesigner
DRAG_ROAD_MIDDLE - Static variable in class RoadDesigner
DRAW_INITIAL_ROAD - Static variable in class RoadDesigner
DRAW_JUNCTION - Static variable in class RoadDesigner
DRAW_ROAD - Static variable in class RoadDesigner
drawAllCars(Graphics2D) - Method in class BridgeJunctionModel
drawAllCars(Graphics2D) - Method in class CarContainer
drawAllCars(Graphics2D) - Method in class JunctionModel
drawAllCars(Graphics2D) - Method in class LaneModel
drawAllGhostCars(Graphics2D) - Method in class JunctionPath
drawAllNeatenedRoads(Graphics2D) - Method in class RoadDesigner
drawCar(Graphics2D) - Method in class Car
drawDirectedMidPoints(Graphics2D) - Method in class Road
drawGhostCar(Graphics2D) - Method in class Car
drawHandledJunction(Graphics2D) - Method in class Junction
drawHandles(Graphics2D) - Method in class Road
drawIDs(Graphics2D, int) - Method in class CarContainer
drawJunctionFeatures(Graphics2D) - Method in class JunctionModel
drawJunctionFeatures(Graphics2D) - Method in class Sig1JunctionModel
  Draws the junction traffic lights with the correct colour
drawNetworkComponents(Graphics2D) - Method in class RoadNetwork
  Draws all the cars known to the road network.
drawRoad(Graphics2D) - Method in class Road
  Draws all the paths in "pathArray" (a GeneralPath[])
drawSimpleJunction(Graphics2D) - Method in class Junction
drawSimpleJunction(Graphics2D, float[], float[], Shape) - Method in class Junction

## E

EAST - Static variable in class Utils.GeoUtils
ei - Variable in class JunctionModel
elements(ImmutableList) - Static method in class time.ImmutableList
ended() - Method in class AppletButton
endJunctionID - Variable in class LaneModel
endJunctionIndex - Variable in class LaneModel
endJunctionSide - Variable in class LaneModel
endLanesID - Variable in class JunctionModel

## G

generateAdaptivePath() - Method in class RoadNetwork
  Tries to discover the longest path of junctions back to back.
generatePaths() - Method in class BridgeJunctionModel
generatePaths() - Method in class JunctionModel
generatePaths() - Method in class Sig1JunctionModel
generatePaths() - Method in class Sig2JunctionModel
generatePaths() - Method in class TurnOffJunctionModel
GeoUtils - class Utils.GeoUtils.
GeoUtils() - Constructor for class Utils.GeoUtils
getAdaptivePath() - Method in class RoadNetwork
  Tries to syncronize the junctions on a junction path found earlier.
getAllJunctions() - Method in class RoadDesigner
getAngle(double, double, double, double) - Static method in class Utils.GeoUtils
  Returns the angle between line (x1,y1)->(x2,y2) and the positive x-axis in Radians
getAngle(Line2D) - Static method in class Utils.GeoUtils
getAngleDiff(double, double) - Static method in class Utils.GeoUtils
getAngledLine(double, double, double, int) - Static method in class Utils.GeoUtils
  draw a line at "x","y" at angle "angle" and length "length".
getAnOpositeLaneFromEdge(int) - Method in class JunctionModel
getAnOpositeLaneFromJunction(JunctionModel) - Method in class JunctionModel
getAnyOutputLane(int) - Method in class JunctionModel
getAttribute(String) - Method in class XML.XMLElement
getAttributeIndex(String) - Method in class XML.XMLElement
getAttributesArray() - Method in class XML.XMLElement
getavCarsOnScreen() - Method in class SimPanel
getavCongestion() - Method in class SimPanel
getAverageAngle(GeneralPath) - Static method in class Utils.GPathUtils
getAverageDirection(GeneralPath) - Static method in class Utils.GPathUtils
getAverageSpeed() - Method in class RoadNetwork
  Gets the speed of all the cars in the roadnetwork and calculates an average value to display on screen.
getavSpeed() - Method in class SimPanel
getbackdrop() - Method in class RoadDesigner
getBooleanValue() - Method in class XML.XMLAttribute
getBranchName() - Method in class XML.XMLStack
getCar(Point2D) - Method in class CarContainer
  Due to mouse Events
getCar(Point2D) - Method in class JunctionModel
getCar(Point2D) - Method in class LaneModel
  Due to mouse Events
getCar(Point2D) - Method in class RoadNetwork
  Gets the car under the mouse click.
getCenter() - Method in class JunctionModel
getClosestNotEmptySide(Point2D) - Method in class Junction
getCloseTag() - Method in class XML.XMLElement
getDirectionString(int) - Static method in class Utils.GeoUtils
getDistance(double, double, double, double) - Static method in class Utils.GeoUtils
getDistance(double, double, Point2D) - Static method in class Utils.GeoUtils
getDistance(Point2D, Point2D) - Static method in class Utils.GeoUtils
getDistanceToNext() - Method in class Car
getDoubleValue() - Method in class XML.XMLAttribute
getdx() - Method in class CarContainer
getdy() - Method in class CarContainer
getEastSide() - Method in class Junction
getEndHandle() - Method in class Road
getEndingXCoord() - Method in class LaneModel
getEndingYCoord() - Method in class LaneModel
getEndLaneID() - Method in class JunctionPath
getEndLaneSection() - Method in class LaneModel
getEndOfPath(GeneralPath) - Static method in class Utils.GPathUtils
  returns the ending point of "path"
getendX() - Method in class CarContainer
getendY() - Method in class CarContainer
getFirstDir(GeneralPath, int) - Method in class Junction
getFirstIndex(GeneralPath) - Method in class Junction
getFirstIntersection(GeneralPath, int) - Method in class Junction
getFirstLine(GeneralPath) - Static method in class Utils.GPathUtils
getFirstLineAngle() - Method in class Road
getFirstNonEmptyDir(GeneralPath, int) - Method in class Junction
getFloatValue() - Method in class XML.XMLAttribute
getFuturePath() - Method in class Car
  Shows the path that the car has planned to take
getGeneralDirection() - Method in class CarContainer
getGradient() - Method in class CarContainer
getHandle(Point2D) - Method in class Road
getID() - Method in class Junction
getID() - Method in class Road
getID() - Method in class CarContainer
getID() - Method in class JunctionModel
getID() - Method in class LaneModel
getIndexPoint(int, GeneralPath) - Static method in class Utils.GPathUtils
getInputQ(int, int) - Method in class RoadNetwork
getIntersectPoint(double, double, double, double, double, double, double, double, boolean) - Static method in class Utils.GeoUtils
getIntersectPoint(double, double, double, double, GeneralPath) - Static method in class Utils.GPathUtils
getIntersectPoint(double, double, double, double, Line2D, boolean) - Static method in class Utils.GeoUtils
getIntersectPoint(Line2D, GeneralPath) - Static method in class Utils.GPathUtils
getIntersectPoint(Line2D, Line2D, boolean) - Static method in class Utils.GeoUtils
getIntersectPoint(Point2D, GeneralPath, GeneralPath) - Static method in class Utils.GPathUtils
getIntValue() - Method in class XML.XMLAttribute
getJunction(int) - Method in class RoadNetwork
getjunctionID(Point2D) - Method in class RoadDesigner
getjunctionSide(Point2D) - Method in class RoadDesigner
getJunctionSide(Point2D) - Method in class Junction
getJunctionVars(Point2D) - Method in class RoadNetwork
  Gives information to the user about whatever they clicked on.
getLane(int) - Method in class Road
getLane(int) - Method in class RoadNetwork
getLaneEndPoint(int) - Method in class Road
getLanes() - Method in class Road
getLaneSection(int) - Method in class LaneModel
getLaneStartPoint(int) - Method in class Road
getLastDir(GeneralPath, int, int) - Method in class Junction
getLastHalf(Line2D) - Static method in class Utils.GeoUtils
getLastIndex(GeneralPath, int) - Method in class Junction
getLastIntersection(GeneralPath, int, int) - Method in class Junction
getLastLine(GeneralPath) - Static method in class Utils.GPathUtils
getLastLineAngle() - Method in class Road
getLastNonEmptyDir(GeneralPath, int, int) - Method in class Junction
getLeftDir(int) - Method in class JunctionModel
getLeftDirection(int) - Static method in class Utils.GeoUtils
getLightsFrom(int) - Method in class JunctionModel
getLightsTo(int) - Method in class JunctionModel
getLine(int) - Method in class Road
getLineSect(int, GeneralPath) - Static method in class Utils.GPathUtils
  Returns a Line2D indexed by pos.
getMidPoint(Point2D) - Method in class Road
getMidPoint(Point2D, Point2D) - Static method in class Utils.GeoUtils
getMidPointInLane(GeneralPath, Point2D) - Method in class Road
  returns the mid-point arrow on "lane" that matched "point".
getMidPointsCenter() - Method in class Junction
getMidX() - Method in class CarContainer
getMidY() - Method in class CarContainer
getName() - Method in class XML.XMLAttribute
getName(int) - Static method in class Junction
getNearestLine(Point2D) - Method in class Road
getNearestLine(Point2D, GeneralPath) - Static method in class Utils.GPathUtils
getNextElementName() - Method in class XML.XMLLoader
getnextLane(int) - Method in class JunctionModel
getNextLightSet(int) - Method in class Sig1JunctionModel
getNextObInFront(Car, double) - Method in class CarContainer
  given the front of the "currentcar", this returns the shortest distance between the front of the "currentcar" and the back of the car in front.
getNextValidLightSet() - Method in class Sig1JunctionModel
getNorthSide() - Method in class Junction
getNumArrayElements() - Method in class Road
  returns the number of initilized elements of a GeneralPath[]
getNumberInputs() - Method in class RoadNetwork
getNumberOfLaneSections() - Method in class LaneModel
getNumberOfSections() - Method in class Road
getNumLanes() - Method in class Road
getNumLeftLanes() - Method in class Road
getNumPathPoints(GeneralPath) - Static method in class Utils.GPathUtils
  returns the number path points of "path".
getNumPathSections(GeneralPath) - Static method in class Utils.GPathUtils
  returns the number of path sections.
getNumRightLanes() - Method in class Road
getOpDir(int) - Method in class JunctionModel
getOpenTag() - Method in class XML.XMLElement
getOppositeDirection(int) - Static method in class Utils.GeoUtils
getParentID() - Method in class CarContainer
getParentID() - Method in class JunctionPath
getParentID() - Method in class LaneSection
getPathFromIndex(int, GeneralPath) - Static method in class Utils.GPathUtils
getPathToIndex(int, GeneralPath) - Static method in class Utils.GPathUtils
getPreferredSize() - Method in class RoadDesigner
getPriority(int) - Method in class Junction
getRadAngle() - Method in class CarContainer
getRectangleCenter(Rectangle) - Static method in class Utils.GeoUtils
getRightDir(int) - Method in class JunctionModel
getRightDirection(int) - Static method in class Utils.GeoUtils
getRoad(int) - Method in class RoadDesigner
getRoadLeftSide() - Method in class Road
getRoadLeftWidth() - Method in class Road
getRoadRightSide() - Method in class Road
getRoadRightWidth() - Method in class Road
getRoadSide(boolean) - Method in class Road
getRoadSide(int, int) - Method in class Road
getRoadWidth() - Method in class Road
getSectionFrom(int, double, double) - Method in class Road
getSectionFrom(int, int) - Method in class Road
getShape() - Method in class Junction
getShape() - Method in class Road
getsharedPath(JunctionModel) - Method in class JunctionModel
getSignalledJunctionTexture() - Method in class Junction
getSouthSide() - Method in class Junction
getSpeedOfNext() - Method in class Car
getSpeeds() - Method in class CarContainer
getSpeeds() - Method in class JunctionModel
getSpeeds() - Method in class LaneModel
getSpeedString() - Method in class Car
getStartHandle() - Method in class Road
getStartingLaneSection() - Method in class LaneModel
getStartingXCoord() - Method in class LaneModel
getStartingYCoord() - Method in class LaneModel
getStartOfPath(GeneralPath) - Static method in class Utils.GPathUtils
  returns the starting point of "path"
getstartX() - Method in class CarContainer
getstartY() - Method in class CarContainer
getStringValue() - Method in class XML.XMLAttribute
getTotalLength() - Method in class LaneModel
getTotalRoadLength() - Method in class RoadNetwork
getType() - Method in class Junction
getUnknownJunctionTexture() - Method in class RoadDesigner
getValue() - Method in class XML.XMLAttribute
getWestSide() - Method in class Junction
getXMLName() - Method in class Main
getXMLName() - Method in class Junction
getXMLName() - Method in class Road
getXMLName() - Method in class RoadDesigner
getXMLName() - Method in interface XML.XMLSerializable
getXPointAtAngle(double, double, double) - Static method in class Utils.GeoUtils
  Uses the SOHCAHTOA triangle to return the horizontal x point "length" away from "x" at "angle" degrees.
getYPointAtAngle(double, double, double) - Static method in class Utils.GeoUtils
  Uses the SOHCAHTOA triangle to return the vertical y point "length" away from "y" at "angle" degrees.
giveInfo() - Method in class AdaptiveSig1JunModel
  Due to mouse Events
giveInfo() - Method in class AdaptiveSig2JunModel
  Due to mouse Events
giveInfo() - Method in class BridgeJunctionModel
  Due to mouse Events
giveInfo() - Method in class GiveWayJunctionModel
  Due to mouse Events
giveInfo() - Method in class JunctionModel
  Due to mouse Events
giveInfo() - Method in class Sig1JunctionModel
  Due to mouse Events
giveInfo() - Method in class Sig2JunctionModel
  Due to mouse Events
giveInfo() - Method in class TurnOffJunctionModel
  Due to mouse Events
GiveWayJunctionModel - class GiveWayJunctionModel.
GiveWayJunctionModel(int, int, int, Shape, RoadNetwork) - Constructor for class GiveWayJunctionModel
GPathUtils - class Utils.GPathUtils.
GPathUtils() - Constructor for class Utils.GPathUtils
GraphPopup - class GraphPopup.
GraphPopup(SimPanel) - Constructor for class GraphPopup
gridSize - Static variable in class RoadDesigner

## H

halflength - Variable in class Car
halfPI - Static variable in class Road
halfwidth - Variable in class Car
hasCars() - Method in class CarContainer
hasInputOf(int) - Method in class JunctionModel

## I

iD - Variable in class Car
iD - Variable in class JunctionModel
ImmutableList - class time.ImmutableList.
  Class providing functions to create a immutable list.
indent() - Method in class XML.XMLSaver
inFrontInfo - Variable in class Car
init() - Method in class AppletButton
InputPopup - class InputPopup.
InputPopup(Road, int, int) - Constructor for class InputPopup
intersects(Point2D) - Method in class Junction
isEmpty() - Method in class Road
isEndHandle(Point2D) - Method in class Road
isFirstOne() - Method in class CarContainer
isInCenterLane(Point2D) - Method in class Road
isLastOne() - Method in class CarContainer
isLastOne() - Method in class JunctionPath
isLastOne() - Method in class LaneSection
isOkToGo(Car, double) - Method in class LaneModel
isOKToGo(Car, double) - Method in class BridgeJunctionModel
isOKToGo(Car, double) - Method in class GiveWayJunctionModel
isOKToGo(Car, double) - Method in class JunctionModel
isOKToGo(Car, double) - Method in class Sig1JunctionModel
  Checks whether this signalled junction should allow a car to go or not.
isOKToGo(Car, double) - Method in class TurnOffJunctionModel
isOKToGo(Car, double[], double) - Method in class CarContainer
isOKToGo(Car, double[], double) - Method in class LaneSection
isOnLeftSide(int, int) - Method in class JunctionModel
isOnMapEdge() - Method in class JunctionModel
isOnRightSide(int, int) - Method in class JunctionModel
isPaused() - Method in class time.TimeManager
isSameDirection(GeneralPath, GeneralPath, double) - Static method in class Utils.GPathUtils
isSameLaneArrangement(Road) - Method in class Road
isSamePoint(double, double, double, double) - Static method in class Utils.GeoUtils
isSamePoint(double, double, Point2D) - Static method in class Utils.GeoUtils
isSamePoint(Point2D, Point2D) - Static method in class Utils.GeoUtils
isSignalled() - Method in class JunctionModel
isSignalled() - Method in class Sig1JunctionModel
isSimilarAngles(double, double, double) - Static method in class Utils.GeoUtils
isSingleLane() - Method in class Road
isStartHandle(Point2D) - Method in class Road
isSymetrical() - Method in class Road
isTheremoreCars(int) - Method in class GiveWayJunctionModel

## J

joinPaths(GeneralPath, GeneralPath) - Static method in class Utils.GPathUtils
  alters p1 to add p2 onto it
Junction - class Junction.
Junction(float, float, int, RoadDesigner) - Constructor for class Junction
junctionID - Static variable in class Junction
JunctionModel - class JunctionModel.
JunctionModel(int, Shape, RoadNetwork) - Constructor for class JunctionModel
JunctionPath - class JunctionPath.
JunctionPath(int, int, JunctionModel, int, int, int, int) - Constructor for class JunctionPath
JunctionPopup - class JunctionPopup.
JunctionPopup(Junction, int, int) - Constructor for class JunctionPopup
junctions - Variable in class RoadNetwork
junctionShape - Variable in class JunctionModel

## K

kill() - Method in class CarContainer
kill() - Method in class CarGenerator
kill() - Method in class JunctionModel
kill() - Method in class LaneModel
kill() - Method in class RoadNetwork
  Removes all the cars from the network.

## L

laneBackGround - Static variable in class Road
LaneModel - class LaneModel.
LaneModel(int, RoadNetwork, int, int, int, int) - Constructor for class LaneModel
lanes - Variable in class RoadNetwork
LaneSection - class LaneSection.
LaneSection(int, LaneModel, int, int, int, int) - Constructor for class LaneSection
laneSurface - Static variable in class Road
laneWidth - Static variable in class Road
length - Variable in class Car
loadChilds(XMLLoader) - Method in class Main
  Calls a load for the children of this class.
loadChilds(XMLLoader) - Method in class Junction
loadChilds(XMLLoader) - Method in class Road
loadChilds(XMLLoader) - Method in class RoadDesigner
loadChilds(XMLLoader) - Method in interface XML.XMLSerializable
loadObject(XMLSerializable) - Method in class XML.XMLLoader
loadSelf(XMLElement) - Method in class Main
  Loads all the attributes of this class.
loadSelf(XMLElement) - Method in class Junction
loadSelf(XMLElement) - Method in class Road
loadSelf(XMLElement) - Method in class RoadDesigner
loadSelf(XMLElement) - Method in interface XML.XMLSerializable

## M

Main - class Main.
  The main class deals with button clicks and menu items.
Main(AppletButton) - Constructor for class Main
  The Constructor sets the buttons up and initilises the Road-Editor panel.
main(String[]) - Static method in class Main
  Called as the application starts.
MAPEDGE - Static variable in class RoadNetwork
maxLaneNum - Static variable in class Road
maxNum - Variable in class JunctionModel
mergePaths(GeneralPath, GeneralPath) - Static method in class Utils.GPathUtils
  alters p1 to add p2 onto it, without p2 1st point
mergeRoad(Road) - Method in class Road
metersPerPixel - Static variable in class Car
modifyPathPoint(GeneralPath, Point2D, Point2D) - Static method in class Utils.GPathUtils
  returns a path equal to "path" but with the path point "pointToChange" at location of "newPoint".
modifyRoadHandle(boolean, Point2D) - Method in class Road
modifyRoadHandle(Point2D, Point2D) - Method in class Road
mouseClicked(MouseEvent) - Method in class RoadDesigner
mouseClicked(MouseEvent) - Method in class SimPanel
mouseDragged(MouseEvent) - Method in class RoadDesigner
mouseEntered(MouseEvent) - Method in class RoadDesigner
mouseEntered(MouseEvent) - Method in class SimPanel
mouseExited(MouseEvent) - Method in class RoadDesigner
mouseExited(MouseEvent) - Method in class SimPanel
mouseMoved(MouseEvent) - Method in class RoadDesigner
mousePressed(MouseEvent) - Method in class RoadDesigner
mousePressed(MouseEvent) - Method in class SimPanel
mouseReleased(MouseEvent) - Method in class RoadDesigner
mouseReleased(MouseEvent) - Method in class SimPanel
moveOnOne() - Method in class XML.XMLLoader

## N

name - Variable in class XML.XMLElement
name - Variable in class XML.XMLAttribute
nextElement - Variable in class XML.XMLLoader
NO_MODE - Static variable in class RoadDesigner
normal - Static variable in class Road
normal - Variable in class RoadDesigner
NORTH - Static variable in class Utils.GeoUtils
NORTHEAST - Static variable in class Utils.GeoUtils
NORTHWEST - Static variable in class Utils.GeoUtils
NOTHING_IN_FRONT - Static variable in class CarContainer
numStationaryCars() - Method in class CarContainer
numStationaryCars() - Method in class LaneModel

## O

onToNext() - Method in class CarContainer
onToNext() - Method in class JunctionPath
onToNext() - Method in class LaneSection
ORIENTATION - Static variable in class RoadDesigner

## P

paint(Graphics) - Method in class RoadDesigner
  Uses doublebuffering to repaint the Drawpanel.
paint(Graphics) - Method in class SimPanel
  Flip the back-buffer to the front buffer.
parent - Variable in class RoadDesigner
parent - Variable in class JunctionModel
parse(String) - Method in class XML.XMLLoader
  Parse a new XML element from a string which contains a XML tag
passToJunction() - Method in class LaneModel
paths - Variable in class JunctionModel
permittedCar - Variable in class GiveWayJunctionModel
permittedCar - Variable in class TurnOffJunctionModel
pi - Variable in class JunctionModel
pop() - Method in class XML.XMLStack
  Standard stack pop method
Popup - class Popup.
Popup(String, int, int, boolean) - Constructor for class Popup
pretick() - Method in class AdaptiveSig1JunModel
pretick() - Method in class AdaptiveSig2JunModel
pretick() - Method in class BridgeJunctionModel
pretick() - Method in class Car
pretick() - Method in class CarGenerator
pretick() - Method in class GiveWayJunctionModel
pretick() - Method in class JunctionModel
pretick() - Method in class Sig1JunctionModel
pretick() - Method in class Sig2JunctionModel
pretick() - Method in class SimPanel
  empty
pretick() - Method in class TurnOffJunctionModel
pretick() - Method in interface time.Timed
pretickactuated() - Method in class Sig2JunctionModel
preticknonactuated() - Method in class Sig2JunctionModel
priority1 - Variable in class BridgeJunctionModel
priority1 - Variable in class GiveWayJunctionModel
priority1 - Variable in class TurnOffJunctionModel
priority2 - Variable in class BridgeJunctionModel
priority2 - Variable in class GiveWayJunctionModel
priority2 - Variable in class TurnOffJunctionModel
priorityQ - Variable in class GiveWayJunctionModel
push(Object) - Method in class XML.XMLStack
  Standard stack push method

## R

randomizeAdaptivePath() - Method in class RoadNetwork
reader - Variable in class XML.XMLLoader
ReadFile(String) - Static method in class Utils.TextRep
receiveCar(int) - Method in class JunctionModel
refreshCanvass() - Method in class RoadDesigner
remove(ImmutableList, Object) - Static method in class time.ImmutableList
removeCar(Car) - Method in class CarContainer
removefromTimer() - Method in class Car
removePathPoint(GeneralPath, Point2D) - Static method in class Utils.GPathUtils
  returns a path equal to "path" but with "pointToKill" removed.
removeRoadPoint(Point2D) - Method in class Road
removeTimed(Timed) - Method in class time.TimeManager
  Describe `removeTimed` method here.
rePositionAttachedRoads() - Method in class Junction
resetLights(int, int) - Method in class Sig1JunctionModel
resetLights(int, int) - Method in class Sig2JunctionModel
resetSelectedStuff() - Method in class RoadDesigner
reverseDirection() - Method in class Road
reverseLine(Line2D) - Static method in class Utils.GeoUtils
reversePath(GeneralPath) - Static method in class Utils.GPathUtils
Road - class Road.
  The Road class represents a Graphical Road Object.
Road(int) - Constructor for class Road
  Creates a new `Road` instance.
roadDesigner - Variable in class RoadNetwork
RoadDesigner - class RoadDesigner.
ROADDESIGNER - Static variable in class Main
RoadDesigner(Main) - Constructor for class RoadDesigner
roadNetwork - Variable in class CarGenerator
RoadNetwork - class RoadNetwork.
  The `RoadNetwork` class creates and stores all the road network infrastructure classes such as roads and junctions and how they inter-relate.
RoadNetwork(RoadDesigner, int) - Constructor for class RoadNetwork
  The RoadNetwork constructor pulls information from the Road-Editor and converts into a form the simulation can use.
ROADSIM - Static variable in class Main
rotate(double) - Method in class Junction
rotateToMatchOnlyRoad() - Method in class Junction
run() - Method in class AppletButton
run() - Method in class time.TimeManager
  The run() method for the timer thread.

## S

saveChilds(XMLSaver) - Method in class Main
  Calls a save for the children of this class.
saveChilds(XMLSaver) - Method in class Junction
saveChilds(XMLSaver) - Method in class Road
saveChilds(XMLSaver) - Method in class RoadDesigner
saveChilds(XMLSaver) - Method in interface XML.XMLSerializable
savedDataPoints - Static variable in class SimPanel
saveObject(XMLSerializable) - Method in class XML.XMLSaver
saveSelf() - Method in class Main
  Saves all the attributes of this class.
saveSelf() - Method in class Junction
saveSelf() - Method in class Road
saveSelf() - Method in class RoadDesigner
saveSelf() - Method in interface XML.XMLSerializable
SELECT - Static variable in class RoadDesigner
setBackBuffer(Graphics2D) - Method in class RoadDesigner
  The backbuffer contains all roads except the current one.
setBackDrop() - Method in class RoadDesigner
setCarSpeeds(int) - Method in class CarGenerator
setCenterPath(GeneralPath) - Method in class Road
setDeleteMode() - Method in class RoadDesigner
setDrawJunctionMode() - Method in class RoadDesigner
setDrawRoadMode() - Method in class RoadDesigner
setInitialWidgetStates() - Method in class Main
setJunctionComm(boolean) - Method in class SimPanel
  Sets whether junctions communicate or not
setLanes(GeneralPath[]) - Method in class Road
setMessagePanel() - Method in class InputPopup
setMessagePanel(int) - Method in class InputPopup
setMultipleLanes(int) - Method in class Road
setMultipleLeftLanes(int) - Method in class Road
setMultipleRightLanes(int) - Method in class Road
setNewPosition(double, double) - Method in class Car
setOrientationMode() - Method in class RoadDesigner
setPaused(boolean) - Method in class time.TimeManager
  Stops the timer from generating events.
setPauseState(boolean) - Method in class SimPanel
setRecordData(boolean) - Method in class SimPanel
  Sets the recording of car-count numbers variables.
setRoadShapeVariables() - Method in class Road
setSelectMode() - Method in class RoadDesigner
setShape() - Method in class Junction
setShowData(boolean) - Method in class SimPanel
  Sets the calculation of car-speeds.
setSingleLane(boolean) - Method in class Road
setStart(int, int) - Method in class Road
setUpPanel() - Method in class StatsPopup
si - Variable in class JunctionModel
Sig1JunctionModel - class Sig1JunctionModel.
Sig1JunctionModel(int, Shape, int, boolean, RoadNetwork) - Constructor for class Sig1JunctionModel
Sig2JunctionModel - class Sig2JunctionModel.
Sig2JunctionModel(int, Shape, int, boolean, RoadNetwork) - Constructor for class Sig2JunctionModel
SimPanel - class SimPanel.
  The SimPanel class extends JPanel to display the visual simulation.
SimPanel(Image, RoadNetwork, int) - Constructor for class SimPanel
  Creates a new `SimPanel` instance.
snapAttachedRoadsToGrid() - Method in class Junction
snapEndToGrid() - Method in class Road
snapStartToGrid() - Method in class Road
SOUTH - Static variable in class Utils.GeoUtils
SOUTHEAST - Static variable in class Utils.GeoUtils
SOUTHWEST - Static variable in class Utils.GeoUtils
speed - Variable in class Car
speedOptions - Static variable in class Main
splitRoad(double, double, int) - Method in class Road
stack - Variable in class XML.XMLSaver
start() - Method in class AppletButton
startJunctionID - Variable in class LaneModel
startJunctionIndex - Variable in class LaneModel
startJunctionSide - Variable in class LaneModel
startLanesID - Variable in class JunctionModel
startSim() - Method in class SimPanel
  Starts the simulation
StatsPopup - class StatsPopup.
StatsPopup(SimPanel) - Constructor for class StatsPopup
stop() - Method in class AppletButton
stopSim() - Method in class SimPanel
  Stops the simulation

## T

testForLiveness() - Method in class JunctionModel
testToAttach(Point2D, Point2D, int) - Method in class Junction
testWheatherPointInDrawingArea(Point2D) - Method in class RoadDesigner
testWheatherPointInJunction(Point2D) - Method in class RoadDesigner
TextRep - class Utils.TextRep.
  A class to open a file, copy it to another name and replace strings in the copy with other strings.
TextRep(String[]) - Constructor for class Utils.TextRep
thisJunctionID - Variable in class Junction
tick() - Method in class AdaptiveSig1JunModel
tick() - Method in class AdaptiveSig2JunModel
tick() - Method in class BridgeJunctionModel
tick() - Method in class Car
tick() - Method in class CarGenerator
tick() - Method in class GiveWayJunctionModel
tick() - Method in class JunctionModel
tick() - Method in class Sig1JunctionModel
tick() - Method in class Sig2JunctionModel
tick() - Method in class SimPanel
  Updates the screen
tick() - Method in class TurnOffJunctionModel
tick() - Method in interface time.Timed
ticker - Variable in class Car
ticker - Variable in class CarGenerator
ticker - Variable in class JunctionModel
time - package time
Timed - interface time.Timed.
  Interface that timed object must implement
TimeManager - class time.TimeManager.
  Class providing functions to manage this timing thread.
TimeManager(int) - Constructor for class time.TimeManager
  Creates a new `TimeManager` instance.
timePerTick - Static variable in class Car
TimeStop - exception time.TimeStop.
  Class representing a TimeStop Exception
TimeStop() - Constructor for class time.TimeStop
TimeStop(String) - Constructor for class time.TimeStop
topspeed - Variable in class Car
toString() - Method in class XML.XMLAttribute
totalJunctionNumber - Variable in class RoadNetwork
totalLaneNumber - Variable in class RoadNetwork
totalNumPaths - Variable in class JunctionModel
TurnOffJunctionModel - class TurnOffJunctionModel.
TurnOffJunctionModel(int, int, int, Shape, RoadNetwork) - Constructor for class TurnOffJunctionModel

## U

update(Graphics) - Method in class SimPanel
  Overridden not to clear the front buffer.
updateAttachedRoadShapes() - Method in class Junction
updateBranchName() - Method in class XML.XMLStack
  Internal method to update the branch name if the stack has changed
updateJunctionLook() - Method in class Junction
Utils - package Utils

## V

value - Variable in class XML.XMLAttribute
VBUSY - Static variable in class InputPopup
VCALM - Static variable in class InputPopup

## W

waitQ - Variable in class GiveWayJunctionModel
WEST - Static variable in class Utils.GeoUtils
width - Variable in class Car
WriteFile(String, byte[]) - Static method in class Utils.TextRep
writer - Variable in class XML.XMLSaver

## X

XML - package XML
XMLAttribute - class XML.XMLAttribute.
XMLAttribute(String, boolean) - Constructor for class XML.XMLAttribute
XMLAttribute(String, double) - Constructor for class XML.XMLAttribute
XMLAttribute(String, float) - Constructor for class XML.XMLAttribute
XMLAttribute(String, int) - Constructor for class XML.XMLAttribute
XMLAttribute(String, String) - Constructor for class XML.XMLAttribute
  Make a new XMlAttribute.
XMLElement - class XML.XMLElement.
XMLElement(String) - Constructor for class XML.XMLElement
  Make a new XMLElement
XMLLoader - class XML.XMLLoader.
  This class can restore the state of the program from an XML file.
XMLLoader(File) - Constructor for class XML.XMLLoader
  Make a new XMLLoader which loads from a file
XMLSaver - class XML.XMLSaver.
XMLSaver(File) - Constructor for class XML.XMLSaver
XMLSerializable - interface XML.XMLSerializable.
XMLStack - class XML.XMLStack.
  This class is used by the XMLLoader and the XMLSaver to remember where the parser is saving/loading in the XML tree.
XMLStack() - Constructor for class XML.XMLStack
  Make a new XMLStack

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

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES