public interface TermStore<E extends Term> extends Iterable<E>
Modifier and Type | Method and Description |
---|---|
void |
add(GroundRule rule,
E term)
Add a term to the store that was generated from the given ground rule.
|
void |
clear()
Remove any existing terms and prepare for a new set.
|
void |
close()
Close down the term store, it will not be used any more.
|
void |
ensureCapacity(int capacity)
Ensure that the underlying stuctures can have the required capacity.
|
E |
get(int index) |
List<Integer> |
getTermIndices(WeightedGroundRule rule)
Get the indicies for all terms related to a specific rule.
|
int |
size() |
void |
updateWeight(WeightedGroundRule rule) |
forEach, iterator, spliterator
void add(GroundRule rule, E term)
void clear()
void close()
E get(int index)
int size()
void ensureCapacity(int capacity)
void updateWeight(WeightedGroundRule rule)
List<Integer> getTermIndices(WeightedGroundRule rule)
Copyright © 2018 University of California, Santa Cruz. All rights reserved.