|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.semanticweb.elk.reasoner.indexing.hierarchy.IndexedObject
org.semanticweb.elk.reasoner.indexing.hierarchy.IndexedPropertyChain
public abstract class IndexedPropertyChain
Represents all occurrences of an ElkSubObjectPropertyExpression in an
ontology. To this end, objects of this class keeps a list of sub and super
property expressions. The data structures are optimized for quickly
retrieving the relevant relationships during inferencing.
This class is mainly a data container that provides direct public access to
its content. The task of updating index structures consistently in a global
sense is left to callers.
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
LOGGER_
|
| Constructor Summary | |
|---|---|
IndexedPropertyChain()
|
|
| Method Summary | ||
|---|---|---|
|
accept(IndexedObjectVisitor<O> visitor)
|
|
abstract
|
accept(IndexedPropertyChainVisitor<O> visitor)
|
|
abstract
|
accept(IndexedPropertyChainVisitorEx<O,P> visitor,
P parameter)
|
|
protected void |
addRightChain(IndexedBinaryPropertyChain chain)
Adds the given IndexedBinaryPropertyChain to the list of
IndexedBinaryPropertyChain that contains this
IndexedPropertyChain in the right-hand-side |
|
void |
checkOccurrenceNumbers()
verifies that occurrence numbers are not negative |
|
int |
compareTo(IndexedPropertyChain o)
|
|
Collection<IndexedBinaryPropertyChain> |
getRightChains()
|
|
SaturatedPropertyChain |
getSaturated()
|
|
List<IndexedObjectProperty> |
getToldSuperProperties()
|
|
int |
hashCode()
Get an integer hash code to be used for this object. |
|
boolean |
occurs()
|
|
String |
printOccurrenceNumbers()
|
|
protected boolean |
removeRightChain(IndexedBinaryPropertyChain chain)
Adds the given IndexedBinaryPropertyChain from the list of
IndexedBinaryPropertyChain that contain this
IndexedPropertyChain in the right-hand-side |
|
protected boolean |
removeToldSuperObjectProperty(IndexedObjectProperty superObjectProperty)
Removes the given IndexedObjectProperty ones from the list of
super-roles of this IndexedPropertyChain |
|
void |
resetSaturated()
Resets the corresponding SaturatedObjecProperty to null. |
|
SaturatedPropertyChain |
setSaturated(SaturatedPropertyChain saturatedObjectProperty)
Sets the corresponding SaturatedObjecProperty of this
IndexedPropertyChain if none was yet assigned. |
|
void |
updateAndCheckOccurrenceNumbers(int increment)
|
|
| Methods inherited from class org.semanticweb.elk.reasoner.indexing.hierarchy.IndexedObject |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger LOGGER_
| Constructor Detail |
|---|
public IndexedPropertyChain()
| Method Detail |
|---|
public List<IndexedObjectProperty> getToldSuperProperties()
IndexedBinaryPropertyChainpublic Collection<IndexedBinaryPropertyChain> getRightChains()
IndexedBinaryPropertyChains in which this
IndexedPropertyChain occurs on rightprotected boolean removeToldSuperObjectProperty(IndexedObjectProperty superObjectProperty)
IndexedObjectProperty ones from the list of
super-roles of this IndexedPropertyChain
superObjectProperty - the IndexedObjectProperty to be removed
true if successfully removedprotected void addRightChain(IndexedBinaryPropertyChain chain)
IndexedBinaryPropertyChain to the list of
IndexedBinaryPropertyChain that contains this
IndexedPropertyChain in the right-hand-side
chain - the IndexedBinaryPropertyChain to be addedprotected boolean removeRightChain(IndexedBinaryPropertyChain chain)
IndexedBinaryPropertyChain from the list of
IndexedBinaryPropertyChain that contain this
IndexedPropertyChain in the right-hand-side
chain - the IndexedBinaryPropertyChain to be removed
true if successfully removedpublic boolean occurs()
occurs in class IndexedObjecttrue if this IndexedObject occur in the ontology
indexpublic String printOccurrenceNumbers()
IndexedClassExpressionpublic void checkOccurrenceNumbers()
public void updateAndCheckOccurrenceNumbers(int increment)
public SaturatedPropertyChain getSaturated()
SaturatedObjecProperty assigned to this
IndexedPropertyChain or null if none is assignedpublic SaturatedPropertyChain setSaturated(SaturatedPropertyChain saturatedObjectProperty)
SaturatedObjecProperty of this
IndexedPropertyChain if none was yet assigned.
saturatedObjectProperty - assign the given SaturatedPropertyChain to this
IndexedPropertyChain
SaturatedPropertyChain assigned to this
IndexedPropertyChain or null if none was
assigned.public void resetSaturated()
SaturatedObjecProperty to null.
public final int hashCode()
hashCode in class Objectpublic int compareTo(IndexedPropertyChain o)
compareTo in interface Comparable<IndexedPropertyChain>public abstract <O> O accept(IndexedPropertyChainVisitor<O> visitor)
public <O> O accept(IndexedObjectVisitor<O> visitor)
accept in class IndexedObject
public abstract <O,P> O accept(IndexedPropertyChainVisitorEx<O,P> visitor,
P parameter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||