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

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