
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN: 9780133594140
Author: James Kurose, Keith Ross
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
Implement the transaction manager class using java
Explain your code in few words.
I have included other classes that have relation with the parking transaction calss

Transcribed Image Text:ParkingOffice
parkingOfficeName: String
- listOfCustomer: List<Customer>
TransactionManager
- listOfParkingLot: List<ParkingLot>
- parkingLotAddress: Addres
- transactions:
List<ParkingTransaction>
+ getParkingOfficeName(): String
+ register(Customer): String
+register(Car): String
+ park(LocalDateTime, ParkingPermit, ParkingLot):
Parking Transaction
+ getParkingCharges(ParkingPermit): Money
getParkingCharges(Customer): Money
+ getCustomer(String): Customer
+ getParkingPermit(String): ParkingPermit
+ getParkingLot(String): ParkingLot
+ park(Date, ParkingPermit,
ParkingLot): ParkingTransaction
+ getParkingCharges(ParkingPermit):
Money
+getParkingCharges(Customer):
Money
Parking Transaction
- date : Date
- permit : ParkingPermit
- parkingLot : ParkingLot
- chargedAmount : Money
+ getChargedAmount(): Money
+ getPermit(): ParkingPermit
Expert Solution

arrow_forward
Step 1
Individual resource local transactions are supported in Java for several resources. We also discussed how to implement global transactions in Java.
We also looked at alternative methods for managing global transactions in Java. We also learned how spring simplifies the use of transactions in Java.
Finally, we discussed some of the best practices for working with Java transactions.
Step by stepSolved in 2 steps

Knowledge Booster
Similar questions
- implement a database about people, they could be made up, but you want to include a sizable number, maybe 10-20. The data that you store for each person must include a name and at least one additional piece of information, such as a birthday. You can assume that the names are unique. The database should enable you to enter, remove, modify, or search this data. You also should be able to save the data in a file for use later. Define a class Person to represent a person and another one to represent the database. A dictionary should be a data member of the database class, with Person objects as search keys for this dictionary. Write a program that tests and demonstrates your database.arrow_forwardB elow for each class you find a UML and description of the public interface. Implementing the public interface as described is madatory. There's freedom on how to implement these classes.The private properties and private methods are under your control.. There are multiple ways of implementing all these classes. Feel free to add private properties and methods. For each object, it's mandatory to create a header file (.h), implementation file (.cpp) and a driver. Blank files are included. The header should have the class definition in it. The implementation file should contain the implementations of the methods laid out in the header fine. And finally the Driver should test/demonstrate all the features of the class. It's best to develop the driver as the class is being written. Check each section to see if there are added additional requirements for the driver. Two test suites are included so that work can be checked. It's important to implement the drivers to test and demonstrate…arrow_forwardUsing Java. Enhance the invoice-printing program by providing for two kinds of line items: One kind describes products that are purchased in certain numerical quantities (such as “3 toasters”), another describes a fixed charge (such as “shipping: $5.00”). Hint: Use inheritance. I've seen this question asked before, however, the code is very confusing to me.arrow_forward
- Hi, this is a java programming question with direction of what to do. I'm just gonna attach the question sheet. Implement the following class diagram (diagram in attached photo)setFirstName() method should set the firstName attribute of the class.setLastName() method should set the lastName attribute of the class.setSpecialization() method should set the specialization attribute of the Doctor class.setHealthnumber() method should set the healthNumber attribute of the Patient class.setIllness() method should set the illness attribute of the Patient class.If you are not comfortable with set methods, you are free to create your own constructors to set the attribute values.Create a HospitalApplication class which contains the main method. Inside the main method the following should be done in the order mentioned. (Any other ordering would not guarantee full marks).Prompt for the following inputs for 5 Doctors. (Use for loops)• First name• Last name• SpecializationValid specializations…arrow_forwardadd a class to package that represents your new drivable type. That type should be something that is capable of being driven (speeding up and slowing down) and therefore a perfect candidate for a class that implements the actions in the Drivable interface.arrow_forwardAfter drawing the hierarchy, implement the classes by writing C# code foreach class. Then create objects of each class and call ALL methods onthese objects.arrow_forward
- Solve using OOP in Java.arrow_forwardImplement the following in the .NET Console App. Write the Bus class. A Bus has a length, a color, and a number of wheels. a. Implement data fields using auto-implemented Properies b. Include 3 constructors: default, the one that receives the Bus length, color and a number of wheels as input (utilize the Properties) and the Constructor that takes the Bus number (an integer) as input.arrow_forwardWe have a parking office class for an object-oriented parking management system using java Add (implement )a function to the Parking Office class to return a collection of customer ids (getCustomerIds) using java I have attached two class diagrams with definitions of all related classes in our system (i.e car, customer, .....). N.B. Parking office methods in the class definition like register, getcustomer and addcharge have already been implemented, we just need an additional getcustomerID function as mentioned above Explain the code you wrote with a few wordsarrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY

Computer Networking: A Top-Down Approach (7th Edi...
Computer Engineering
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:PEARSON

Computer Organization and Design MIPS Edition, Fi...
Computer Engineering
ISBN:9780124077263
Author:David A. Patterson, John L. Hennessy
Publisher:Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:9781337569330
Author:Jill West, Tamara Dean, Jean Andrews
Publisher:Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:9781337093422
Author:Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:9780133750423
Author:VENIT, Stewart
Publisher:Pearson Education

Sc Business Data Communications and Networking, T...
Computer Engineering
ISBN:9781119368830
Author:FITZGERALD
Publisher:WILEY