parking_spot
Module: Parking spot.
CompactSpot
¶
Bases: ParkingSpot
Class: Handicapped Parking Spot.
Source code in parking_lot/src/parking_spot.py
57 58 59 60 61 62 |
|
__init__(number)
¶
Initialize handicapped parking spot.
Source code in parking_lot/src/parking_spot.py
60 61 62 |
|
HandicappedSpot
¶
Bases: ParkingSpot
Class: Handicapped Parking Spot.
Source code in parking_lot/src/parking_spot.py
49 50 51 52 53 54 |
|
__init__(number)
¶
Initialize handicapped parking spot.
Source code in parking_lot/src/parking_spot.py
52 53 54 |
|
LargeSpot
¶
Bases: ParkingSpot
Class: Large Parking Spot.
Source code in parking_lot/src/parking_spot.py
65 66 67 68 69 70 |
|
__init__(number)
¶
Initialize large parking spot.
Source code in parking_lot/src/parking_spot.py
68 69 70 |
|
MotorbikeSpot
¶
Bases: ParkingSpot
Class: Motorbike Parking Spot.
Source code in parking_lot/src/parking_spot.py
73 74 75 76 77 78 |
|
__init__(number)
¶
Initialize motorbike parking spot.
Source code in parking_lot/src/parking_spot.py
76 77 78 |
|
ParkingSpot
¶
Class: Parking Spot.
Source code in parking_lot/src/parking_spot.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
|
__init__(floor, spot_id, spot_type)
¶
Initialize Vehicle instance.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
floor
|
int
|
Floor number |
required |
spot_id
|
int
|
Parking spot number |
required |
spot_type
|
Enum
|
Parking spot type Enum |
required |
Source code in parking_lot/src/parking_spot.py
20 21 22 23 24 25 26 27 28 29 30 31 32 |
|
assign_vehicle(vehicle)
¶
Assign vehicle to parking spot.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
vehicle
|
Vehicle
|
Vehicle Instance |
required |
Source code in parking_lot/src/parking_spot.py
34 35 36 37 38 39 40 41 |
|
remove_vehicle()
¶
Remove vehicle from parking spot.
Source code in parking_lot/src/parking_spot.py
43 44 45 46 |
|
ParkingSpotType
¶
Bases: Enum
Types of Parking Spots.
Source code in parking_lot/src/parking_spot.py
8 9 10 11 12 13 14 |
|