Package com.example.dhaka_metro_rail
Class AdjacencyListCreator
java.lang.Object
com.example.dhaka_metro_rail.AdjacencyListCreator
for creating adjacency list used in dijkstra
-
Field Summary
FieldsModifier and TypeFieldDescriptioncreating a hasmap to store adjacency listprivate android.content.res.Resourcesthis resources is used to retrive txt file to access the connection list of stations stored in stations.tx file under raw directory -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
adjacencyList
creating a hasmap to store adjacency list -
resources
private android.content.res.Resources resourcesthis 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
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:
-