Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
C
G
H
I
L
M
N
P
R
T
V
A
actionPerformed(ActionEvent)
- Method in class net.aronnax.CountPaths.
Applet
actionPerformed(ActionEvent)
- Method in class net.aronnax.CountPaths.
GUI
The
actionPerformed
method is required to implement the ActionListener class which allows us to read user interaction.
add(Vertex)
- Method in class net.aronnax.CountPaths.
Path
The
add
method allows one to append a new Vertex to the Path.
Applet
- Class in
net.aronnax.CountPaths
Class
Applet
provides a graphical user interface to run the CountPaths code in a browser.
Applet()
- Constructor for class net.aronnax.CountPaths.
Applet
C
CLI
- Class in
net.aronnax.CountPaths
Class
CLI
runs a hard-coded series of searches using the CountPaths class printing the number of paths found and optionally the paths themselves.
CLI()
- Constructor for class net.aronnax.CountPaths.
CLI
copyAndAdd(Vertex)
- Method in class net.aronnax.CountPaths.
Path
The
copyAndAdd
method provides a way to create a copy of the current Path with the addition of a new Vertex at the end.
copyPath()
- Method in class net.aronnax.CountPaths.
Path
The
copyPath
method permits one to create an identical Path to the current one.
CountPaths
- Class in
net.aronnax.CountPaths
Class
CountPaths
systematically searches for all paths connecting a pair of vertices for some given length.
CountPaths(int, Vertex, Vertex)
- Constructor for class net.aronnax.CountPaths.
CountPaths
This constructor sets up the most important options of the CountPaths run.
createAndShow()
- Method in class net.aronnax.CountPaths.
GUI
The
createAndShow()
method actually creates the window for the user to interact with.
G
getX()
- Method in class net.aronnax.CountPaths.
Vertex
getX returns the position along the x-axis.
getY()
- Method in class net.aronnax.CountPaths.
Vertex
getY returns the position along the y-axis.
GUI
- Class in
net.aronnax.CountPaths
Class
GUI
provides a graphical user interface to run the CountPaths code.
GUI()
- Constructor for class net.aronnax.CountPaths.
GUI
H
hasDuplicates()
- Method in class net.aronnax.CountPaths.
Path
The
hasDuplicates
method checks to see if the last Vertex added has created a duplicate Vertex in the Path.
I
init()
- Method in class net.aronnax.CountPaths.
Applet
isEqualTo(Vertex)
- Method in class net.aronnax.CountPaths.
Vertex
isEqualTo compares another Vertex to this one.
L
lastVertex()
- Method in class net.aronnax.CountPaths.
Path
The
lastVertex
method returns the current end of the Path (aka the last Vertex added to the Path).
length()
- Method in class net.aronnax.CountPaths.
Path
The
length
method returns the number of steps in the current Path.
M
main(String[])
- Static method in class net.aronnax.CountPaths.
CLI
main
is a simple setup and execute program.
main(String[])
- Static method in class net.aronnax.CountPaths.
GUI
The
main
method just launches the GUI; otherwise, it is useless here.
N
net.aronnax.CountPaths
- package net.aronnax.CountPaths
P
Path
- Class in
net.aronnax.CountPaths
Class
Path
represents a trip through several vertices in some order.
Path(int, Vertex)
- Constructor for class net.aronnax.CountPaths.
Path
This constructor creates a bare minimum Path: it has a maximum length and a starting Vertex.
Path(Vertex[])
- Constructor for class net.aronnax.CountPaths.
Path
This constructor initializes a Path with the vertices passed in the vertexPathIn array and the same array size.
Path(int, Vertex[])
- Constructor for class net.aronnax.CountPaths.
Path
This constructor initializes a Path with the vertices passed in the vertexPathIn array and has a size bigger than or equal to the passed array specified by maxPathLength.
R
returnGoodPaths(PrintStream)
- Method in class net.aronnax.CountPaths.
CountPaths
The
returnGoodPaths
toggles on the reporting of good Path Vertex lists (in order, of course).
run()
- Method in class net.aronnax.CountPaths.
CountPaths
The
run
method does the actual path search using the parameters previously specified.
run()
- Method in class net.aronnax.CountPaths.
GUI
The
run
method reads the values from the GUI fields and runs the CountPaths class with the values in said fields.
runningAsApplet()
- Method in class net.aronnax.CountPaths.
GUI
The
runningAsApplet
method allows the GUI class to disable features that are not compatible with an Applet.
T
toString()
- Method in class net.aronnax.CountPaths.
Path
The
toString
method returns a String object that describes the way the Path traverses the various Vertex points.
toString()
- Method in class net.aronnax.CountPaths.
Vertex
toString returns the x and y coords of this Vertex in a simple comma separated pair.
V
Vertex
- Class in
net.aronnax.CountPaths
Class
Vertex
represents some point on a 2-D cartesian grid.
Vertex(int, int)
- Constructor for class net.aronnax.CountPaths.
Vertex
The constructor for Vertex takes it's current location as input.
A
C
G
H
I
L
M
N
P
R
T
V
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes