public class InstanceAssignment extends HashMap<Collection<? extends net.sf.tweety.logics.commons.syntax.Constant>,Integer>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
InstanceAssignment(net.sf.tweety.logics.commons.syntax.Predicate predicate)
Creates a new instance assignment for the given predicate with
no assignments.
|
InstanceAssignment(net.sf.tweety.logics.commons.syntax.Predicate predicate,
Map<? extends Collection<? extends net.sf.tweety.logics.commons.syntax.Constant>,Integer> map)
Creates a new instance assignment for the given predicate
with the given map.
|
| Modifier and Type | Method and Description |
|---|---|
static Set<InstanceAssignment> |
enumerateInstanceAssignments(net.sf.tweety.logics.commons.syntax.Predicate p,
Set<Set<net.sf.tweety.logics.commons.syntax.Constant>> constants)
Determines the set of all instance assignments for the given predicate and
equivalence classes.
|
boolean |
equals(Object obj) |
net.sf.tweety.logics.commons.syntax.Predicate |
getPredicate()
Returns the predicate of this assignment.
|
int |
hashCode() |
int |
numberOfConstants()
Returns the number of constants assigned by this assignment,
i.e.
|
Integer |
put(Collection<? extends net.sf.tweety.logics.commons.syntax.Constant> key,
Integer value) |
String |
toString() |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic InstanceAssignment(net.sf.tweety.logics.commons.syntax.Predicate predicate)
predicate - a predicate.public InstanceAssignment(net.sf.tweety.logics.commons.syntax.Predicate predicate,
Map<? extends Collection<? extends net.sf.tweety.logics.commons.syntax.Constant>,Integer> map)
predicate - a predicate.map - a map mapping sets of constants to integers.public net.sf.tweety.logics.commons.syntax.Predicate getPredicate()
public Integer put(Collection<? extends net.sf.tweety.logics.commons.syntax.Constant> key, Integer value)
put in interface Map<Collection<? extends net.sf.tweety.logics.commons.syntax.Constant>,Integer>put in class HashMap<Collection<? extends net.sf.tweety.logics.commons.syntax.Constant>,Integer>public int numberOfConstants()
public String toString()
toString in class AbstractMap<Collection<? extends net.sf.tweety.logics.commons.syntax.Constant>,Integer>public int hashCode()
hashCode in interface Map<Collection<? extends net.sf.tweety.logics.commons.syntax.Constant>,Integer>hashCode in class AbstractMap<Collection<? extends net.sf.tweety.logics.commons.syntax.Constant>,Integer>public boolean equals(Object obj)
equals in interface Map<Collection<? extends net.sf.tweety.logics.commons.syntax.Constant>,Integer>equals in class AbstractMap<Collection<? extends net.sf.tweety.logics.commons.syntax.Constant>,Integer>public static Set<InstanceAssignment> enumerateInstanceAssignments(net.sf.tweety.logics.commons.syntax.Predicate p, Set<Set<net.sf.tweety.logics.commons.syntax.Constant>> constants)
p - a predicate.constants - a set of constants.Copyright © 2018. All rights reserved.