Class AdjacencyListCreator

java.lang.Object
com.example.dhaka_metro_rail.AdjacencyListCreator

public class AdjacencyListCreator extends Object
for creating adjacency list used in dijkstra
  • Field Details

    • adjacencyList

      Map<Station,Vector<Station>> adjacencyList
      creating a hasmap to store adjacency list
    • resources

      private android.content.res.Resources resources
      this resources is used to retrive txt file to access the connection list of stations stored in stations.tx file under raw directory
  • Constructor Details

    • AdjacencyListCreator

      public AdjacencyListCreator()
  • Method Details

    • getAdjacencyList

      public Map<Station,Vector<Station>> getAdjacencyList(Map<String,Station> stationDetector)
      this method return the adjacency list
      Parameters:
      stationDetector - this is used for tracking station that are used in the working activity(i.e store corresponding station object for each station)
      Returns: