TimeInterval

scalation.database.TimeInterval
See theTimeInterval companion object
case class TimeInterval(t1: TimeNum, t2: TimeNum)

The TimeIntervalclass implements Allen's Interval Algebra (first 13). Basic: equals Main: before, meets, overlaps, during, starts, finishes Converse: after, metBy, overlapBy, contains, startBy, finishBy Merge: merge, mergeGap, conflict

Value parameters

t1

the time of the start of the interval (inclusive)

t2

the time of the end of the interval (inclusive)

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

infix inline def <(y: TimeInterval): Boolean
inline def ==(y: TimeInterval): Boolean
infix inline def >(y: TimeInterval): Boolean
infix inline def after(y: TimeInterval): Boolean

Determine whether this time-interval is entirely after time-interval y.

Determine whether this time-interval is entirely after time-interval y.

Value parameters

y

the other time-interval

Attributes

infix def before(y: TimeInterval): Boolean

Determine whether this time-interval is entirely before time-interval y.

Determine whether this time-interval is entirely before time-interval y.

Value parameters

y

the other time-interval

Attributes

infix def conflict(y: TimeInterval): Boolean

Determine whether time-interval this and time-interval y have a time conflict.

Determine whether time-interval this and time-interval y have a time conflict.

Value parameters

y

the other time-interval

Attributes

infix inline def contains(y: TimeInterval): Boolean
infix def during(y: TimeInterval): Boolean
infix def equals(y: TimeInterval): Boolean

Determine whether this time-interval is the same as time-interval y.

Determine whether this time-interval is the same as time-interval y.

Value parameters

y

the other time-interval

Attributes

infix inline def finishBy(y: TimeInterval): Boolean
infix def finishes(y: TimeInterval): Boolean
def format: String

Convert this time-interval to a range of time-of-week strings.

Convert this time-interval to a range of time-of-week strings.

Attributes

infix def meets(y: TimeInterval): Boolean

If time-intervals this and y are disjoint, return null; otherwise return a merged time-interval.

If time-intervals this and y are disjoint, return null; otherwise return a merged time-interval.

Value parameters

y

the other time-interval

Attributes

def mergeGap(y: TimeInterval, gap: Long): TimeInterval

If time-intervals this and y are disjoint beyond the gap, return null; otherwise return a merged time-interval.

If time-intervals this and y are disjoint beyond the gap, return null; otherwise return a merged time-interval.

Value parameters

gap

the allowable time gap (e.g., 15 minutes gap between student classes)

y

the other time-interval

Attributes

infix inline def metBy(y: TimeInterval): Boolean
infix inline def overlapBy(y: TimeInterval): Boolean
infix def overlaps(y: TimeInterval): Boolean
infix inline def startBy(y: TimeInterval): Boolean
infix def starts(y: TimeInterval): Boolean
override def toString: String

Convert this time-interval to a range of time-number (date-time) strings.

Convert this time-interval to a range of time-number (date-time) strings.

Attributes

Definition Classes
Any

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product