diff --git a/META-INF/MANIFEST.MF b/META-INF/MANIFEST.MF deleted file mode 100644 index 37c5612..0000000 --- a/META-INF/MANIFEST.MF +++ /dev/null @@ -1,3 +0,0 @@ -Manifest-Version: 1.0 -Main-Class: TripToAfrica -Class-Path: . \ No newline at end of file diff --git a/src/edu/africa/TripToAfrica.java b/src/edu/africa/TripToAfrica.java deleted file mode 100644 index 9b1a7e0..0000000 --- a/src/edu/africa/TripToAfrica.java +++ /dev/null @@ -1,29 +0,0 @@ -package edu.africa; -//TIP To Run code, press or -// click the icon in the gutter. -import edu.trip.AirplaneReservation; -import edu.trip.HotelReservation; -import edu.trip.Person; -import edu.trip.RentalCarReservation; -import edu.trip.Trip; -import java.util.concurrent.Executors; -import java.util.concurrent.Future; - -public class TripToAfrica { - public static void main(String[] args) throws Exception { - try (var executor = Executors.newVirtualThreadPerTaskExecutor()) { - Future future = executor.submit(() -> { - Trip trip = new Trip(); - trip.theme = "Going To Africa"; - trip.organizer= new Person(); - trip.addReservation(new HotelReservation()); - trip.addReservation(new AirplaneReservation()); - trip.addReservation(new RentalCarReservation()); - - return trip.calculatePrice(); - - }); - System.out.println("done: " + future.get()); - } - } -} diff --git a/src/edu/trip/Address.java b/src/edu/trip/Address.java deleted file mode 100644 index c56964f..0000000 --- a/src/edu/trip/Address.java +++ /dev/null @@ -1,23 +0,0 @@ -package edu.trip; - -public class Address { - - public String street; - - public String city; - - public String state; - - public String zip; - - //format and return object's data in XML format - public String toString() { - return null; - } - - //create and return a copy of the object - public Address clone() { - return null; - } - -} \ No newline at end of file diff --git a/src/edu/trip/AirplaneReservation.java b/src/edu/trip/AirplaneReservation.java deleted file mode 100644 index 8ed8a03..0000000 --- a/src/edu/trip/AirplaneReservation.java +++ /dev/null @@ -1,39 +0,0 @@ -package edu.trip; - -import java.util.Date; - -public class AirplaneReservation extends Reservation { - - public String sourceAirport; - - public String destinationAirport; - - public Date flightDate; - - public String airline; // 3 letter airport designation - - //format and return object's data in XML format - public String toString() { - return null; - } - - //update reservation data using passed in parameters - public void updateAirplaneReservation(String aline, String sAirport, String dAirport, Date fDate) { - } - - // calculate and return the distance between source and destination airport - public int airportDistance() { - return 0; - } - - //calculate and return the reservation's price - public float calculatePrice() { - return 0.0f; - } - - //create and return a copy of the object - public AirplaneReservation clone() { - return null; - } - -} \ No newline at end of file diff --git a/src/edu/trip/HotelReservation.java b/src/edu/trip/HotelReservation.java deleted file mode 100644 index 27609f8..0000000 --- a/src/edu/trip/HotelReservation.java +++ /dev/null @@ -1,34 +0,0 @@ -package edu.trip; - -import java.util.Date; - -public class HotelReservation extends Reservation { - - public Address address; - - public String roomType; // single or double - - public Date checkIn; - - public Date checkOut; - - //format and return object's data in XML format - public String toString() { - return null; - } - - //calculate and return the reservation's price - public float calculatePrice() { - return 0.0f; - } - - //update reservation data using passed in parameters - public void updateHotelReservation(String roomType, Date checkIn, Date checkOut, Address address) { - } - - //create and return a copy of the object - public HotelReservation clone() { - return null; - } - -} \ No newline at end of file diff --git a/src/edu/trip/Person.java b/src/edu/trip/Person.java deleted file mode 100644 index 0793509..0000000 --- a/src/edu/trip/Person.java +++ /dev/null @@ -1,17 +0,0 @@ -package edu.trip; - -public class Person { - - public String name; // save the name value - - // format and return object's data in XML format - public String toString() { - return null; - } - - // create and return a copy of the object - public Person clone() { - return null; - } - -} \ No newline at end of file diff --git a/src/edu/trip/RentalCarReservation.java b/src/edu/trip/RentalCarReservation.java deleted file mode 100644 index 563a0e0..0000000 --- a/src/edu/trip/RentalCarReservation.java +++ /dev/null @@ -1,40 +0,0 @@ -package edu.trip; - -import java.util.Date; - -public class RentalCarReservation extends Reservation { - - public String make; - - public String model; - - public Date scheduledPickUp; - - public Date scheduledDropOff; - - public Date actualPickUp; - - public Date actualDropOff; - - public float window; // window of how far on either side the car can be picked up and dropped off - - // update reservation data using passed in parameters - public void updateRentalCarReservation(String make, String model, Date scheduledPickUp, Date scheduledDropOff, Date actualPickUp, Date actualDropOff, float window) { - } - - //format and return object's data in XML format - public String toString() { - return null; - } - - //calculate and return the reservation's price - public float calculatePrice() { - return 0.0f; - } - - //create and return a copy of the object - public RentalCarReservation clone() { - return null; - } - -} \ No newline at end of file diff --git a/src/edu/trip/Reservation.java b/src/edu/trip/Reservation.java deleted file mode 100644 index a015bbf..0000000 --- a/src/edu/trip/Reservation.java +++ /dev/null @@ -1,23 +0,0 @@ -package edu.trip; - -public class Reservation { - - public String confirmationNumber; // unique confirmation number for the reservation (generated by UI) - public String contractPhoneNumber; // contact number for the reservation - - // calculate and return the reservation's price - public float calculatePrice() { - return 0.0f; - } - - //format and return object's data in XML format - public String toString() { - return null; - } - - //create and return a copy of the object - public Reservation clone() { - return null; - } - -} \ No newline at end of file diff --git a/src/edu/trip/Trip.java b/src/edu/trip/Trip.java deleted file mode 100644 index f55715f..0000000 --- a/src/edu/trip/Trip.java +++ /dev/null @@ -1,34 +0,0 @@ -package edu.trip; - -import java.util.List; - -public class Trip { - - public List reservations; // save and manage multiple trip.Reservation objects - public Person organizer; // person responsible for the trip - public String theme; // theme of the trip - - // add reservation object to the list of trip.Reservation objects (check for duplicates) - // and return the number of reservation - public int addReservation(Reservation reservation) { - return 0; - } - - // find matching reservation in Vector list and update it with parameter's value - public void updateReservation(Reservation reservation) { - } - - // find trip.Reservation in Vector that matches conf number and delete from Vector - public void deleteReservation(String confirmationNumber) { - } - - // save trip.Trip information to the passed in file - public void saveToFile(String fileName) { - } - - // calculate and return the trip.Trip's price - public float calculatePrice() { - return 0.0f; - } - - } \ No newline at end of file diff --git a/src/edu/trip/TripOrganizer.java b/src/edu/trip/TripOrganizer.java deleted file mode 100644 index 54c542b..0000000 --- a/src/edu/trip/TripOrganizer.java +++ /dev/null @@ -1,35 +0,0 @@ -package edu.trip; - -public class TripOrganizer { - - public Trip trip; // store and manage a single trip.Trip object at a time - - // Add reservation to the currently loaded trip.Trip - public void addReservation(Reservation reservation) { - } - - // save current trip.Trip data to a file - public void saveToFile(String filename) { - } - - // load a trip.Trip object from a file - public void openFromFile(String filename) { - } - - // update the currently loaded trip.Trip's reservation (one that matches the parameter) - public void editReservation(Reservation reservation) { - } - - // delete reservation matching conf number from currently loaded trip - public void deleteReservation(String confirmationNumber) { - } - - // delete the currently loaded trip.Trip and its file (value smust match) - public void deleteTrip(String fileName) { - } - - // load new trip.Trip from the passed in object (close the currently loaded trip.Trip) - public void createNewTrip(Trip trip) { - } - -} \ No newline at end of file diff --git a/src/edu/trip/package-info.java b/src/edu/trip/package-info.java deleted file mode 100644 index 7970305..0000000 --- a/src/edu/trip/package-info.java +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This package contains utility classes for Trip Reservation operations. - *

- * It includes classes for TripOrganize and Trip processing of Reservations. - *

- * @since 1.0 - * @author theAuthor - * @version 1.1 - */ -package edu.trip; diff --git a/src/module-info.java b/src/module-info.java deleted file mode 100644 index 964f404..0000000 --- a/src/module-info.java +++ /dev/null @@ -1,4 +0,0 @@ -module edu.trip { - exports edu.trip; -} -