|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpathfinder.JPathFinder
public abstract class JPathFinder
Constructor Summary | |
---|---|
JPathFinder()
Creates a new instance of JPathFinder |
Method Summary | |
---|---|
void |
clearInfoArea()
Clears the info box |
void |
inform(java.lang.String message)
Writes the message to the information window of the GUI |
abstract void |
performBFS(int start,
int stop,
JPFMap map)
implements the breadth first search (performBFS) path search - searches a road from given start to target city |
abstract void |
performDFS(int start,
int stop,
JPFMap map)
implements the depth first search (performDFS) path search - searches a road from given start to target city |
abstract void |
searchForShortestPath(int start,
int stop,
JPFMap map)
implements the A* path search - searches shortest road from given start to target city |
abstract void |
searchForShortestTime(int start,
int stop,
JPFMap map)
implements the A* path search - searches fastest road from given start to target city |
void |
setInformationArea(javax.swing.JTextArea infoTextArea)
Sets the place where the info can be written |
void |
showGUI()
Shows the searcher's GUI |
void |
showGUI(java.lang.String mapFileName)
Shows the searcher's GUI and loads the map from given file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JPathFinder()
Method Detail |
---|
public abstract void performDFS(int start, int stop, JPFMap map)
start
- id of starting citystop
- id of target citymap
- the map to be searchedpublic abstract void performBFS(int start, int stop, JPFMap map)
start
- id of starting citystop
- id of target citymap
- the map to be searchedpublic abstract void searchForShortestPath(int start, int stop, JPFMap map)
start
- id of starting citystop
- id of target citymap
- the map to be searchedpublic abstract void searchForShortestTime(int start, int stop, JPFMap map)
start
- id of starting citystop
- id of target citymap
- the map to be searchedpublic void showGUI()
public void showGUI(java.lang.String mapFileName)
mapFileName
- map filepublic void setInformationArea(javax.swing.JTextArea infoTextArea)
infoTextArea
- public void clearInfoArea()
public void inform(java.lang.String message)
message
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |