public void addMedicationNode(double treatmentTime, medication medication) { this.nextMed = new MedicationNode(treatmentTime, medication); this.nextMed.setPrevMed(this); }
public MedicationNode(double treatmentTimeX, MedicationNode nextMedX, MedicationNode prevMedX, medication medicationX) { if (treatmentTimeX >= 0) { treatmentTime = treatmentTimeX; } if (nextMedX != null) { nextMed = nextMedX; } if (prevMedX != null) { prevMed = prevMedX; } if (medicationX != null) { medication = medicationX; } meds = new medicationControl(); }
public void setMedication(medication medicationX) { medication = medicationX; }
public medicationControl() { firstMed = null; medScanner = null; }
public void addMedication(medication medToAdd) { this.nextMed = medToAdd; this.nextMed.prevMed = this; }
public void addMedication(String medicationName, String medicaionDoes, double treatmentTime) { this.nextMed = new medication(medicationName, medicaionDoes, treatmentTime); this.nextMed.prevMed = this; }
public void setprevMed(medication prevMedX) { prevMed = prevMedX; }
public void setNextMed(medication nextMedX) { nextMed = nextMedX; }