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