public final class Relation extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static Relation |
AFTER |
static Relation |
BEFORE |
static Relation |
CONTAINS |
static Relation |
CONTAINS_OR_EQUALS |
static Relation |
DURING |
static Relation |
EQUALS |
static Relation |
FINISHED_BY |
static Relation |
FINISHES |
static Relation |
MEETS |
static Relation |
MET_BY |
static Relation |
OVERLAPPED_BY |
static Relation |
OVERLAPS |
static Relation |
STARTED_BY |
static Relation |
STARTS |
| Constructor and Description |
|---|
Relation() |
Relation(Integer minDistanceBetweenStarts,
Unit minDistanceBetweenStartsUnits,
Integer maxDistanceBetweenStarts,
Unit maxDistanceBetweenStartsUnits,
Integer minSpan,
Unit minSpanUnits,
Integer maxSpan,
Unit maxSpanUnits,
Integer minDistanceBetween,
Unit minDistanceBetweenUnits,
Integer maxDistanceBetween,
Unit maxDistanceBetweenUnits,
Integer minDistanceBetweenFinishes,
Unit minDistanceBetweenFinishesUnits,
Integer maxDistanceBetweenFinishes,
Unit maxDistanceBetweenFinishesUnits)
Constructs a new
Relation between two intervals from
Weights and Units. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Integer |
getMaxDistanceBetween() |
Integer |
getMaxDistanceBetweenFinishes() |
Unit |
getMaxDistanceBetweenFinishesUnits() |
Integer |
getMaxDistanceBetweenStarts() |
Unit |
getMaxDistanceBetweenStartsUnits() |
Unit |
getMaxDistanceBetweenUnits() |
Integer |
getMaxSpan() |
Unit |
getMaxSpanUnits() |
Integer |
getMinDistanceBetween() |
Integer |
getMinDistanceBetweenFinishes() |
Unit |
getMinDistanceBetweenFinishesUnits() |
Integer |
getMinDistanceBetweenStarts() |
Unit |
getMinDistanceBetweenStartsUnits() |
Unit |
getMinDistanceBetweenUnits() |
Integer |
getMinSpan() |
Unit |
getMinSpanUnits() |
int |
hashCode() |
boolean |
hasRelation(Interval interval1,
Interval interval2)
Determines whether the given intervals have this relation.
|
Relation |
inverse() |
String |
toString() |
public static final Relation BEFORE
public static final Relation AFTER
public static final Relation OVERLAPS
public static final Relation OVERLAPPED_BY
public static final Relation MEETS
public static final Relation MET_BY
public static final Relation EQUALS
public static final Relation CONTAINS
public static final Relation CONTAINS_OR_EQUALS
public static final Relation DURING
public static final Relation STARTS
public static final Relation STARTED_BY
public static final Relation FINISHES
public static final Relation FINISHED_BY
public Relation()
public Relation(Integer minDistanceBetweenStarts, Unit minDistanceBetweenStartsUnits, Integer maxDistanceBetweenStarts, Unit maxDistanceBetweenStartsUnits, Integer minSpan, Unit minSpanUnits, Integer maxSpan, Unit maxSpanUnits, Integer minDistanceBetween, Unit minDistanceBetweenUnits, Integer maxDistanceBetween, Unit maxDistanceBetweenUnits, Integer minDistanceBetweenFinishes, Unit minDistanceBetweenFinishesUnits, Integer maxDistanceBetweenFinishes, Unit maxDistanceBetweenFinishesUnits)
Relation between two intervals from
Weights and Units.minDistanceBetweenStarts - the minimum distance between the starts of the intervals.minDistanceBetweenStartsUnits - units for the minimum distance between the starts of the
intervals.maxDistanceBetweenStarts - the maximum distance between the starts of the intervals.maxDistanceBetweenStartsUnits - units for the maximum distance between the starts of the
intervals.minSpan - the minimum distance between the start of interval 1 and the
finish of interval 2.minSpanUnits - units for the minimum distance between the start of interval 1
and the finish of interval 2.maxSpan - the maximum distance between the start of interval 1 and the
finish of interval 2.maxSpanUnits - units for the maximum distance between the start of interval 1
and the finish of interval 2.minDistanceBetween - the minimum distance between the finish of interval 1 and the
start of interval 2.minDistanceBetweenUnits - units for the minimum distance between the finish of interval
1 and the start of interval 2.maxDistanceBetween - the maximum distance between the finish of interval 1 and the
start of interval 2.maxDistanceBetweenUnits - units for the maximum distance between the finish of interval
1 and the start of interval 2.minDistanceBetweenFinishes - the minimum distance between the finish of interval 1 and the
finish of interval 2.minDistanceBetweenFinishesUnits - units for the minimum distance between the finish of interval
1 and the finish of interval 2.maxDistanceBetweenFinishes - the maximum distance between the finish of interval 1 and the
finish of interval 2.maxDistanceBetweenFinishesUnits - units for the maximum distance between the finish of interval
1 and the finish of interval 2.IllegalArgumentException - if max gt; min for any of the
constraints.public Relation inverse()
public Integer getMinDistanceBetweenStarts()
public Unit getMinDistanceBetweenStartsUnits()
public Integer getMaxDistanceBetweenStarts()
public Unit getMaxDistanceBetweenStartsUnits()
public Integer getMinSpan()
public Unit getMinSpanUnits()
public Integer getMaxSpan()
public Unit getMaxSpanUnits()
public Integer getMinDistanceBetween()
public Unit getMinDistanceBetweenUnits()
public Integer getMaxDistanceBetween()
public Unit getMaxDistanceBetweenUnits()
public Integer getMinDistanceBetweenFinishes()
public Unit getMinDistanceBetweenFinishesUnits()
public Integer getMaxDistanceBetweenFinishes()
public Unit getMaxDistanceBetweenFinishesUnits()
public boolean hasRelation(Interval interval1, Interval interval2)
Copyright © 2012–2018 Emory University. All rights reserved.