Exemple #1
0
        /* Checks if the spot is big enough for the
         *  vehicle */

        public abstract bool canFitinSpot(ParkingSpot spot);
Exemple #2
0
 public override bool canFitinSpot(ParkingSpot spot)
 {
     return(true);
 }
Exemple #3
0
 /* Park vehicle in this spot (among others,
  *  potentially) */
 public void parkinSpot(ParkingSpot s)
 {
     parkingSpots.Add(s);
 }
Exemple #4
0
 public ParkingTicket(Vehicle vehicle, ParkingSpot parkingSpot)
 {
     Vehicle     = vehicle;
     ParkingSpot = parkingSpot;
     ArrivalTime = DateTime.Now;
 }
Exemple #5
0
 public abstract Boolean CanFitInSpot(ParkingSpot parkingSpot);
Exemple #6
0
 public void ParkInSpot(ParkingSpot parkingSpot) => ParkingSpots.Add(parkingSpot);
Exemple #7
0
 public void ReleaseSpot(ParkingSpot spot)
 {
     spot.Floor.ReleseSpot(spot);
 }