|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectscheduler.model.Bin
public class Bin
The basic alarm unit for reminders and a container of an arbitrary number of possible doses.
Constructor Summary | |
---|---|
Bin()
Creates a new single bin representation including zero doses by default and set to 12:00AM alarm time. |
Method Summary | |
---|---|
void |
addDose(Dose dose)
Adds a single dose to the bin specified by the dose argument. |
int |
getHour()
Returns this bin's alarm hour. |
int |
getMinute()
Returns this bin's alarm minute. |
Dose[] |
listDoses()
Returns an array of doses currently in this bin. |
void |
removeDose(Dose dose)
Removes a single dose specified by the dose argument from the bin. |
void |
setHour(int hour)
Sets the bin alarm hour to the specified hour argument. |
void |
setMinute(int minute)
Sets the bin alarm minute to the specified minute argument. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Bin()
Method Detail |
---|
public void setHour(int hour)
hour
- the new alarm hour for this binpublic void setMinute(int minute)
minute
- the new alarm minute for this binpublic int getHour()
public int getMinute()
public void addDose(Dose dose)
dose
- the dose instance to be added to this binpublic void removeDose(Dose dose)
dose
- the dose instance to be remove from this binpublic Dose[] listDoses()
Dose
array
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |