T
- the generic type of objects/pairs in this binary relationpublic interface BinaryRelation<T> extends java.util.Set<Triple<T,T,Relation>>
Modifier and Type | Method and Description |
---|---|
boolean |
add(Triple<T,T,Relation> t)
adds a new triple containing two elements and its relation
|
java.util.Set<T> |
getDomainElements()
returns a set of the single elements in this binary relation
|
boolean |
isRelated(T a,
T b)
returns whether the elements a and b are related
|
boolean |
isTotal()
checks whether the set is total or not
|
boolean |
isTransitive()
checks whether the given set is transitive or not
|
boolean |
isValid()
checks whether the preference order is valid (transitive, total and unique)
|
java.lang.String |
toString()
returns a String with the elements of this set
|
boolean isRelated(T a, T b)
a
- the first element to be checkedb
- the second element to be checkedjava.util.Set<T> getDomainElements()
boolean isTotal()
boolean isTransitive()
boolean isValid()
java.lang.String toString()
toString
in class java.lang.Object