Below we have class diagrams with three classes for a simple java based parking management class. Use the classes below to write java code for classes :a parking observer class (that implements an...


Below we have class diagrams with three classes for a simple java based parking management class. Use the classes below to write java code for classes :a parking observer class (that implements an observer pattern)  , a transaction manager class and a parking lot class(subject to the observer). Use the class diagram and java class to implement it. You should use an observer pattern to implement your code.The main goal is to implement the following - Once a car enters (in an entry-scan only lot) or leaves (in an entry-scan and exit-scan lot), then the ParkingObserver will be updated, and then can register the charge with the parking system via the TransactionManager’s park() method


C) TransactionManager<br>o transactions : List<Parking Transaction><br>park(Date, ParkingPermit, ParkingLot) : ParkingTransactio<br>© ParkingTransaction<br>date : Date<br>O permit : ParkingPermit<br>O parkingLot : ParkingLot<br>o chargedAmount : Money<br>o getChargedAmount() : Money<br>getPermit() : ParkingPermit<br>C ParkingLot<br>o id : String<br>O name : String<br>O address : Address<br>o getDailyRate(CarType) : Money<br>

Extracted text: C) TransactionManager o transactions : List park(Date, ParkingPermit, ParkingLot) : ParkingTransactio © ParkingTransaction date : Date O permit : ParkingPermit O parkingLot : ParkingLot o chargedAmount : Money o getChargedAmount() : Money getPermit() : ParkingPermit C ParkingLot o id : String O name : String O address : Address o getDailyRate(CarType) : Money

Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here