public abstract class ExtensionTable extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static interface |
ExtensionTable.Retrieval
Retrieval.
|
static class |
ExtensionTable.View
View.
|
| Constructor and Description |
|---|
ExtensionTable(Tableau tableau,
int tupleArity,
boolean needsDependencySets) |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
addTuple(Object[] tuple,
DependencySet dependencySet,
boolean isCore) |
void |
backtrack()
Backtrack.
|
void |
branchingPointPushed()
Branching point pushed.
|
void |
clear()
Clear.
|
abstract boolean |
containsTuple(Object[] tuple) |
ExtensionTable.Retrieval |
createRetrieval(boolean[] bindingPattern,
ExtensionTable.View extensionView) |
abstract ExtensionTable.Retrieval |
createRetrieval(int[] bindingPositions,
Object[] bindingsBuffer,
Object[] tupleBuffer,
boolean ownsBuffers,
ExtensionTable.View extensionView) |
int |
getArity() |
DependencySet |
getDependencySet(int tupleIndex) |
abstract DependencySet |
getDependencySet(Object[] tuple) |
Object |
getTupleObject(int tupleIndex,
int objectIndex) |
boolean |
isCore(int tupleIndex) |
abstract boolean |
isCore(Object[] tuple) |
boolean |
isTupleActive(int tupleIndex) |
boolean |
isTupleActive(Object[] tuple) |
boolean |
propagateDeltaNew() |
void |
retrieveTuple(Object[] tupleBuffer,
int tupleIndex) |
abstract int |
sizeInMemory() |
public ExtensionTable(Tableau tableau, int tupleArity, boolean needsDependencySets)
tableau - tableautupleArity - tupleArityneedsDependencySets - needsDependencySetspublic abstract int sizeInMemory()
public int getArity()
public void retrieveTuple(Object[] tupleBuffer, int tupleIndex)
tupleBuffer - tupleBuffertupleIndex - tupleIndexpublic Object getTupleObject(int tupleIndex, int objectIndex)
tupleIndex - tupleIndexobjectIndex - objectIndexpublic DependencySet getDependencySet(int tupleIndex)
tupleIndex - tupleIndexpublic boolean isCore(int tupleIndex)
tupleIndex - tupleIndexpublic abstract boolean addTuple(Object[] tuple, DependencySet dependencySet, boolean isCore)
tuple - tupledependencySet - dependencySetisCore - isCorepublic abstract boolean containsTuple(Object[] tuple)
tuple - tuplepublic ExtensionTable.Retrieval createRetrieval(boolean[] bindingPattern, ExtensionTable.View extensionView)
bindingPattern - bindingPatternextensionView - extensionViewpublic abstract ExtensionTable.Retrieval createRetrieval(int[] bindingPositions, Object[] bindingsBuffer, Object[] tupleBuffer, boolean ownsBuffers, ExtensionTable.View extensionView)
bindingPositions - bindingPositionsbindingsBuffer - bindingsBuffertupleBuffer - tupleBufferownsBuffers - ownsBuffersextensionView - extensionViewpublic abstract DependencySet getDependencySet(Object[] tuple)
tuple - tuplepublic abstract boolean isCore(Object[] tuple)
tuple - tuplepublic boolean propagateDeltaNew()
public void branchingPointPushed()
public void backtrack()
public void clear()
public boolean isTupleActive(Object[] tuple)
tuple - tuplepublic boolean isTupleActive(int tupleIndex)
tupleIndex - tupleIndexCopyright © 2020. All rights reserved.