note: besides aggregation implemetaion using collections (arraylist or vectors or maps) the inheritance and 1..1 multiplicity between classes are already implemented
using maps and a list either LL or arrayL or vectorL
Form * Fame Email Phone number +Address 1 Appointment Da -Time Statut -Est 2010 Cancel -Book_10 11 1 Symptoms Symptoms_duration Medications en Edit_form 0 0 Visit Doctor Medical specialty -Region Avality Genere presco -Returname Postavby Update_Availability 1 Patient Payment info Card_m -Holder_name 1 2 Das Time -Birthdate CW 2 Bm -Updamento 0 6 Message Dane Message De message Enga) Medical profile Hig Weight Aleges Dites Condition Uddre Review Presorption Prested
Task 2: 50 pts Create the classes to manage the aggregations of objects needed by the system using the collections framework. Refer to the suggested UML class diagram in deliverable 2 requirements to finish your implementation. - Examples of expected collection behaviors: add(), remove(), search(), modify, sort(), toString().
3 public v { File > Generics > InheritanceSampleApplication > Payment ProjectDel2 > JRE System Library (JavaSE-17] V src 55 56 57 58 59 60 61 62 63 64 65 66 67 68 269 70 71 72 73 74 } 75 } public st 1 new V ACC > Account.java User.java DocApp > Doctor.java # DocPatAssos > D Appointment.java > Message.java > Prescription.java > Review.java > Visit.java v #MyWellnessApp > D MyWelness.java v UserApp > L AgeRange.java > Form.java > Medical Profile.java > Patient.java > Paymentinfo.java Student Course } Problems @ Javado <terminated ListTest (Ja Silver Gold Brown List after removal removed elements: [Yellow, Red, Gray Red
p/Doctorjava - Eclipse IDE ate Search Project Run Window Help - - G PUT CollectionTest.java *List Test.java VectorTest.java WordCount. package DocApp; 81 34 import ACC.Account; 10 11 public class Doctor extends User { 12 13 14 public String MedicalSpe; 15 public String Region; 16 public int Availability; 12 public Appointment ap; 18 public Message msg; 19 public Prescription psc; 20 public Review rvw; 21 public Visit vst; 22 23 24- public Doctor(String Full_name, String Email, String 25 super(Full_name, Email, Phone number, Adress, acc 26 MedicalSpe = medicalSpe; 27 Region region; 28 Availability - availability; 29 } 309 public String getMedicalSpe() { I 31 return MedicalSpe; 32 } 330 public void setMedical Spe(String medicalSpe) { 34 Medicalspe = medicalSpe; 35 } 369 public String getRegion() { 37 return Region;
Java IDE - Project Del2/src/userApp/Patientjava. Eclipse IDE File Edit Source Refactor Navigate Search Project Run Window Help B-O-.. # Package Explorer es Collection Testjava List Testjava Vector Testjava WordCountjava Collections JRE System Library DavaSE 1.81 2 5. SIC 3 package User App: 4 collection 5 > Collection Testjava 6 import ACC. Account: > ListTestjava 8 > Vector Testjava 9 public class Patient extends User maps 10 > WordCount java 11 CustomExceptions 12 public int BirthDate; 13 private Payment Info : File 14 public Form f; Generics 15 public Medical Profile m; Inheritance Sample Application 16 public AgeRanger; Payment 17 public int age; Projectbel2 18 19 > JRE S stem Library DavaSE-171 public Patient (String Full name, String Email, String 20 SC super(Full name, Email, Phone_number, Adress; 21 this.Birthoáte-BirthDate; ACC 22 this.p. Account.java 23 this.fif; User.java 24 this.m; DocApp 25 this.agesage: 26 > Doctor.java 27 DocatAssos 28 > Appointment.java 29 > Message.java 30 public int getBirthDate() { > Prescription.java 31 return BirthDate; > Review.java 32 ► Visit.java 33 #MyWellnessApp MyWelness java Problems Javadoc Declaration Console. User App <terminated List Testava Application) CUsers\21267\2\pool plugins or eclipse.justi Silver > AgeRange.java Gold > Form java Brown > MedicalProfilejava List after removal: Patientjava removed elements: Paymentinfojava [Yellow, Red, Gray] Student Course Red White IA
note: besides aggregation implemetaion using collections (arraylist or vectors or maps) the inheritance and 1..1 multipl
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
note: besides aggregation implemetaion using collections (arraylist or vectors or maps) the inheritance and 1..1 multipl
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!