+ new SimpleDateFormat("dd/MM/yyyy").format(person.getLastMoveDate()) + ".";
} else {
additionalInformation = this.getLongName() + " migrated from an unspecified village to '"
+ this.getVillageName() + "' village on an unspecified date.";
}
notificationList.add(new Notification(this, Notification.Type.MIGRATION, person.getLastMoveDate(), additionalInformation));
}
if (person.getExpectedDeliveryDate() != null) {
String additionalInformation = "";
additionalInformation = this.getLongName() + " is pregnant. Her expected delivery date is "
+ new SimpleDateFormat("dd/MM/yyyy").format(person.getExpectedDeliveryDate()) + ".";
notificationList.add(new Notification(this, Notification.Type.PREGNANCY, person.getExpectedDeliveryDate(), additionalInformation));
}
if (person.getPregnancyEndDate() != null) {
Person.PregnancyOutcome pregnancyOutcome = person.getPregnancyOutcome();
String additionalInformation = this.getLongName();
if (pregnancyOutcome != null) {
if (pregnancyOutcome == Person.PregnancyOutcome.multipleBirths) {
additionalInformation = additionalInformation + " had multiple births";
} else if (pregnancyOutcome == Person.PregnancyOutcome.singleBirth) {
additionalInformation = additionalInformation + " had a single birth";
} else if (pregnancyOutcome == Person.PregnancyOutcome.stillBirth) {
additionalInformation = additionalInformation + " had a still birth";
}
} else {
additionalInformation = additionalInformation + "'s pregnancy came to an unspecified end";
}
additionalInformation = additionalInformation + " on "
+ new SimpleDateFormat("dd/MM/yyyy").format(person.getPregnancyEndDate()) + ".";
notificationList.add(new Notification(this, Notification.Type.PREGNANCY_OUTCOME, person.getPregnancyEndDate(), additionalInformation));
}
if (person.getDeathdate() != null) {
String additionalInformation = "";
additionalInformation = this.getLongName() + " died on "
+ new SimpleDateFormat("dd/MM/yyyy").format(person.getDeathdate()) + ".";
notificationList.add(new Notification(this, Notification.Type.DEATH, person.getDeathdate(), additionalInformation));
}
return notificationList;
}