In this lab, you will analyze a complex UML diagram and convert it to the corresponding Java code. The UML will represent a reasonable object-oriented design and include a number of relationships between the elements including simple dependencies, associations, and aggregation.
For this assignment, you will NOT need to write implementation code. Here's what you will be graded upon:
Class definitions
Instance variables
Method declarations - wherever the method returns something, simply return the default value for the method return type (which can be null for any object types).
Assocation relationship implementation as instance variables where not explicitly defined (e.g. Incident has a location)
Correct naming. All naming needs to be correctly spelled and cased
The code needs to compile, but does not need to run. This is only a structural representation

PreviousNext
application LO5 - UML to Code EbolaTracker Patient - incidences: ArrayList birthdate: Date patients: ArrayList gender: String healthStatusDate: Date + + + + + addlncident(incident: Incident): void findlncidences(dateStart: Date, dateEnd: Date): List getlncident(incidentld: int): Incident getPatient(patientld: int): Patient updatePatient(patient: Patient): void id: int - lastKnownHealthStatus: HealthStatus - lastKnownVitals: VitalSigns - name: String property get + getBirthdate(): Date + getGender): String + getHealthStatusDate(): Date + getld): int + getLastKnownHealthStatus(): HealthStatus + getLastKnownVitals(): VitalSigns + getName(): String Incident - incidentld: int property set + setBirthdate(newVal: Date): void + setGender(newVal: String): void + setHealthStatusDate(newVal: Date): void + setld(newVal: int): void + setLastKnownHealthStatus(newVal: HealthStatus): void + setLastKnownVitals(newVal: VitalSigns): void + setName(newVal: String): void property get + getlncidentld(): int property set + setlncidentld(newVal: int): void enumeration HealthStatus Location latitude: BigDecimal longitude: BigDecimal HEALTHY STRESSED CRITICAL DECEASED 1. property get PatientCaseRecord + getLatitude): BigDecimal + getLongitude(): BigDecimal property set + setLatitude(newVal: BigDecimal): void + setLongitude(newVal: BigDecimal): void id: int property get property set VitalSigns + getld0: int - diastolicBloodPressure: int - pulse: int - readingsDate: Date - respiratoryRate: int + setld(newVal: int): void systolicBloodPressure: int temperature: BigDecimal - property get + getDiastolicBloodPressure(): int + getPulse(): int + getReadingsDate(): Date + getRespiratoryRate(): int + getSystolicBloodPressure(): int + getTemperature(): BigDecimal HealthAssessment - assessmentDate: Date - healthStatus: HealthStatus - vitalSigns: VitalSigns property get + getAssessmentDate(): Date + getHealthStatus(): HealthStatus + getVitalSigns(): VitalSigns property set + setAssessmentDate(newVal: Date): void + setHealthStatus(newVal: HealthStatus): void + setVitalSigns(newVal: VitalSigns): void property set + setDiastolicBloodPressure(newVal: int): void + setPulse(newVal: int): void + setReadingsDate(newVal: Date): void + setRespiratoryRate(newVal: int): void + setSystolicBloodPressure(newVal: int): void + setTemperature(newVal: BigDecimal): void application LO5 - UML to Code EbolaTracker Patient - incidences: ArrayList birthdate: Date patients: ArrayList gender: String healthStatusDate: Date + + + + + addlncident(incident: Incident): void findlncidences(dateStart: Date, dateEnd: Date): List getlncident(incidentld: int): Incident getPatient(patientld: int): Patient updatePatient(patient: Patient): void id: int - lastKnownHealthStatus: HealthStatus - lastKnownVitals: VitalSigns - name: String property get + getBirthdate(): Date + getGender): String + getHealthStatusDate(): Date + getld): int + getLastKnownHealthStatus(): HealthStatus + getLastKnownVitals(): VitalSigns + getName(): String Incident - incidentld: int property set + setBirthdate(newVal: Date): void + setGender(newVal: String): void + setHealthStatusDate(newVal: Date): void + setld(newVal: int): void + setLastKnownHealthStatus(newVal: HealthStatus): void + setLastKnownVitals(newVal: VitalSigns): void + setName(newVal: String): void property get + getlncidentld(): int property set + setlncidentld(newVal: int): void enumeration HealthStatus Location latitude: BigDecimal longitude: BigDecimal HEALTHY STRESSED CRITICAL DECEASED 1. property get PatientCaseRecord + getLatitude): BigDecimal + getLongitude(): BigDecimal property set + setLatitude(newVal: BigDecimal): void + setLongitude(newVal: BigDecimal): void id: int property get property set VitalSigns + getld0: int - diastolicBloodPressure: int - pulse: int - readingsDate: Date - respiratoryRate: int + setld(newVal: int): void systolicBloodPressure: int temperature: BigDecimal - property get + getDiastolicBloodPressure(): int + getPulse(): int + getReadingsDate(): Date + getRespiratoryRate(): int + getSystolicBloodPressure(): int + getTemperature(): BigDecimal HealthAssessment - assessmentDate: Date - healthStatus: HealthStatus - vitalSigns: VitalSigns property get + getAssessmentDate(): Date + getHealthStatus(): HealthStatus + getVitalSigns(): VitalSigns property set + setAssessmentDate(newVal: Date): void + setHealthStatus(newVal: HealthStatus): void + setVitalSigns(newVal: VitalSigns): void property set + setDiastolicBloodPressure(newVal: int): void + setPulse(newVal: int): void + setReadingsDate(newVal: Date): void + setRespiratoryRate(newVal: int): void + setSystolicBloodPressure(newVal: int): void + setTemperature(newVal: BigDecimal): void