|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet<IProposition>
rwth.i2.ltlrv.data.PropositionSet
public class PropositionSet
PropositionSet - A set of proposition with some additional functionality.
Constructor Summary | |
---|---|
PropositionSet()
Constructs an empty set. |
|
PropositionSet(Collection<IProposition> propositions)
Constructs a new set based on the collection of propositions given as input. |
Method Summary | |
---|---|
private WeakValuesMap<String,Set<Object>> |
containedBindings()
Returns the set of contained bindings in the form a={a2,a2},b={b2},... for bindings a=a1, a=a2 and b=b1. |
boolean |
containsMatchFor(IProposition prop)
Returns true if this set contains a proposition which
is matched by the given proposition. |
IProposition |
getEqual(IProposition proposition)
Returns the unique proposition equal to proposition which is contained in this set or null if
there is not such proposition. |
String |
toString()
|
private Collection<WeakValuesMap<String,Object>> |
validCombinations(WeakValuesMap<String,Set<Object>> bindings)
Returns an iterable over all valid combinations of a set of bindings. |
private void |
validCombinations(WeakValuesMap<String,Set<Object>> bindings,
Map<String,Object> accummulator,
Collection<WeakValuesMap<String,Object>> result)
Returns an iterable over all valid combinations of a set of bindings. |
Iterable<WeakValuesMap<String,Object>> |
validCombinationsOfBindings()
Returns an iterable over all valid combinations of bindings. |
Methods inherited from class java.util.HashSet |
---|
add, clear, clone, contains, isEmpty, iterator, remove, size |
Methods inherited from class java.util.AbstractSet |
---|
equals, hashCode, removeAll |
Methods inherited from class java.util.AbstractCollection |
---|
addAll, containsAll, retainAll, toArray, toArray |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
---|
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray |
Constructor Detail |
---|
public PropositionSet()
public PropositionSet(Collection<IProposition> propositions)
propositions
- propositions the set should holdMethod Detail |
---|
public IProposition getEqual(IProposition proposition)
null
if
there is not such proposition.
proposition
- search key
null
if there is nonepublic boolean containsMatchFor(IProposition prop)
true
if this set contains a proposition which
is matched by the given proposition.
prop
- the proposition which maybe matches one of the propositions
of this set
true
if the proposition does match one of the contained propositionsIProposition.matches(IProposition)
public Iterable<WeakValuesMap<String,Object>> validCombinationsOfBindings()
private WeakValuesMap<String,Set<Object>> containedBindings()
private Collection<WeakValuesMap<String,Object>> validCombinations(WeakValuesMap<String,Set<Object>> bindings)
bindings
- the set of bindings in the form a={a2,a2},b={b2},...
private void validCombinations(WeakValuesMap<String,Set<Object>> bindings, Map<String,Object> accummulator, Collection<WeakValuesMap<String,Object>> result)
bindings
- the set of bindings in the form a={a2,a2},b={b2},...accummulator
- accumulator, for temporary use only, must be empty at the beginningresult
- the result is placed herepublic String toString()
toString
in class AbstractCollection<IProposition>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |