Class BusStop

    • Field Detail

      • passengerQuantity

        protected int passengerQuantity
      • transportTimeLimit

        protected int transportTimeLimit
      • previousBusOrStop

        protected BusOrStop previousBusOrStop
      • nextStop

        protected BusStop nextStop
      • bus

        protected Bus bus
      • transferShuttleList

        protected List<Shuttle> transferShuttleList
      • transportTimeToHub

        protected Integer transportTimeToHub
    • Constructor Detail

      • BusStop

        public BusStop()
      • BusStop

        public BusStop​(long id,
                       BusOrStop previousBusOrStop,
                       Bus bus)
      • BusStop

        public BusStop​(long id,
                       BusOrStop previousBusOrStop,
                       Bus bus,
                       int passengerQuantity)
    • Method Detail

      • setName

        public void setName​(String name)
      • setLocation

        public void setLocation​(RoadLocation location)
      • getPassengerQuantity

        public int getPassengerQuantity()
      • setPassengerQuantity

        public void setPassengerQuantity​(int passengerQuantity)
      • getTransportTimeLimit

        public int getTransportTimeLimit()
      • setTransportTimeLimit

        public void setTransportTimeLimit​(int transportTimeLimit)
      • getPreviousBusOrStop

        public BusOrStop getPreviousBusOrStop()
      • setPreviousBusOrStop

        public void setPreviousBusOrStop​(BusOrStop previousBusOrStop)
      • getBus

        public Bus getBus()
        Specified by:
        getBus in interface BusOrStop
        Returns:
        sometimes null
      • setBus

        public void setBus​(Bus bus)
      • setTransportTimeToHub

        public void setTransportTimeToHub​(Integer transportTimeToHub)
      • getDistanceFromPreviousCost

        public int getDistanceFromPreviousCost()
      • getDistanceFrom

        public int getDistanceFrom​(BusOrStop busOrStop)
      • getDistanceToDestinationCost

        public int getDistanceToDestinationCost​(StopOrHub destination)
      • getTransportTimeRemainder

        public Integer getTransportTimeRemainder()
      • getTransportLabel

        public String getTransportLabel()