Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Package Delivery System Simulation Framework Create a java application and a background simulation framework to display tracking information for the package delivery system of FedEx.

Package Delivery System Simulation Framework

Create a java application and a background simulation framework to display tracking information for the package delivery system of FedEx.

Requirements:

Implement a method to accept new packets with attributes such as the ones shown in the output window below.

A user should also be able to query the system with a unique tracking number and get results (refer to the sample output below)

All packet data, from the birth of a packet till it reaches its destination, should be stored in a MySQL database.

Each thread should compute shortest path for delivery of a package (using Dijkstras shortest path algorithm or similar) through the list of Fedex distribution centers shown below. Assume all point to point distance is 1, and every center is connected to its nearest 2 neighbors based on geographical distance).

List of Fedex Distribution Centers

Northborough, MA

Edison, NJ

Pittsburgh, PA

Allentown, PA

Martinsburg, WV

Charlotte, NC

Atlanta, GA

Orlando, FL

Memphis, TN

Grove City, OH

Indianapolis, IN

Detroit, MI

New Berlin, WI

Minneapolis, MN

St. Louis, MO

Kansas, KS

Dallas, TX

Houston, TX

Denver, CO

Salt Lake City, UT

Phoenix, AZ

Los Angeles, CA

Chino, CA

Sacramento, CA

Seattle, WA

The application should accept new packets with their properties . This information should be stored in the MySQL database.

The user should also be able to query with an input tracking number and print the tracking details of the package . This data will be read out of the MySQL database.

Every active packet will create its own thread as it travels from source to destination in the system. In each step of the simulation, a packet moves from one center (or node in the graph) to another. The MySQL database is also updated for every packet at the end of a simulation step.

The simulation step can be generated in the main thread using the system clock.

Any query should spawn a new thread which will project all the information about a certain packet onto the screen.

Not necessary to implement a GUI.

Sample Output

image text in transcribed

Travel History DateTime Activity Location -8/27/2015 - Thursday 1:37 am 42 am 5:00 am Delivered On FedEx vehicle for delivery At local FedEx facility Chalote, NC CHARLOTTE, NC CHARLOTTE, NC -8/26/2015-Wednesday 8:52 pm 2:14 pm Departed FedEx location Arrived at FedEx location CHARLOTTE N CHARLOTTE N 8/21/2015 -Friday 7:40 am 5:32 am 1:06 am Departed FedEx location Arrived at FedEx location Left FedEx origin facility ACRAMENTO. CA ACRAMENTO, CA SAN JOSE, CA 8/20/2015-Thursday 9-23 pm 3:21 pm Arrived at FedEx location Picked up SAN JOSE, CA SAN JOSE, CA 8/19/2015-Wednesday 8:05 pm In FedEx possession Tendered at FedEx location Shipment information sent to FedEx In FedEx possession Package received after final location pickup has occurred. Scheduled for pickup next business day. AN JOSE. CA 8:05 pm 7:45 pm SANTA CLARA CA Shipment Facts FedEx Home Delivery Service Dimensions13x12x9in. Total pieces 1 Special handling Direct Signature Required Tracking 800000101010 number Weight Signature 7.6 lbs /3.45 kgs Direct signature required Package services section Packaging Travel History DateTime Activity Location -8/27/2015 - Thursday 1:37 am 42 am 5:00 am Delivered On FedEx vehicle for delivery At local FedEx facility Chalote, NC CHARLOTTE, NC CHARLOTTE, NC -8/26/2015-Wednesday 8:52 pm 2:14 pm Departed FedEx location Arrived at FedEx location CHARLOTTE N CHARLOTTE N 8/21/2015 -Friday 7:40 am 5:32 am 1:06 am Departed FedEx location Arrived at FedEx location Left FedEx origin facility ACRAMENTO. CA ACRAMENTO, CA SAN JOSE, CA 8/20/2015-Thursday 9-23 pm 3:21 pm Arrived at FedEx location Picked up SAN JOSE, CA SAN JOSE, CA 8/19/2015-Wednesday 8:05 pm In FedEx possession Tendered at FedEx location Shipment information sent to FedEx In FedEx possession Package received after final location pickup has occurred. Scheduled for pickup next business day. AN JOSE. CA 8:05 pm 7:45 pm SANTA CLARA CA Shipment Facts FedEx Home Delivery Service Dimensions13x12x9in. Total pieces 1 Special handling Direct Signature Required Tracking 800000101010 number Weight Signature 7.6 lbs /3.45 kgs Direct signature required Package services section Packaging

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2017 Skopje Macedonia September 18 22 2017 Proceedings Part 3 Lnai 10536

Authors: Yasemin Altun ,Kamalika Das ,Taneli Mielikainen ,Donato Malerba ,Jerzy Stefanowski ,Jesse Read ,Marinka Zitnik ,Michelangelo Ceci ,Saso Dzeroski

1st Edition

ISBN: 3319712721, 978-3319712727

More Books

Students also viewed these Databases questions