To make the simulator work, you will need to implement and/or create several new files using Inheritance and Abstract Classes. NOTE: There is a lot of guidance in the code. Look for the "TODO"s or the...


To make the simulator work, you will need to implement and/or create several new files using Inheritance and Abstract Classes.


NOTE: There is a lot of guidance in the code. Look for the "TODO"s or the "FIXME"s in the comments.


The files to create are:




    1. Airport.java (IS-A Location)



You cannot find the time to travel between an Airport and a TrainStation. Double.MAX_VALUE should be returned if calculating the travel time between the two.




    1. ParkingSpot.java



You can drive from any ParkingSport to any other ParkingSpot or Airport or Location.




    1. TrainStation.java



You cannot find the time to travel between an Airport and a TrainStation. Double.MAX_VALUE should be returned if calculating the travel time between the two.


You will also want to copy files from canvas to use for testing. Here are the steps:




    1. We first need to create new folders.

    2. On Eclipse, right click on the project folder, and select New -> Folder

    3. Make the new folder called "src/test/java"

    4. Repeat steps to do make folder called "src/main/resources

    5. Repeat steps to do make folder called "src/test/resources

    6. Go to Canvas, and download the following files:




  • application-test.properties

  • application.properties

  • LocationTest.java

  • MapTest.java



  1. Create a package in the "src/test/java" folder called "com.ensign.model

  2. Copy the LocationTest.java and MapTest.java into the package

  3. Copy the MapTest.java into the package

  4. Copy the application-test.properties into the src/test/resources folder

  5. Copy the application.properties into the src/main/resources folder


You will first need to write the algorithms of "distanceBetweenLocation" and "travelTimeToLocation" in the Location.java file.


Next wou should write the "createLocations" method in Map.java


Next you will write the algorithms of "findLongestPath" and "findQuickestPath"

Sep 21, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here