Your Perfect Assignment is Just a Click Away
We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

glass
pen
clip
papers
heaphones

Computer Science project: This project will demonstrate a simulation of a dockyard

Computer Science project: This project will demonstrate a simulation of a dockyard

Project

This project will demonstrate a simulation of a dockyard. The dockyard regularly has ships arriving with many containers that are offloaded into the dockyard and stored in an area of the dockyard for later pickup.

As each ship arrives, it has a manifest which lists all the containers and the destination city for each container. You need to offload the containers and store them in a staging location within the dockyard by destination city. You should notice that as ships arrive these staging areas start getting filled up with containers.

At any point, trucks can arrive to pick up a single container. The dockyard will load a container onto a truck based on the destination city of the truck. The dockyard will use the truck’s destination city to get the next container in the queue for that destination city and place it on the truck for deliver. As more and more trucks arrive, you should notice that the staging areas for the truck destination cities become freed up since the containers are leaving the dockyard.

The starting point for the project is uploaded to the class discussion area in blackboard.

You will need to do the following:

1.There are interfaces defined for a container, a ship, and a truck in the shipping package that you will need to write implementation classes for. The implementation details are up to you as long as you implement the methods to satisfy the expected inputs and outputs.

2. There is an interface defined for the dockyard that you will need to write a class for. The dockyard needs to be able to store containers in different staging areas by destination city.

3.You will need to complete the implementation for the ShippingProcessor class. There is a base class the provides default implementations the ShippingProcessor should leverage.

4.Implement any custom exceptions you think are appropriate.

5.All of the code you need to implement should be created in a package named solution.

NOTE: You are not to change any interfaces or code within the shipping package.

Sample output based on the input files provided:

The dockyard contains 0 containers.

A new ship has arrived. Processing… Before unloading: Ship S123 has 6 containers.

After unloading: Ship S123 has 0 containers.

The dockyard contains 6 containers. LA: 1

BOS: 1

NYC: 2

ATL: 2

A new ship has arrived. Processing… Before unloading: Ship S124 has 8 containers. After unloading: Ship S124 has 0 containers.

The dockyard contains 14 containers.

LA: 2

BOS: 4

NYC: 4

ATL: 4

A new truck has arrived. Processing…

Before loading: Truck T223 is headed

After loading: Truck T223 is headed

The dockyard contains 13 containers.

LA: 2

BOS: 3

NYC: 4

ATL: 4

to BOS with no container.

to BOS with container C123

A new truck has arrived. Processing…

Before loading: Truck T224 is headed

After loading: Truck T224 is headed

The dockyard contains 12 containers.

LA: 2

BOS: 3

NYC: 3

ATL: 4

to NYC with no container.

to NYC with container C124

A new truck has arrived. Processing…

Before loading: Truck T225 is headed

After loading: Truck T225 is headed

The dockyard contains 11 containers.

LA: 2

BOS: 2

NYC: 3

ATL: 4

to BOS with no container.

to BOS with container C523

A new truck has arrived. Processing…

Before loading: Truck T226 is headed to BOS with no container. After loading: Truck T226 is headed to BOS with container C529 The dockyard contains 10 containers.

LA: 2 BOS: 1

NYC: 3 ATL: 4

A new truck has arrived. Processing…

Before loading: Truck T227 is headed to LA with no container. After loading: Truck T227 is headed to LA with container C125 The dockyard contains 9 containers.

LA: 1

BOS: 1

NYC: 3

ATL: 4

A new truck has arrived. Processing…

Before loading: Truck T228 is headed to BOS with no container. After loading: Truck T228 is headed to BOS with container C530 The dockyard contains 8 containers.

LA: 1

BOS: 0

NYC: 3

ATL: 4

A new truck has arrived. Processing…

Before loading: Truck T229 is headed to LA with no container. After loading: Truck T229 is headed to LA with container C525 The dockyard contains 7 containers.

LA: 0

BOS: 0

NYC: 3

ATL: 4

A new truck has arrived. Processing…

Before loading: Truck T230 is headed to BOS with no container. After loading: Truck T230 is headed to BOS with no container. The dockyard contains 7 containers.

LA: 0

BOS: 0

NYC: 3

ATL: 4

A new truck has arrived. Processing…

Before loading: Truck T231 is headed to LA with no container. After loading: Truck T231 is headed to LA with no container. The dockyard contains 7 containers.

LA: 0

BOS: 0

NYC: 3

ATL: 4

The dockyard contains 7 containers. LA: 0

BOS: 0

NYC: 3

ATL: 4

Order Solution Now

Our Service Charter

1. Professional & Expert Writers: Homework Free only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Homework Free are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Homework Free is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Homework Free, we have put in place a team of experts who answer to all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.

Homework Free Org

Your one stop solution for all your online studies solutions. Hire some of the world's highly rated writers to handle your writing assignments. And guess what, you don't have to break the bank.

© 2020 Homework Free Org