public class Individual extends Node implements CachedNode
| Modifier and Type | Field and Description |
|---|---|
int[] |
applyNext |
| Modifier and Type | Method and Description |
|---|---|
Edge |
addEdge(Role r,
Node x,
DependencySet ds) |
protected void |
addInEdge(Edge edge) |
protected void |
addOutEdge(Edge edge) |
void |
addType(aterm.ATermAppl c,
DependencySet ds) |
boolean |
canApply(int type) |
boolean |
checkMaxClash(aterm.ATermAppl normalizedMax,
DependencySet maxDepends) |
boolean |
checkMinClash(aterm.ATermAppl minCard,
DependencySet minDepends) |
Node |
copyTo(ABox abox) |
String |
debugString() |
short |
getDepth() |
DependencySet |
getDifferenceDependency(Node node) |
Set<Node> |
getDifferents() |
EdgeList |
getEdgesTo(Node x) |
EdgeList |
getEdgesTo(Node x,
Role r) |
int |
getMaxCard(Role r) |
int |
getMinCard(Role r,
aterm.ATermAppl c) |
DependencySet |
getNodeDepends() |
int |
getNominalLevel() |
void |
getObviousTypes(List<aterm.ATermAppl> types,
List<aterm.ATermAppl> nonTypes)
Collects atomic concepts such that either that concept or its negation
exist in the types list without depending on any non-deterministic branch.
|
EdgeList |
getOutEdges()
Returns the outgoing edges of this node.
|
Individual |
getParent() |
EdgeList |
getRNeighborEdges(Role r) |
EdgeList |
getRNeighborEdges(Role r,
Node node)
Get neighbor edges to a specific node
|
Set<Node> |
getRNeighbors(Role r) |
EdgeList |
getRPredecessorEdges(Role r) |
EdgeList |
getRSuccessorEdges(Role r) |
Set<Node> |
getRSuccessors(Role r,
aterm.ATermAppl c) |
Individual |
getSame() |
aterm.ATermAppl |
getTerm() |
List<aterm.ATermAppl> |
getTypes(int type) |
Bool |
hasDataPropertyValue(Role r,
Object value)
Check the property assertions to see if it is possible for this individual to
have the value for the given datatype property.
|
DependencySet |
hasDistinctRNeighborsForMax(Role r,
int n,
aterm.ATermAppl c)
Checks if this individual has at least n distinct r-neighbors that has
a specific type.
|
boolean |
hasDistinctRNeighborsForMin(Role r,
int n,
aterm.ATermAppl c) |
boolean |
hasDistinctRNeighborsForMin(Role r,
int n,
aterm.ATermAppl c,
boolean onlyNominals)
Returns true if this individual has at least n distinct r-neighbors.
|
DependencySet |
hasMax1(Role r) |
boolean |
hasRNeighbor(Role r)
Checks if this node is connected to another node with the given role (or
one of its subproperties).
|
boolean |
hasRNeighbor(Role r,
Node x) |
boolean |
hasRSuccessor(Role r) |
boolean |
hasRSuccessor(Role r,
Node x) |
boolean |
hasSuccessor(Node x) |
boolean |
isBlockable() |
boolean |
isBlocked() |
boolean |
isBottom()
Returns if this is the cached node for TOP concept.
|
boolean |
isComplete()
Returns if this cached node is complete.
|
boolean |
isDifferent(Node node) |
boolean |
isIndependent()
Returns if this node was cached without any dependency to a
non-deterministic branch.
|
boolean |
isIndividual() |
boolean |
isLeaf() |
boolean |
isLiteral() |
boolean |
isNominal() |
boolean |
isRedundantMax(aterm.ATermAppl maxCard) |
boolean |
isRedundantMin(aterm.ATermAppl minCard) |
boolean |
isTop()
Returns if this is the cached node for BOTTOM concept.
|
void |
prune(DependencySet ds)
Prune the given node by removing all links going to nominal nodes and recurse
through all successors.
|
boolean |
removeEdge(Edge edge) |
boolean |
removeType(aterm.ATermAppl c) |
void |
reset(boolean onlyApplyTypes)
Resets this node (types, edges, sames, differents) to contain only asserted
information.
|
protected void |
resetTypes() |
boolean |
restore(int branch) |
void |
setBlocked(boolean isBlocked) |
void |
setNominalLevel(int level) |
void |
unprune(int branch) |
protected void |
updateNodeReferences() |
equals, getABox, getAllMerged, getDepends, getDepends, getInEdges, getMerged, getMergeDependency, getMergedTo, getName, getNameStr, getPath, getPruned, getTypes, hashCode, hasObviousType, hasObviousType, hasType, inheritDifferents, isBnode, isConceptRoot, isMerged, isNamedIndividual, isPruned, isRoot, isRootNominal, isSame, mergedAt, prunedAt, removeInEdge, removeInEdges, removeTypes, restorePruned, setChanged, setConceptRoot, setDifferent, setSame, toString, undoSetSameclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDepends, getInEdges, getName, isNamedIndividualpublic boolean isBlocked()
public void setBlocked(boolean isBlocked)
public short getDepth()
public DependencySet getNodeDepends()
getNodeDepends in class Nodepublic boolean isIndividual()
isIndividual in class Nodepublic boolean isBlockable()
isBlockable in class Nodepublic boolean isIndependent()
CachedNodeisIndependent in interface CachedNodepublic void setNominalLevel(int level)
public int getNominalLevel()
getNominalLevel in class Nodepublic List<aterm.ATermAppl> getTypes(int type)
public boolean isDifferent(Node node)
isDifferent in class Nodepublic Set<Node> getDifferents()
getDifferents in class Nodepublic DependencySet getDifferenceDependency(Node node)
getDifferenceDependency in class Nodepublic void getObviousTypes(List<aterm.ATermAppl> types, List<aterm.ATermAppl> nonTypes)
types - All atomic concepts found in typesnonTypes - All atomic conceptspublic boolean canApply(int type)
public void addType(aterm.ATermAppl c,
DependencySet ds)
public boolean checkMinClash(aterm.ATermAppl minCard,
DependencySet minDepends)
public boolean checkMaxClash(aterm.ATermAppl normalizedMax,
DependencySet maxDepends)
public boolean isRedundantMin(aterm.ATermAppl minCard)
public boolean isRedundantMax(aterm.ATermAppl maxCard)
public DependencySet hasMax1(Role r)
public int getMaxCard(Role r)
public int getMinCard(Role r, aterm.ATermAppl c)
public boolean removeType(aterm.ATermAppl c)
removeType in class Nodepublic final Individual getSame()
public EdgeList getRNeighborEdges(Role r, Node node)
r - node - public DependencySet hasDistinctRNeighborsForMax(Role r, int n, aterm.ATermAppl c)
r - Role we use to find neighborsn - Number of neighborsc - The type that all neighbors should belong topublic boolean hasDistinctRNeighborsForMin(Role r, int n, aterm.ATermAppl c)
public boolean hasDistinctRNeighborsForMin(Role r, int n, aterm.ATermAppl c, boolean onlyNominals)
r - n - onlyNominals - public final boolean hasRNeighbor(Role r)
CachedNodehasRNeighbor in interface CachedNodepublic boolean hasRSuccessor(Role r)
public boolean hasSuccessor(Node x)
hasSuccessor in class Nodepublic Bool hasDataPropertyValue(Role r, Object value)
r - value - protected void addOutEdge(Edge edge)
public Edge addEdge(Role r, Node x, DependencySet ds)
public final EdgeList getOutEdges()
CachedNodegetOutEdges in interface CachedNodepublic Individual getParent()
public void reset(boolean onlyApplyTypes)
protected void resetTypes()
resetTypes in class Nodepublic final boolean removeEdge(Edge edge)
public void prune(DependencySet ds)
public String debugString()
protected void updateNodeReferences()
updateNodeReferences in class Nodepublic boolean isBottom()
isBottom in interface CachedNodetrue if this is the cached node for TOP conceptpublic boolean isComplete()
isComplete in interface CachedNodetrue if this cached node is completepublic boolean isTop()
isTop in interface CachedNodetrue if this is the cached node for BOTTOM conceptCopyright © 2019. All rights reserved.