diff --git a/2020-2021/src/TD4/travel/Description.java b/2020-2021/src/TD4/travel/Description.java new file mode 100644 index 0000000..e9807e2 --- /dev/null +++ b/2020-2021/src/TD4/travel/Description.java @@ -0,0 +1,65 @@ +package TD4.travel; + +import java.time.LocalDate; + +public class Description { + + private LocalDate departDate; + private String departPlace; + private String arrivalPlace; + private int duration; + + public Description( ) { + + } + + /** + * @return the departDate + */ + public LocalDate getDepartDate() { + return departDate; + } + /** + * @param departDate the departDate to set + */ + public void setDepartDate(LocalDate departDate) { + this.departDate = departDate; + } + /** + * @return the departPlace + */ + public String getDepartPlace() { + return departPlace; + } + /** + * @param departPlace the departPlace to set + */ + public void setDepartPlace(String departPlace) { + this.departPlace = departPlace; + } + /** + * @return the arrivalPlace + */ + public String getArrivalPlace() { + return arrivalPlace; + } + /** + * @param arrivalPlace the arrivalPlace to set + */ + public void setArrivalPlace(String arrivalPlace) { + this.arrivalPlace = arrivalPlace; + } + /** + * @return the duration + */ + public int getDuration() { + return duration; + } + /** + * @param duration the duration to set + */ + public void setDuration(int duration) { + this.duration = duration; + } + +} diff --git a/2020-2021/src/TD4/travel/Product.java b/2020-2021/src/TD4/travel/Product.java new file mode 100644 index 0000000..f03b264 --- /dev/null +++ b/2020-2021/src/TD4/travel/Product.java @@ -0,0 +1,5 @@ +package TD4.travel; + +public interface Product { + public double getPrice(); +} diff --git a/2020-2021/src/TD4/travel/Service.java b/2020-2021/src/TD4/travel/Service.java new file mode 100644 index 0000000..9e33ab7 --- /dev/null +++ b/2020-2021/src/TD4/travel/Service.java @@ -0,0 +1,5 @@ +package TD4.travel; + +public interface Service { + public Product find(Description d); +} diff --git a/2020-2021/src/TD4/travel/TravelOrganizer.java b/2020-2021/src/TD4/travel/TravelOrganizer.java new file mode 100644 index 0000000..ec4c65c --- /dev/null +++ b/2020-2021/src/TD4/travel/TravelOrganizer.java @@ -0,0 +1,5 @@ +package TD4.travel; + +public class TravelOrganizer implements Service { + +} diff --git a/2020-2021/src/TD4/travel/Trip.java b/2020-2021/src/TD4/travel/Trip.java new file mode 100644 index 0000000..aa49591 --- /dev/null +++ b/2020-2021/src/TD4/travel/Trip.java @@ -0,0 +1,32 @@ +package TD4.travel; + +public class Trip implements Product { + + private Description desc; + + public Trip(Description d) { + this.setDesc(d); + } + + public double getPrice() { + return .0; + } + + public void addItem() { + + } + + /** + * @return the desc + */ + public Description getDesc() { + return desc; + } + + /** + * @param desc the desc to set + */ + public void setDesc(Description desc) { + this.desc = desc; + } +} diff --git a/2020-2021/src/TD4/travel/travels.ucls b/2020-2021/src/TD4/travel/travels.ucls new file mode 100644 index 0000000..40e93aa --- /dev/null +++ b/2020-2021/src/TD4/travel/travels.ucls @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file