scheduler.generate
Class LocationAndTime

java.lang.Object
  extended by scheduler.generate.LocationAndTime

public class LocationAndTime
extends java.lang.Object

Holds a location and the days/times it has been scheduled for use.

Author:
Eric Liebowitz

Field Summary
protected  DaysInWeek days
          The days of the week which this location is booked
protected  Time end
          The end time of the booking
protected  Location l
          The location
protected  Time start
          The start time of the booking
 
Constructor Summary
protected LocationAndTime(Location l, DaysInWeek days, Time start, Time end)
          Default constructor: fields speak for themselves.
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

l

protected Location l
The location


days

protected DaysInWeek days
The days of the week which this location is booked


start

protected Time start
The start time of the booking


end

protected Time end
The end time of the booking

Constructor Detail

LocationAndTime

protected LocationAndTime(Location l,
                          DaysInWeek days,
                          Time start,
                          Time end)
Default constructor: fields speak for themselves.

Parameters:
l - The location scheduled
days - The days "l" was scheduled
start - The starting time "l" was scheduled for
end - The ending time "l" was scheduled for
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object