Package | Description |
---|---|
net.sf.tweety.preferences |
Modifier and Type | Field and Description |
---|---|
private java.util.Set<Triple<T,T,Relation>> |
PreferenceOrder.relations
a given set of Triples
|
Modifier and Type | Method and Description |
---|---|
static Relation |
Relation.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Relation[] |
Relation.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
Triple<T,T,Relation> |
PreferenceOrder.get(Triple<T,T,Relation> e)
checks existence and returns a demanded pair
|
Triple<T,T,Relation> |
PreferenceOrder.getTriple(T a,
T b)
returns a pair if it consists of of two given elements
|
java.util.Iterator<Triple<T,T,Relation>> |
PreferenceOrder.iterator()
an Iterator over all relations in this po
|
java.util.Iterator<Triple<T,T,Relation>> |
PreferenceOrder.iterator(java.util.Set<Triple<T,T,Relation>> s)
returns an iterator over a set of pairs
|
Modifier and Type | Method and Description |
---|---|
boolean |
PreferenceOrder.addPair(T f,
T s,
Relation relation)
adds two given (single) elements as pair into the set
|
boolean |
PreferenceOrder.containsTriple(T firstElement,
T secondElement,
Relation relation) |
Modifier and Type | Method and Description |
---|---|
boolean |
PreferenceOrder.add(Triple<T,T,Relation> t)
adds a given pair of generic elements to the set.
|
boolean |
BinaryRelation.add(Triple<T,T,Relation> t)
adds a new triple containing two elements and its relation
|
boolean |
PreferenceOrder.addAll(java.util.Collection<? extends Triple<T,T,Relation>> c)
adds all given elements to the preference order
|
Triple<T,T,Relation> |
PreferenceOrder.get(Triple<T,T,Relation> e)
checks existence and returns a demanded pair
|
java.util.Iterator<Triple<T,T,Relation>> |
PreferenceOrder.iterator(java.util.Set<Triple<T,T,Relation>> s)
returns an iterator over a set of pairs
|
Constructor and Description |
---|
PreferenceOrder(java.util.Collection<? extends Triple<T,T,Relation>> relations)
generates a preference order with a given set of elements
|