pathfinder
Class JPathFinder

java.lang.Object
  extended by pathfinder.JPathFinder
Direct Known Subclasses:
RandomPathFinder

public abstract class JPathFinder
extends java.lang.Object


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(AbstractVCover vcCalculator)
          Shows the searcher's GUI
 void showGUI(AbstractVCover vcCalculator, java.lang.String mapFileName)
          Shows the searcher's GUI and loads the map from given file
 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

JPathFinder

public JPathFinder()
Creates a new instance of JPathFinder

Method Detail

performDFS

public 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

Parameters:
start - id of starting city
stop - id of target city
map - the map to be searched

performBFS

public 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

Parameters:
start - id of starting city
stop - id of target city
map - the map to be searched

searchForShortestPath

public abstract void searchForShortestPath(int start,
                                           int stop,
                                           JPFMap map)
implements the A* path search - searches shortest road from given start to target city

Parameters:
start - id of starting city
stop - id of target city
map - the map to be searched

searchForShortestTime

public abstract void searchForShortestTime(int start,
                                           int stop,
                                           JPFMap map)
implements the A* path search - searches fastest road from given start to target city

Parameters:
start - id of starting city
stop - id of target city
map - the map to be searched

showGUI

public void showGUI()
Shows the searcher's GUI


showGUI

public void showGUI(AbstractVCover vcCalculator)
Shows the searcher's GUI

Parameters:
vcCalculator - minimal vertex cover calculator

showGUI

public void showGUI(java.lang.String mapFileName)
Shows the searcher's GUI and loads the map from given file

Parameters:
mapFileName - map file

showGUI

public void showGUI(AbstractVCover vcCalculator,
                    java.lang.String mapFileName)
Shows the searcher's GUI and loads the map from given file

Parameters:
vcCalculator - minimal vertex cover calculator
mapFileName - the file with the map

setInformationArea

public void setInformationArea(javax.swing.JTextArea infoTextArea)
Sets the place where the info can be written

Parameters:
infoTextArea -

clearInfoArea

public void clearInfoArea()
Clears the info box


inform

public void inform(java.lang.String message)
Writes the message to the information window of the GUI

Parameters:
message -