scheduler.model
Class Schedule

java.lang.Object
  extended by scheduler.model.Schedule

public class Schedule
extends java.lang.Object

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

Schedule

public Schedule(int numBins)
Creates a new Schedule instance with the specified number of bins. Each bin is initialized to a new instance of Bin.

Parameters:
numBins - specifies the number of bins for this schedule
Method Detail

setBin

public void setBin(Bin bin,
                   int number)
Replaces the specified number bin with the bin argument.

Parameters:
bin - the new bin to replace the old
number - specifies which bin should be replaced

getBin

public Bin getBin(int number)
Returns the bin corresponding to the number argument.

Parameters:
number - specifies which bin should be returned from the schedule.