Index

A C D F G I L M N P R S T U V X Y 
All Classes and Interfaces|All Packages|Serialized Form

A

add(Line) - Method in class com.sanderjurgens.metroplanner.model.LineSet
Adds a line to the set.
add(Station) - Method in class com.sanderjurgens.metroplanner.model.Line
Adds a stop to the end of this line.
add(Station) - Method in class com.sanderjurgens.metroplanner.model.StationSet
Adds a station to the set.
add(RouteSegment) - Method in class com.sanderjurgens.metroplanner.planner.Route
Adds a segment to the end of this route.
addBetweenStations(VisStation, VisStation, List<VisStation>) - Method in class com.sanderjurgens.metroplanner.gui.VisLine
Add a list of stations between two existing adjacent stations.
addStation(VisStation) - Method in class com.sanderjurgens.metroplanner.gui.VisLine
Append a station visualization to this line visualization.

C

canAdd(Line) - Method in class com.sanderjurgens.metroplanner.model.LineSet
Indicates whether it is possible to add the given line to this set.
canAdd(Station) - Method in class com.sanderjurgens.metroplanner.model.Line
Indicates whether it is possible to add the given stop to this line.
canAdd(Station) - Method in class com.sanderjurgens.metroplanner.model.StationSet
Indicates whether it is possible to add the station to this line.
canAdd(RouteSegment) - Method in class com.sanderjurgens.metroplanner.planner.Route
Indicates whether it is possible to add the segment to this route.
com.sanderjurgens.metroplanner.gui - package com.sanderjurgens.metroplanner.gui
 
com.sanderjurgens.metroplanner.model - package com.sanderjurgens.metroplanner.model
 
com.sanderjurgens.metroplanner.planner - package com.sanderjurgens.metroplanner.planner
 

D

draw(Graphics) - Method in class com.sanderjurgens.metroplanner.gui.VisLine
Draws all visible parts of the line onto a Graphics object.

F

findRoute(Station, Station) - Method in class com.sanderjurgens.metroplanner.planner.MinStopsPlanner
Finds a route from origin to destination with a minimum number of stops.
findRoute(Station, Station) - Method in class com.sanderjurgens.metroplanner.planner.MinTransfersPlanner
Finds a route from origin to destination with a minimum number of transfers.
findRoute(Station, Station) - Method in class com.sanderjurgens.metroplanner.planner.Planner
Finds a route from origin to destination.

G

