Parking System Class Diagram
0 Report
Parking System Class Diagram
Related Recommendations
Other works by the author
Outline/Content
See more
CashPayment
- cashReceived: double
+<<Full Constructor»+«Empy Constructor»+pay(): void+toString(): String
<<intrface>>SystemOperable
+book()+cancel()+calculatePayment()+displayInfo()
ApplePayPayment
- deviceld: String
Reservation
- vehicle: Vehicle- spot: ParkingSpot- payment: Payment- customer: Customer- hours: int- price: double- status: String
+<<Full Constructor»+«Empy Constructor»+book(): void+cancel(): void+calculatePayment(): double+calculateDuration(): int+validateHours(): boolean+displayinfo(): void+toString(): String
Costomer
- name: String- phone: String- id: String- hasPermit: boolean
+<<Full Constructor»+«Empy Constructor»+getName(): String+setName(n): void+getPhone(): String+setPhone(p): void+getId(): String+setId(i): void+hasPermit(): boolean+setHasPermit(b): void+checkPermit(): void+displayInfo(): void+toString(): String
Payment
-amount: double
+<<Full Constructor»+«Empy Constructor»+getAmount(): double+setAmount(a): void+pay(): void+displayInfo(): void+showReceipt(): final void+toString(): String
Class name
+ attribute1:type = defaultValue+ attribute2:type- attribute3:type
+ operation1(params):returnType- operation2(params)- operation3()
Vehicle
- plate : String- type : String
+<<Full Constructor»+«Empy Constructor»+getPlate(): String+setPlate(p): void+getType(): String+setType(t): void+vehicleType(): void+displayInfo(): void+toString(): String
ParkingSpot
- spotNumber: int- floor : String- column: char- isAvailable: boolean- bookedCount: static int- availableCount: static int
+<<Full Constructor»+«Empy Constructor»+setSpotNumber(n): void+isAvailable(): boolean+setAvailable(a): void+canFitVehicle(v): boolean+displayInfo(): void+showSpot(): final void+updateCount(booked): static void+toString(): String
-MAX_HOURS : int = -MIN_HOURS : int = 1 - HOURLY_RATE: int := 15
CompactSpot
- compactLimit: double
+<<Full Constructor»+«Empy Constructor»+canFitVehicle(v):boolean+displayInfo(): void+toString(): String
RegularSpot
- maxSize: double
+<<Full Constructor»+«Empy Constructor»+canFitVehicle(v): boolean+displayInfo():void+toString(): String
Collect
0 Comments
Next Page