public interface TermStore<T extends ReasonerTerm,V extends ReasonerLocalVariable> extends Iterable<T>
Modifier and Type | Method and Description |
---|---|
void |
add(GroundRule rule,
T term,
Hyperplane hyperplane)
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.
|
V |
createLocalVariable(GroundAtom atom)
Create a variable local to a specific reasoner term.
|
void |
ensureCapacity(long capacity)
Ensure that the underlying structures can have the required term capacity.
|
void |
ensureVariableCapacity(int capacity)
Ensure that the underlying structures can have the required variable capacity.
|
T |
get(long index) |
void |
initForOptimization()
A notification by the Reasoner that optimization is about to begin.
|
void |
iterationComplete()
A notification by the Reasoner that a single iteration is complete.
|
Iterator<T> |
noWriteIterator()
Get an iterator over the terms in the store that does not write to disk.
|
void |
reset()
Reset the existing terms for another round of inference.
|
long |
size() |
double |
syncAtoms()
Ensure that atoms tracked by this term store match the internal representation of those atoms.
|
void |
variablesExternallyUpdated()
Notify the term store that the variables have been updated through a process external to standard optimization.
|
forEach, iterator, spliterator
void add(GroundRule rule, T term, Hyperplane hyperplane)
void clear()
void reset()
void close()
void iterationComplete()
void initForOptimization()
T get(long index)
long size()
void ensureCapacity(long capacity)
void ensureVariableCapacity(int capacity)
V createLocalVariable(GroundAtom atom)
void variablesExternallyUpdated()
Iterator<T> noWriteIterator()
double syncAtoms()
Copyright © 2022 University of California, Santa Cruz. All rights reserved.