public interface VariableTermStore<T extends ReasonerTerm,V extends ReasonerLocalVariable> extends TermStore<T,V>
Modifier and Type | Method and Description |
---|---|
int |
getNumVariables() |
int |
getVariableIndex(V variable)
Get the index that matches up to getVariableValues().
|
Iterable<V> |
getVariables() |
float |
getVariableValue(int index)
Get the variable for the given index.
|
float[] |
getVariableValues()
Get the truth values for variabe atoms.
|
boolean |
isLoaded()
Is the term store loaded, and can it give an accurate term and variable count.
|
void |
syncAtoms()
Ensure that all the variable atoms have the same value as the array returned by getVariableValues().
|
void |
updateVariableValue(int index,
float gradient,
float gradientStep)
Update the variable value at the given index.
|
add, clear, close, createLocalVariable, ensureCapacity, ensureVariableCapacity, get, initForOptimization, iterationComplete, noWriteIterator, reset, size
forEach, iterator, spliterator
int getNumVariables()
boolean isLoaded()
float[] getVariableValues()
int getVariableIndex(V variable)
float getVariableValue(int index)
void updateVariableValue(int index, float gradient, float gradientStep)
void syncAtoms()
Copyright © 2020 University of California, Santa Cruz. All rights reserved.