getCode() - Method in class com.sanderjurgens.metroplanner.model.Line
Returns the code of this line.
getCode() - Method in class com.sanderjurgens.metroplanner.model.Station
Returns the code of this station.
getColor() - Method in class com.sanderjurgens.metroplanner.planner.LineData
Returns the color/state of the data structure for this line.
getColor() - Method in class com.sanderjurgens.metroplanner.planner.StationData
Returns the color/state of the data structure for this station.
getCount() - Method in class com.sanderjurgens.metroplanner.model.Line
Returns the number of stops on this line.
getCount() - Method in class com.sanderjurgens.metroplanner.model.LineSet
Returns the number of lines in this set.
getCount() - Method in class com.sanderjurgens.metroplanner.model.StationSet
Returns the number of stations in this set.
getCount() - Method in class com.sanderjurgens.metroplanner.planner.Route
Returns the number of segments in this route.
getDirection() - Method in class com.sanderjurgens.metroplanner.planner.RouteSegment
Returns the terminal in the direction which is traveled.
getDistance() - Method in class com.sanderjurgens.metroplanner.planner.StationData
Returns the distance we traveled to reach this station (from the origin).
getEntry() - Method in class com.sanderjurgens.metroplanner.planner.LineData
Returns the station that we used to enter onto this line.
getFromStation() - Method in class com.sanderjurgens.metroplanner.planner.RouteSegment
Returns the station where the segment begins.
getIndex(Station) - Method in class com.sanderjurgens.metroplanner.model.Line
Returns the index of the given stop.
getLine() - Method in class com.sanderjurgens.metroplanner.gui.VisLine
Return the visual representation of a line corresponding to a line.
getLine() - Method in class com.sanderjurgens.metroplanner.planner.RouteSegment
Returns the line in which the segment lies.
getLine() - Method in class com.sanderjurgens.metroplanner.planner.StationData
Returns the line we used to reach this station.
getLine(String) - Method in class com.sanderjurgens.metroplanner.model.LineSet
Returns the line in this set with given code.
getLine(String) - Method in class com.sanderjurgens.metroplanner.model.Network
Returns the line with the given code.
getLineSet() - Method in class com.sanderjurgens.metroplanner.model.Network
Returns the set of all lines.
getName() - Method in class com.sanderjurgens.metroplanner.model.Network
Returns the name of the network.
getName() - Method in class com.sanderjurgens.metroplanner.model.Station
Returns the name of this station.
getParent() - Method in class com.sanderjurgens.metroplanner.planner.LineData
Returns the line from which we came to enter onto this line.
getParent() - Method in class com.sanderjurgens.metroplanner.planner.StationData
Returns the station from which we came to reach this station.
getPosition() - Method in class com.sanderjurgens.metroplanner.gui.VisMarker
Get the position of this component.
getPreferredSize() - Method in class com.sanderjurgens.metroplanner.gui.MapPanel
Return the dimensions of the background image.
getStation(String) - Method in class com.sanderjurgens.metroplanner.model.Network
Returns the station with the given code.
getStation(String) - Method in class com.sanderjurgens.metroplanner.model.StationSet
Returns the station in this set with the given code.
getStationSet() - Method in class com.sanderjurgens.metroplanner.model.Network
Returns the set of all stations.
getStop(int) - Method in class com.sanderjurgens.metroplanner.model.Line
Returns the stop at given index i
getTerminalA() - Method in class com.sanderjurgens.metroplanner.model.Line
Returns the first stop on this line.
getTerminalB() - Method in class com.sanderjurgens.metroplanner.model.Line
Returns the last stop on this line.
getToStation() - Method in class com.sanderjurgens.metroplanner.planner.RouteSegment
Returns the station where the segment ends.

I

IllegalRequestException - Exception in com.sanderjurgens.metroplanner.model
An unchecked exception to signal an illegal request.
IllegalRequestException() - Constructor for exception com.sanderjurgens.metroplanner.model.IllegalRequestException
Default constructor.
IllegalRequestException(String) - Constructor for exception com.sanderjurgens.metroplanner.model.IllegalRequestException
A constructor that takes a message.
isCircular() - Method in class com.sanderjurgens.metroplanner.model.Line
Returns whether the line is circular.
isEmpty() - Method in class com.sanderjurgens.metroplanner.model.Line
Returns whether this line is empty.
isEmpty() - Method in class com.sanderjurgens.metroplanner.model.LineSet
Returns whether this set is empty.
isEmpty() - Method in class com.sanderjurgens.metroplanner.model.StationSet
Returns whether this set is empty.
isEmpty() - Method in class com.sanderjurgens.metroplanner.planner.Route
Returns whether this route is empty.
isOneWay() - Method in class com.sanderjurgens.metroplanner.model.Line
Returns whether the line is one way.

L

Line - Class in com.sanderjurgens.metroplanner.model
A line with a code and a number of stops, it may be circular or one way.
Line(String, boolean, boolean) - Constructor for class com.sanderjurgens.metroplanner.model.Line
Constructs a line with given code.
LineData - Class in com.sanderjurgens.metroplanner.planner
Data structure for a line, needed for the planning algorithm.
LineData(Color, Line, Station) - Constructor for class com.sanderjurgens.metroplanner.planner.LineData
Constructs the data structure for a line.
LineSet - Class in com.sanderjurgens.metroplanner.model
A set of all lines.
LineSet() - Constructor for class com.sanderjurgens.metroplanner.model.LineSet
Constructs an empty set of lines.
loadResource(URL, Network) - Method in class com.sanderjurgens.metroplanner.gui.MapPanel
Load all GUI information from a resource given a network.

M

main(String[]) - Static method in class com.sanderjurgens.metroplanner.gui.MainFrame
 
