public abstract class CompletionQueue extends IndividualIterator
Title: Completion Queue
Description: A queue for individuals that need to have completion rules applied
Copyright: Copyright (c) 2008
Company: Clark & Parsia, LLC.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
closed |
protected int |
currentType |
static Logger |
log |
abox, index, nodeList, stop| Modifier | Constructor and Description |
|---|---|
protected |
CompletionQueue(ABox abox)
Constructor - create queue
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
add(QueueElement x)
Add an element to all queues
|
abstract void |
add(QueueElement x,
NodeSelector s)
Add an element to the queue
|
protected boolean |
allowLiterals()
Get flag to allow literals
|
abstract void |
clearQueue(NodeSelector s)
Clear the queue
|
abstract CompletionQueue |
copy()
Copy the queue
|
protected abstract void |
findNext(int type)
Find the next individual in a given queue
|
abstract void |
flushQueue()
Flush the queue
|
protected abstract void |
flushQueue(NodeSelector s)
Flush the queue
|
protected aterm.ATermAppl |
getNextLabel()
Get next label
|
abstract void |
incrementBranch(int branch)
Set branch pointers to current pointer.
|
abstract Node |
nextLiteral()
Get next literal
|
abstract void |
print()
Print method for entire queue
|
abstract void |
print(int type)
Print method for a given queue type
|
void |
printBranchInfo()
Print branch information
|
abstract void |
reset(NodeSelector s)
Reset the current pointer
|
abstract void |
restore(int branch)
Reset the queue to be the current nodes in the abox; Also reset the type index to 0
|
void |
setABox(ABox ab)
Set the abox for the queue
|
void |
setAllowLiterals(boolean val)
Set flag to allow literals
|
void |
setClosed(boolean isClash) |
findNext, hasNext, next, removeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic static final Logger log
protected int currentType
protected boolean closed
protected CompletionQueue(ABox abox)
abox - protected abstract void findNext(int type)
type - public abstract void restore(int branch)
branch - public abstract void add(QueueElement x, NodeSelector s)
x - type - public abstract void add(QueueElement x)
x - type - public abstract void reset(NodeSelector s)
reset in class IndividualIteratortype - public abstract void incrementBranch(int branch)
branch - public abstract CompletionQueue copy()
public void setABox(ABox ab)
ab - public abstract void print(int type)
type - public abstract void print()
public void printBranchInfo()
public void setAllowLiterals(boolean val)
val - public abstract void flushQueue()
protected abstract void flushQueue(NodeSelector s)
public abstract void clearQueue(NodeSelector s)
protected boolean allowLiterals()
public abstract Node nextLiteral()
protected aterm.ATermAppl getNextLabel()
public void setClosed(boolean isClash)
Copyright © 2019. All rights reserved.