Class InterpretationTrieSet
- All Implemented Interfaces:
Iterable<Interpretation>,Collection<Interpretation>,Set<Interpretation>
Deprecated.
Was written for failed experiments and is not maintained anymore.
This is a monotone collection, hence you can only add elements to it, but not
remove them.
- Author:
- Mathias Hofer
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Constructs an emptyInterpretationTrieSet.InterpretationTrieSet(List<Interpretation> interpretations) Deprecated.Constructs anInterpretationTrieSetand populates it with the given list of interpretations. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.booleanDeprecated.iterator()Deprecated.orderedDecided(Interpretation interpretation, Argument[] order) Deprecated.Returns a list of arguments that are decided in the given interpretation, ordered according to the specified array.booleanDeprecated.booleanremoveAll(Collection<?> c) Deprecated.intsize()Deprecated.Methods inherited from class java.util.AbstractSet
equals, hashCodeMethods inherited from class java.util.AbstractCollection
addAll, clear, containsAll, isEmpty, retainAll, toArray, toArray, toStringMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Set
addAll, clear, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
-
Constructor Details
-
InterpretationTrieSet
public InterpretationTrieSet()Deprecated.Constructs an emptyInterpretationTrieSet.This constructor initializes an empty trie set, which can be populated with interpretations using methods like
addoraddAll. -
InterpretationTrieSet
Deprecated.Constructs anInterpretationTrieSetand populates it with the given list of interpretations.This constructor adds all the interpretations from the provided list to the trie set, organizing them in the trie structure for efficient operations.
- Parameters:
interpretations- A list ofInterpretationobjects to be added to the set. If the list is empty, the trie set will be initialized as empty.
-
-
Method Details
-
iterator
Deprecated.- Specified by:
iteratorin interfaceCollection<Interpretation>- Specified by:
iteratorin interfaceIterable<Interpretation>- Specified by:
iteratorin interfaceSet<Interpretation>- Specified by:
iteratorin classAbstractCollection<Interpretation>
-
add
Deprecated.- Specified by:
addin interfaceCollection<Interpretation>- Specified by:
addin interfaceSet<Interpretation>- Overrides:
addin classAbstractCollection<Interpretation>
-
size
public int size()Deprecated.- Specified by:
sizein interfaceCollection<Interpretation>- Specified by:
sizein interfaceSet<Interpretation>- Specified by:
sizein classAbstractCollection<Interpretation>
-
remove
Deprecated.- Specified by:
removein interfaceCollection<Interpretation>- Specified by:
removein interfaceSet<Interpretation>- Overrides:
removein classAbstractCollection<Interpretation>
-
removeAll
Deprecated.- Specified by:
removeAllin interfaceCollection<Interpretation>- Specified by:
removeAllin interfaceSet<Interpretation>- Overrides:
removeAllin classAbstractSet<Interpretation>
-
contains
Deprecated.- Specified by:
containsin interfaceCollection<Interpretation>- Specified by:
containsin interfaceSet<Interpretation>- Overrides:
containsin classAbstractCollection<Interpretation>
-
orderedDecided
Deprecated.Returns a list of arguments that are decided in the given interpretation, ordered according to the specified array.This method iterates over the provided order of arguments and collects those that are decided (i.e., not undecided) in the specified interpretation. The resulting list maintains the order of the arguments as given in the
orderarray.- Parameters:
interpretation- TheInterpretationfrom which to retrieve the decided arguments.order- An array ofArgumentobjects specifying the desired order of arguments.- Returns:
- A
List<Argument>containing the decided arguments in the specified order. - Throws:
IllegalArgumentException- if the interpretation has no decided arguments.
-