Class StandardStation


  • public class StandardStation
    extends Station
    The StandardStation class : This class defines what is a standard station on the application
    • Constructor Detail

      • StandardStation

        public StandardStation​(java.awt.Point coordinate,
                               boolean onService,
                               java.util.List<ParkingSlot> parkingSlots,
                               double money,
                               int numberOfDroppings)
        A StandardStation constructor
        Parameters:
        coordinate - coordinate that will be used to place a plus station
        onService - a boolean parameter to know if the station will be on service
        parkingSlots - a list of parking slots that will populate the plus station
        money - the initial money that the station will have
        numberOfDroppings - the number of droppings (or locations)
      • StandardStation

        public StandardStation​(java.awt.Point coordinate,
                               boolean onService,
                               java.util.List<ParkingSlot> parkingSlots)
        A (simpler) StandardStation constructor
        Parameters:
        coordinate - coordinate that will be used to place a plus station
        onService - a boolean parameter to know if the station will be on service
        parkingSlots - a list of parking slots that will populate the plus station