Class Station

java.lang.Object
com.example.dhaka_metro_rail.Station

public class Station extends Object
for storing information of the station that is used when dijkstra algo run
  • Field Details

  • Constructor Details

    • Station

      public Station(String name)
    • Station

      public Station()
  • Method Details

    • addDestination

      public void addDestination(Station destination, int distance)
    • getShortestPath

      public List<Station> getShortestPath()
    • setShortestPath

      public void setShortestPath(List<Station> shortestPath)
    • getDistance

      public Integer getDistance()
    • setDistance

      public void setDistance(Integer distance)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getAdjacentNodes

      public Map<Station,Integer> getAdjacentNodes()
    • setAdjacentNodes

      public void setAdjacentNodes(Map<Station,Integer> adjacentNodes)