Beispiel #1
0
 public void addMedicationNode(double treatmentTime, medication medication)
 {
     this.nextMed = new MedicationNode(treatmentTime, medication);
     this.nextMed.setPrevMed(this);
 }
Beispiel #2
0
        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();
        }
Beispiel #3
0
 public void setMedication(medication medicationX)
 {
     medication = medicationX;
 }
Beispiel #4
0
 public medicationControl()
 {
     firstMed   = null;
     medScanner = null;
 }
Beispiel #5
0
 public void addMedication(medication medToAdd)
 {
     this.nextMed         = medToAdd;
     this.nextMed.prevMed = this;
 }
Beispiel #6
0
 public void addMedication(String medicationName, String medicaionDoes, double treatmentTime)
 {
     this.nextMed         = new medication(medicationName, medicaionDoes, treatmentTime);
     this.nextMed.prevMed = this;
 }
Beispiel #7
0
 public void setprevMed(medication prevMedX)
 {
     prevMed = prevMedX;
 }
Beispiel #8
0
 public void setNextMed(medication nextMedX)
 {
     nextMed = nextMedX;
 }