public abstract class IndexedPropertyChain extends IndexedObject implements Comparable<IndexedPropertyChain>
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.| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.log4j.Logger |
LOGGER_ |
| Constructor and Description |
|---|
IndexedPropertyChain() |
| Modifier and Type | Method and Description |
|---|---|
<O> O |
accept(IndexedObjectVisitor<O> visitor) |
abstract <O> O |
accept(IndexedPropertyChainVisitor<O> visitor) |
abstract <O,P> O |
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) |
toStringpublic 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 IndexedPropertyChainsuperObjectProperty - the IndexedObjectProperty to be removedtrue if successfully removedprotected void addRightChain(IndexedBinaryPropertyChain chain)
IndexedBinaryPropertyChain to the list of
IndexedBinaryPropertyChain that contains this
IndexedPropertyChain in the right-hand-sidechain - the IndexedBinaryPropertyChain to be addedprotected boolean removeRightChain(IndexedBinaryPropertyChain chain)
IndexedBinaryPropertyChain from the list of
IndexedBinaryPropertyChain that contain this
IndexedPropertyChain in the right-hand-sidechain - the IndexedBinaryPropertyChain to be removedtrue 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
IndexedPropertyChainSaturatedPropertyChain assigned to this
IndexedPropertyChain or null if none was
assigned.public void resetSaturated()
SaturatedObjecProperty to null.public final int hashCode()
public 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 IndexedObjectpublic abstract <O,P> O accept(IndexedPropertyChainVisitorEx<O,P> visitor, P parameter)
Copyright © 2011-2015 Department of Computer Science, University of Oxford. All Rights Reserved.