public abstract class Node extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ABox |
abox |
static int |
ALL |
static int |
ATOM |
static int |
BLOCKABLE |
static int |
CHANGED |
protected Map<aterm.ATermAppl,DependencySet> |
depends |
protected Map<Node,DependencySet> |
differents |
protected EdgeList |
inEdges |
static Logger |
log |
static int |
MAX |
protected Set<Node> |
merged
Set of other nodes that have been merged to this node.
|
protected DependencySet |
mergeDepends
Dependency information about why merged happened (if at all)
|
protected Node |
mergedTo
If this node is merged to another one, points to that node otherwise
points to itself.
|
static int |
MIN |
protected aterm.ATermAppl |
name |
static int |
NOM |
static int |
NOMINAL |
static int |
OR |
protected DependencySet |
pruned |
static int |
SOME |
static int |
TYPES |
static int |
UNCHANGED |
| Modifier | Constructor and Description |
|---|---|
protected |
Node(aterm.ATermAppl name,
ABox abox) |
protected |
Node(Node node,
ABox abox) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addInEdge(Edge edge) |
void |
addType(aterm.ATermAppl c,
DependencySet ds) |
abstract Node |
copyTo(ABox abox) |
boolean |
equals(Object obj) |
ABox |
getABox()
getABox
|
Map<Node,DependencySet> |
getAllMerged() |
Map<aterm.ATermAppl,DependencySet> |
getDepends() |
DependencySet |
getDepends(aterm.ATerm c) |
DependencySet |
getDifferenceDependency(Node node) |
Set<Node> |
getDifferents() |
EdgeList |
getInEdges() |
Set<Node> |
getMerged() |
DependencySet |
getMergeDependency(boolean all)
Get the dependency if this node is merged to another node.
|
Node |
getMergedTo() |
aterm.ATermAppl |
getName() |
String |
getNameStr() |
abstract DependencySet |
getNodeDepends() |
abstract int |
getNominalLevel() |
List<aterm.ATermAppl> |
getPath()
A string that identifies this node either using its name or the path
of individuals that comes to this node.
|
DependencySet |
getPruned() |
Node |
getSame() |
abstract aterm.ATermAppl |
getTerm() |
Set<aterm.ATermAppl> |
getTypes() |
int |
hashCode() |
Bool |
hasObviousType(aterm.ATermAppl c) |
boolean |
hasObviousType(Collection<aterm.ATermAppl> coll) |
abstract boolean |
hasSuccessor(Node x) |
boolean |
hasType(aterm.ATerm c) |
void |
inheritDifferents(Node y,
DependencySet ds) |
abstract boolean |
isBlockable() |
boolean |
isBnode() |
boolean |
isConceptRoot()
Returns true if this is the node created for the concept satisfiability check.
|
boolean |
isDifferent(Node node) |
abstract boolean |
isIndividual() |
abstract boolean |
isLeaf() |
abstract boolean |
isLiteral() |
boolean |
isMerged() |
boolean |
isNamedIndividual() |
abstract boolean |
isNominal() |
boolean |
isPruned() |
boolean |
isRoot() |
boolean |
isRootNominal() |
boolean |
isSame(Node node) |
int |
mergedAt() |
abstract void |
prune(DependencySet ds) |
int |
prunedAt() |
boolean |
removeInEdge(Edge edge) |
void |
removeInEdges() |
boolean |
removeType(aterm.ATermAppl c) |
void |
removeTypes() |
void |
reset(boolean onlyApplyTypes) |
protected void |
resetTypes() |
boolean |
restore(int branch) |
Boolean |
restorePruned(int branch) |
void |
setChanged(int type)
Indicates that node has been changed in a way that requires us to recheck
the concepts of given type.
|
void |
setConceptRoot(boolean isConceptRoot) |
boolean |
setDifferent(Node node,
DependencySet ds) |
boolean |
setSame(Node node,
DependencySet ds) |
String |
toString() |
void |
undoSetSame() |
void |
unprune(int branch) |
protected void |
updateNodeReferences() |
public static final Logger log
public static final int BLOCKABLE
public static final int NOMINAL
public static final int CHANGED
public static final int UNCHANGED
public static final int ATOM
public static final int OR
public static final int SOME
public static final int ALL
public static final int MIN
public static final int MAX
public static final int NOM
public static final int TYPES
protected ABox abox
protected aterm.ATermAppl name
protected Map<aterm.ATermAppl,DependencySet> depends
protected Node mergedTo
protected EdgeList inEdges
protected DependencySet mergeDepends
protected DependencySet pruned
protected Set<Node> merged
protected Map<Node,DependencySet> differents
protected Node(aterm.ATermAppl name,
ABox abox)
protected void updateNodeReferences()
public void setChanged(int type)
type - type of concepts that need to be recheckedpublic boolean isConceptRoot()
public void setConceptRoot(boolean isConceptRoot)
public boolean isBnode()
public boolean isNamedIndividual()
public boolean isRoot()
public abstract boolean isLeaf()
public boolean isRootNominal()
protected void addInEdge(Edge edge)
public EdgeList getInEdges()
public boolean removeInEdge(Edge edge)
public void removeInEdges()
public void reset(boolean onlyApplyTypes)
protected void resetTypes()
public Boolean restorePruned(int branch)
public boolean restore(int branch)
public void addType(aterm.ATermAppl c,
DependencySet ds)
public boolean removeType(aterm.ATermAppl c)
public boolean hasType(aterm.ATerm c)
public Bool hasObviousType(aterm.ATermAppl c)
public boolean hasObviousType(Collection<aterm.ATermAppl> coll)
public abstract boolean hasSuccessor(Node x)
public abstract DependencySet getNodeDepends()
public DependencySet getDepends(aterm.ATerm c)
public Map<aterm.ATermAppl,DependencySet> getDepends()
public Set<aterm.ATermAppl> getTypes()
public void removeTypes()
public int prunedAt()
public boolean isPruned()
public DependencySet getPruned()
public abstract void prune(DependencySet ds)
public void unprune(int branch)
public abstract int getNominalLevel()
public abstract boolean isNominal()
public abstract boolean isBlockable()
public abstract boolean isLiteral()
public abstract boolean isIndividual()
public int mergedAt()
public boolean isMerged()
public Node getMergedTo()
public DependencySet getMergeDependency(boolean all)
public Node getSame()
public void undoSetSame()
public Map<Node,DependencySet> getAllMerged()
public boolean setSame(Node node, DependencySet ds)
public boolean isSame(Node node)
public boolean isDifferent(Node node)
public DependencySet getDifferenceDependency(Node node)
public boolean setDifferent(Node node, DependencySet ds)
public void inheritDifferents(Node y, DependencySet ds)
public aterm.ATermAppl getName()
public abstract aterm.ATermAppl getTerm()
public String getNameStr()
public List<aterm.ATermAppl> getPath()
public ABox getABox()
Copyright © 2019. All rights reserved.