public class Relation
extends java.lang.Object
RangeDomain
returns a
Relation object.Constructor and Description |
---|
Relation()
Constructs an empty relation that implies unknown relationship.
|
Relation(boolean lt,
boolean eq,
boolean gt)
Constructs a relation object with the specified set of relationships.
|
Modifier and Type | Method and Description |
---|---|
static Relation |
AND(Relation rel1,
Relation rel2)
Logical AND operation between two relation objects.
|
boolean |
isCircular() |
boolean |
isEQ()
Checks if "equal to" is implied in this relation.
|
boolean |
isGE()
Checks if "greater equal" is implied in this relation.
|
boolean |
isGT()
Checks if "greater than" is implied in this relation.
|
boolean |
isLE()
Checks if "less equal" is implied in this relation.
|
boolean |
isLT()
Checks if "less than" is implied in this relation.
|
boolean |
isNE()
Checks if "not equal" is implied in this relation.
|
boolean |
isUnknown()
Checks if there is no known relationship.
|
static Relation |
OR(Relation rel1,
Relation rel2)
Logical OR operation between two relation objects.
|
void |
setCircular(boolean circular) |
void |
setEQ(boolean eq) |
void |
setGT(boolean gt) |
void |
setLT(boolean lt) |
java.lang.String |
toString()
Returns the string representation of the relation.
|
public Relation()
public Relation(boolean lt, boolean eq, boolean gt)
lt
- the "less than" relation.eq
- the "equal to" relation.gt
- the "greater than" relation.public void setLT(boolean lt)
public void setEQ(boolean eq)
public void setGT(boolean gt)
public void setCircular(boolean circular)
public boolean isLT()
public boolean isLE()
public boolean isEQ()
public boolean isNE()
public boolean isGT()
public boolean isGE()
public boolean isUnknown()
public boolean isCircular()
public static Relation AND(Relation rel1, Relation rel2)
public static Relation OR(Relation rel1, Relation rel2)
public java.lang.String toString()
toString
in class java.lang.Object