|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectscheduler.model.Dose
public class Dose
Describes an amount of a particular medication to be taken at a time specified by the containing bin.
Constructor Summary | |
---|---|
Dose(Medication medication)
Creates a new Dose instance for the specified medication with the amount initiated to zero. |
Method Summary | |
---|---|
double |
getAmount()
Returns the amount of medication associated with this dose. |
Medication |
getMedication()
Returns the medication associated with this dose. |
void |
setAmount(double amount)
Sets the dose amount to the specified argument with 1/10 accuracy. |
void |
setMedication(Medication medication)
Sets the medication corresponding to this dose to the argument. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Dose(Medication medication)
medication
- the Medication
to be associated with
this dose specificallyMethod Detail |
---|
public void setMedication(Medication medication)
medication
- the new medication to associate with this dosepublic void setAmount(double amount)
amount
- the amount of medication for this dosepublic Medication getMedication()
public double getAmount()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |