|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.monad.homerun.base.DataObject com.monad.homerun.action.Schedule
public class Schedule
The Schedule class holds an ordered list of schedule entries for a designated interval (currently, only a week). These entries currently include only time bindings, viz. actions set to start, run, or stop at a designated time.
Field Summary | |
---|---|
static java.lang.String |
NO_NEXT_SCHEDULE
|
Constructor Summary | |
---|---|
Schedule()
|
|
Schedule(Schedule schedule)
|
|
Schedule(java.lang.String schedName)
|
|
Schedule(java.lang.String schedName,
int repeat,
java.lang.String nextSched,
TimeBinding[] entries)
|
Method Summary | |
---|---|
void |
addEntry(TimeBinding entry)
Adds a time binding as an entry in the schedule |
TimeBinding[] |
getEntries()
Returns all the schedule entries in a time-ordered array |
TimeBinding |
getEntry(int index)
Returns a schedule entry at the passed index |
int |
getFirstIndexAt(short time)
|
int |
getLength()
Returns the number of minutes in the schedule |
java.lang.String |
getNextSchedule()
Returns the name of the schedule that follows this one |
int |
getNumEntries()
Returns the number of entries in the schedule |
int |
getRepeat()
Returns the repetition count of the schedule |
void |
loadEntries(TimeBinding[] entries)
|
void |
removeEntry(int index)
|
void |
removeEntry(TimeBinding entry)
Removes a time binding entry from the schedule |
void |
setNextSchedule(java.lang.String nextSched)
|
void |
setRepeat(int repeat)
|
Methods inherited from class com.monad.homerun.base.DataObject |
---|
getCategory, getModificationTime, getName, getNote, setCategory, setModificationTime, setName, setNote |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NO_NEXT_SCHEDULE
Constructor Detail |
---|
public Schedule()
public Schedule(java.lang.String schedName)
public Schedule(java.lang.String schedName, int repeat, java.lang.String nextSched, TimeBinding[] entries)
public Schedule(Schedule schedule)
Method Detail |
---|
public void loadEntries(TimeBinding[] entries)
public void addEntry(TimeBinding entry)
entry
- a time bindingpublic void removeEntry(TimeBinding entry)
entry
- the time binding to removepublic TimeBinding[] getEntries()
public int getFirstIndexAt(short time)
public TimeBinding getEntry(int index)
index
- the index in the schedule
public void removeEntry(int index)
public int getRepeat()
public int getNumEntries()
public int getLength()
public void setRepeat(int repeat)
public java.lang.String getNextSchedule()
public void setNextSchedule(java.lang.String nextSched)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |