T - the generic type of objects/pairs in this binary relationpublic interface BinaryRelation<T> extends Set<net.sf.tweety.commons.util.Triple<T,T,Relation>>
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(net.sf.tweety.commons.util.Triple<T,T,Relation> t)
adds a new triple containing two elements and its relation
|
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)
|
String |
toString()
returns a String with the elements of this set
|
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArrayparallelStream, removeIf, streamboolean add(net.sf.tweety.commons.util.Triple<T,T,Relation> t)
add in interface Collection<net.sf.tweety.commons.util.Triple<T,T,Relation>>add in interface Set<net.sf.tweety.commons.util.Triple<T,T,Relation>>t - the relation between those two elements (LESS or LESS_EQUAL)boolean isRelated(T a, T b)
a - the first element to be checkedb - the second element to be checkedSet<T> getDomainElements()
boolean isTotal()
boolean isTransitive()
boolean isValid()
Copyright © 2018. All rights reserved.