|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectscheduler.model.Schedule
public class Schedule
A collection of bins making up a specific and regimented scheduled described more thoroughly by each containing bin.
Constructor Summary | |
---|---|
Schedule(int numBins)
Creates a new Schedule instance with the specified number of bins. |
Method Summary | |
---|---|
Bin |
getBin(int number)
Returns the bin corresponding to the number argument. |
void |
setBin(Bin bin,
int number)
Replaces the specified number bin with the bin argument. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Schedule(int numBins)
Bin
.
numBins
- specifies the number of bins for this scheduleMethod Detail |
---|
public void setBin(Bin bin, int number)
bin
- the new bin to replace the oldnumber
- specifies which bin should be replacedpublic Bin getBin(int number)
number
- specifies which bin should be returned from the schedule.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |