Package org.tweetyproject.arg.adf.util
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
ConstructorDescriptionDeprecated.Constructs an emptyInterpretationTrieSet
.InterpretationTrieSet
(List<Interpretation> interpretations) Deprecated.Constructs anInterpretationTrieSet
and populates it with the given list of interpretations. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.boolean
Deprecated.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.boolean
Deprecated.boolean
removeAll
(Collection<?> c) Deprecated.int
size()
Deprecated.Methods inherited from class java.util.AbstractSet
equals, hashCode
Methods inherited from class java.util.AbstractCollection
addAll, clear, containsAll, isEmpty, retainAll, toArray, toArray, toString
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods 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
add
oraddAll
. -
InterpretationTrieSet
Deprecated.Constructs anInterpretationTrieSet
and 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 ofInterpretation
objects 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:
iterator
in interfaceCollection<Interpretation>
- Specified by:
iterator
in interfaceIterable<Interpretation>
- Specified by:
iterator
in interfaceSet<Interpretation>
- Specified by:
iterator
in classAbstractCollection<Interpretation>
-
add
Deprecated.- Specified by:
add
in interfaceCollection<Interpretation>
- Specified by:
add
in interfaceSet<Interpretation>
- Overrides:
add
in classAbstractCollection<Interpretation>
-
size
public int size()Deprecated.- Specified by:
size
in interfaceCollection<Interpretation>
- Specified by:
size
in interfaceSet<Interpretation>
- Specified by:
size
in classAbstractCollection<Interpretation>
-
remove
Deprecated.- Specified by:
remove
in interfaceCollection<Interpretation>
- Specified by:
remove
in interfaceSet<Interpretation>
- Overrides:
remove
in classAbstractCollection<Interpretation>
-
removeAll
Deprecated.- Specified by:
removeAll
in interfaceCollection<Interpretation>
- Specified by:
removeAll
in interfaceSet<Interpretation>
- Overrides:
removeAll
in classAbstractSet<Interpretation>
-
contains
Deprecated.- Specified by:
contains
in interfaceCollection<Interpretation>
- Specified by:
contains
in interfaceSet<Interpretation>
- Overrides:
contains
in 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
order
array.- Parameters:
interpretation
- TheInterpretation
from which to retrieve the decided arguments.order
- An array ofArgument
objects 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.
-