MainFrame - Class in com.sanderjurgens.metroplanner.gui
The main GUI interface.
MainFrame() - Constructor for class com.sanderjurgens.metroplanner.gui.MainFrame
Constructs a new MainFrame.
MapPanel - Class in com.sanderjurgens.metroplanner.gui
The MapPanel is a Swing JPanel designed to show of a Network in a graphical way.
MapPanel() - Constructor for class com.sanderjurgens.metroplanner.gui.MapPanel
Constructs a new MapPanel.
MinStopsPlanner - Class in com.sanderjurgens.metroplanner.planner
Returns the route from origin to destination with the minimum number of stops.
MinStopsPlanner(Network) - Constructor for class com.sanderjurgens.metroplanner.planner.MinStopsPlanner
Constructs a minimum stops planner for a given network.
MinTransfersPlanner - Class in com.sanderjurgens.metroplanner.planner
Returns the route from origin to destination with the minimum number of transfers.
MinTransfersPlanner(Network) - Constructor for class com.sanderjurgens.metroplanner.planner.MinTransfersPlanner
Constructs a minimum transfer planner for a given network.
mouseClicked(MouseEvent) - Method in class com.sanderjurgens.metroplanner.gui.VisStation
Stub.
mouseEntered(MouseEvent) - Method in class com.sanderjurgens.metroplanner.gui.VisStation
Stub.
mouseExited(MouseEvent) - Method in class com.sanderjurgens.metroplanner.gui.VisStation
Stub.
mousePressed(MouseEvent) - Method in class com.sanderjurgens.metroplanner.gui.VisStation
Mouse handler for when the station is clicked.
mouseReleased(MouseEvent) - Method in class com.sanderjurgens.metroplanner.gui.VisStation
Stub.

N

network - Variable in class com.sanderjurgens.metroplanner.planner.Planner
The network for which routes can be planned
Network - Class in com.sanderjurgens.metroplanner.model
An overall network that contains and regulates all lines and stations.
Network(URL) - Constructor for class com.sanderjurgens.metroplanner.model.Network
Constructs a network based on a file

P

paintComponent(Graphics) - Method in class com.sanderjurgens.metroplanner.gui.MapPanel
Draw the background and all the lines of the network.
paintComponent(Graphics) - Method in class com.sanderjurgens.metroplanner.gui.VisStation
Draw a white circle with a black border to represent a station.
paintComponent(Graphics) - Method in class com.sanderjurgens.metroplanner.gui.VisStationDummy
Draws nothing.
Planner - Class in com.sanderjurgens.metroplanner.planner
 
Planner(Network) - Constructor for class com.sanderjurgens.metroplanner.planner.Planner
Constructs a planner for a given network.

R

Route - Class in com.sanderjurgens.metroplanner.planner
A planned route consisting of segments.
Route() - Constructor for class com.sanderjurgens.metroplanner.planner.Route
Constructs an empty route.
RouteSegment - Class in com.sanderjurgens.metroplanner.planner
A segment of a Route.
RouteSegment(Line, Station, Station, Station) - Constructor for class com.sanderjurgens.metroplanner.planner.RouteSegment
Constructs a segment of a line with a beginning, end and a direction.

S

