public class ObjectLinks extends java.lang.Object implements Axiom.ExpressionEntity<org.semanticweb.owlapi.model.OWLObjectProperty,org.semanticweb.owlapi.model.OWLNamedIndividual>
Axiom.ExpressionEntity
for ObjectLinks.
This class is a container for all the same object properties applied to an individualDescriptor
(with related values). In particular, the getExpression()
is a specific
property, while getValues()
represents a set of values linked with the
above property to a Axiom.Ground
, not specified here.
For this class, (getValues()
) returns elements of Individuals
type.
Constructor and Description |
---|
ObjectLinks()
|
ObjectLinks(java.util.Collection<? extends org.semanticweb.owlapi.model.OWLNamedIndividual> c)
|
ObjectLinks(int initialCapacity)
Initialise this object to have
null getExpression() and set of individuals getValues()
with specified size and load factory. |
ObjectLinks(int initialCapacity,
float loadFactor)
Initialise this object to have
null getExpression() and set of individuals getValues()
with specified size and load factory. |
ObjectLinks(org.semanticweb.owlapi.model.OWLObjectProperty semantic)
Initialise this object to a specific
getExpression() and empty getValues() . |
ObjectLinks(org.semanticweb.owlapi.model.OWLObjectProperty semantic,
java.util.Collection<? extends org.semanticweb.owlapi.model.OWLNamedIndividual> c)
Initialise this object to have a specific
getExpression() and a given set of individuals (getValues() ). |
ObjectLinks(org.semanticweb.owlapi.model.OWLObjectProperty semantic,
int initialCapacity)
Initialise this object to have a specific
getExpression() and set of individuals getValues()
with specified size and load factory. |
ObjectLinks(org.semanticweb.owlapi.model.OWLObjectProperty semantic,
int initialCapacity,
float loadFactor)
Initialise this object to have a specific
getExpression() and set of individuals getValues()
with specified size and load factory. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
org.semanticweb.owlapi.model.OWLObjectProperty |
getExpression()
Gets the expression.
|
ObjectLinks |
getNewData(java.util.Set<org.semanticweb.owlapi.model.OWLNamedIndividual> values)
Creates a new instance of
Axiom.ExpressionEntity that preserves
the expression but assigns new values to it. |
Individuals |
getValues()
Gets the values (i.e., elements) in the
Axiom.EntitySet . |
int |
hashCode() |
void |
setSemantic(org.semanticweb.owlapi.model.OWLObjectProperty semantic)
Set the semantic (i.e.: object property) for all the
getValues() |
java.lang.String |
toString() |
public ObjectLinks()
public ObjectLinks(java.util.Collection<? extends org.semanticweb.owlapi.model.OWLNamedIndividual> c)
c
- the initial set of individuals to assign to this
Axiom.ExpressionEntity
.public ObjectLinks(int initialCapacity, float loadFactor)
null
getExpression()
and set of individuals getValues()
with specified size and load factory.initialCapacity
- the initial size of the individuals HashSet
.loadFactor
- the load factor of the individuals HashSet
.public ObjectLinks(int initialCapacity)
null
getExpression()
and set of individuals getValues()
with specified size and load factory.initialCapacity
- the initial size of the individuals HashSet
.public ObjectLinks(org.semanticweb.owlapi.model.OWLObjectProperty semantic)
getExpression()
and empty getValues()
.semantic
- the initial semantic of this Axiom.ExpressionEntity
.public ObjectLinks(org.semanticweb.owlapi.model.OWLObjectProperty semantic, java.util.Collection<? extends org.semanticweb.owlapi.model.OWLNamedIndividual> c)
getExpression()
and a given set of individuals (getValues()
).semantic
- the initial semantic of this Axiom.ExpressionEntity
.c
- the initial set of individuals to assign to this
Axiom.ExpressionEntity
.public ObjectLinks(org.semanticweb.owlapi.model.OWLObjectProperty semantic, int initialCapacity, float loadFactor)
getExpression()
and set of individuals getValues()
with specified size and load factory.semantic
- the initial semantic of this Axiom.ExpressionEntity
.initialCapacity
- the initial size of the individuals HashSet
.loadFactor
- the load factor of the individuals HashSet
.public ObjectLinks(org.semanticweb.owlapi.model.OWLObjectProperty semantic, int initialCapacity)
getExpression()
and set of individuals getValues()
with specified size and load factory.semantic
- the initial semantic of this Axiom.ExpressionEntity
.initialCapacity
- the initial size of the individuals HashSet
.public org.semanticweb.owlapi.model.OWLObjectProperty getExpression()
Axiom.ExpressionEntity
getExpression
in interface Axiom.ExpressionEntity<org.semanticweb.owlapi.model.OWLObjectProperty,org.semanticweb.owlapi.model.OWLNamedIndividual>
Axiom.EntitySet
.public void setSemantic(org.semanticweb.owlapi.model.OWLObjectProperty semantic)
getValues()
semantic
- the semantic described by this
container.public Individuals getValues()
Axiom.ExpressionEntity
Axiom.EntitySet
.getValues
in interface Axiom.ExpressionEntity<org.semanticweb.owlapi.model.OWLObjectProperty,org.semanticweb.owlapi.model.OWLNamedIndividual>
Axiom.EntitySet
.public ObjectLinks getNewData(java.util.Set<org.semanticweb.owlapi.model.OWLNamedIndividual> values)
Axiom.ExpressionEntity
Axiom.ExpressionEntity
that preserves
the expression but assigns new values to it.
It is used during synchronisation by Axiom.ExpressionEntitySet.SynchronisationMultiIntent
.
getNewData
in interface Axiom.ExpressionEntity<org.semanticweb.owlapi.model.OWLObjectProperty,org.semanticweb.owlapi.model.OWLNamedIndividual>
values
- the new values to be assigned to the expression.Axiom.ExpressionEntity
with the same expression but new values.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object