schedule
Class TimeBlock

java.lang.Object
  extended by schedule.TimeBlock

public abstract class TimeBlock
extends java.lang.Object

This class contains the information for time block needed by ScheduledItems


Field Summary
(package private)  java.sql.Time blockEnd
           
(package private)  java.sql.Time blockStart
           
 
Constructor Summary
TimeBlock()
           
 
Method Summary
abstract  boolean isOverlapping(TimeBlock otherTimeBlock)
          Returns true if this TimeBlock overlaps a given TimeBlock
abstract  boolean isValid()
          Returns true if the blockStart is before the blockEnd time
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

blockStart

java.sql.Time blockStart

blockEnd

java.sql.Time blockEnd
Constructor Detail

TimeBlock

public TimeBlock()
Method Detail

isValid

public abstract boolean isValid()
Returns true if the blockStart is before the blockEnd time

Returns:
boolean

isOverlapping

public abstract boolean isOverlapping(TimeBlock otherTimeBlock)
Returns true if this TimeBlock overlaps a given TimeBlock