setCircular(boolean) - Method in class com.sanderjurgens.metroplanner.planner.RouteSegment
Sets whether the segment utilizes the circular nature of the line.
setColor(Color) - Method in class com.sanderjurgens.metroplanner.planner.LineData
Sets the color/state of the data structure for this line.
setColor(Color) - Method in class com.sanderjurgens.metroplanner.planner.StationData
Sets the color/state of the data structure for this station.
setDirection(Station) - Method in class com.sanderjurgens.metroplanner.planner.RouteSegment
Sets the direction of this segment.
setDistance(int) - Method in class com.sanderjurgens.metroplanner.planner.StationData
Sets the distance we traveled to reach this station (from the origin).
setEntry(Station) - Method in class com.sanderjurgens.metroplanner.planner.LineData
Sets the station that we used to enter onto this line.
setFromStation(Station) - Method in class com.sanderjurgens.metroplanner.planner.RouteSegment
Sets the station where this segment begins.
setLine(Line) - Method in class com.sanderjurgens.metroplanner.planner.RouteSegment
Sets the line of this segment.
setLine(Line) - Method in class com.sanderjurgens.metroplanner.planner.StationData
Sets the line we used to reach this station.
setParent(Line) - Method in class com.sanderjurgens.metroplanner.planner.LineData
Sets the line from which we came to enter onto this line.
setParent(Station) - Method in class com.sanderjurgens.metroplanner.planner.StationData
Sets the station from which we came to reach this station.
setPosition(int, int) - Method in class com.sanderjurgens.metroplanner.gui.VisMarker
Place the component such that the base of the flag is on the specified position
setPosition(int, int) - Method in class com.sanderjurgens.metroplanner.gui.VisStation
Set the position of the Station by specifying its center.
setPosition(Point) - Method in class com.sanderjurgens.metroplanner.gui.VisMarker
Give the component a position on the map.
setToStation(Station) - Method in class com.sanderjurgens.metroplanner.planner.RouteSegment
Sets the station where this segment ends.
showAll() - Method in class com.sanderjurgens.metroplanner.gui.VisLine
Show every part of the line.
showNone() - Method in class com.sanderjurgens.metroplanner.gui.VisLine
Don't show any part of this line.
showSegment(RouteSegment) - Method in class com.sanderjurgens.metroplanner.gui.VisLine
Show some part of the line (on top of what was already visible).
Station - Class in com.sanderjurgens.metroplanner.model
A standard station with a name and a code.
Station(String, String) - Constructor for class com.sanderjurgens.metroplanner.model.Station
Constructs a station with given name and code.
stationClicked(Station, boolean) - Static method in class com.sanderjurgens.metroplanner.gui.MainFrame
Event handler for when a station is clicked on the map.
StationData - Class in com.sanderjurgens.metroplanner.planner
Data structure for a station, needed for the planning algorithm.
StationData(Color, Station, int, Line) - Constructor for class com.sanderjurgens.metroplanner.planner.StationData
Constructs the data structure for a station.
StationSet - Class in com.sanderjurgens.metroplanner.model
A set of all stations.
StationSet() - Constructor for class com.sanderjurgens.metroplanner.model.StationSet
Constructs an empty set of stations.

T

toString() - Method in class com.sanderjurgens.metroplanner.model.Line
Returns the code of the line.
toString() - Method in class com.sanderjurgens.metroplanner.model.LineSet
Returns a textual representation of all lines.
toString() - Method in class com.sanderjurgens.metroplanner.model.Network
Returns a textual representation of this network.
toString() - Method in class com.sanderjurgens.metroplanner.model.Station
Returns the name of this station.
toString() - Method in class com.sanderjurgens.metroplanner.model.StationSet
Returns a textual representation of all stations.

U

usesCircular() - Method in class com.sanderjurgens.metroplanner.planner.RouteSegment
Returns whether the segment utilizes the circular nature of the line.

V

VisLine - Class in com.sanderjurgens.metroplanner.gui
Visual representation of one complete metro line.
VisLine(Line, Color) - Constructor for class com.sanderjurgens.metroplanner.gui.VisLine
Constructs a new metro line.
VisMarker - Class in com.sanderjurgens.metroplanner.gui
The VisMarker is a little flag that can be placed onto the JPanel
VisMarker(URL) - Constructor for class com.sanderjurgens.metroplanner.gui.VisMarker
Constructs a new flag.
VisStation - Class in com.sanderjurgens.metroplanner.gui
The visual representation of a Station.
VisStation(Station, boolean, int, int) - Constructor for class com.sanderjurgens.metroplanner.gui.VisStation
Constructs a new station.
VisStationDummy - Class in com.sanderjurgens.metroplanner.gui
VisStationDummy is a station that doesn't actually represent any station in the network, it just exists for the purpose of creating bends on the line.
VisStationDummy(int, int) - Constructor for class com.sanderjurgens.metroplanner.gui.VisStationDummy
Constructs a dummy station.

X

x - Variable in class com.sanderjurgens.metroplanner.gui.VisMarker
Position of the component

Y

y - Variable in class com.sanderjurgens.metroplanner.gui.VisMarker
Position of the component
A C D F G I L M N P R S T U V X Y 
All Classes and Interfaces|All Packages|Serialized Form