public static class MORAxioms.ObjectSemantic extends java.lang.Object implements Semantic.SemanticAxiom<org.semanticweb.owlapi.model.OWLObjectProperty,org.semanticweb.owlapi.model.OWLNamedIndividual>
Semantic.SemanticAxiom
for ontological object properties.
This class is a container for all the same object properties applied to an individual
(with related values). In particular, the getSemantic()
is a specific
property, while getValues()
represents a set of values linked with the
above property to a Semantic.Ground
, not specified here.
For this class, the individuals (getValues()
) are of the MORAxioms.Individuals
type.
Constructor and Description |
---|
ObjectSemantic()
|
ObjectSemantic(int initialCapacity)
Initialise this object to have
null getSemantic() and set of individuals getValues()
with specified size and load factory. |
ObjectSemantic(int initialCapacity,
float loadFactor)
Initialise this object to have
null getSemantic() and set of individuals getValues()
with specified size and load factory. |
ObjectSemantic(java.util.Collection<? extends org.semanticweb.owlapi.model.OWLNamedIndividual> c)
|
ObjectSemantic(org.semanticweb.owlapi.model.OWLObjectProperty semantic)
Initialise this object to a specific
getSemantic() and empty getValues() . |
ObjectSemantic(org.semanticweb.owlapi.model.OWLObjectProperty semantic,
int initialCapacity)
Initialise this object to have a specific
getSemantic() and set of individuals getValues()
with specified size and load factory. |
ObjectSemantic(org.semanticweb.owlapi.model.OWLObjectProperty semantic,
int initialCapacity,
float loadFactor)
Initialise this object to have a specific
getSemantic() and set of individuals getValues()
with specified size and load factory. |
ObjectSemantic(org.semanticweb.owlapi.model.OWLObjectProperty semantic,
java.util.Collection<? extends org.semanticweb.owlapi.model.OWLNamedIndividual> c)
Initialise this object to have a specific
getSemantic() and a given set of individuals (getValues() ). |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
MORAxioms.ObjectSemantic |
getNewData(java.util.Set<org.semanticweb.owlapi.model.OWLNamedIndividual> values)
It should create a new instance of this object that preserve
the
semantic but assign new values to it. |
org.semanticweb.owlapi.model.OWLObjectProperty |
getSemantic()
Represents the semantic (i.e.: data or object property)
that aggregates all
Semantic.SemanticAxiom.getValues() (i.e.: Semantic.Axioms ). |
MORAxioms.Individuals |
getValues()
Represents the
Semantic.Axioms of this container. |
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 ObjectSemantic()
public ObjectSemantic(int initialCapacity)
null
getSemantic()
and set of individuals getValues()
with specified size and load factory.initialCapacity
- the initial size of the individuals HashSet
.public ObjectSemantic(int initialCapacity, float loadFactor)
null
getSemantic()
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 ObjectSemantic(java.util.Collection<? extends org.semanticweb.owlapi.model.OWLNamedIndividual> c)
c
- the initial set of individuals to assign to this
Semantic.SemanticAxiom
.public ObjectSemantic(org.semanticweb.owlapi.model.OWLObjectProperty semantic)
getSemantic()
and empty getValues()
.semantic
- the initial semantic of this Semantic.SemanticAxiom
.public ObjectSemantic(org.semanticweb.owlapi.model.OWLObjectProperty semantic, int initialCapacity)
getSemantic()
and set of individuals getValues()
with specified size and load factory.semantic
- the initial semantic of this Semantic.SemanticAxiom
.initialCapacity
- the initial size of the individuals HashSet
.public ObjectSemantic(org.semanticweb.owlapi.model.OWLObjectProperty semantic, int initialCapacity, float loadFactor)
getSemantic()
and set of individuals getValues()
with specified size and load factory.semantic
- the initial semantic of this Semantic.SemanticAxiom
.initialCapacity
- the initial size of the individuals HashSet
.loadFactor
- the load factor of the individuals HashSet
.public ObjectSemantic(org.semanticweb.owlapi.model.OWLObjectProperty semantic, java.util.Collection<? extends org.semanticweb.owlapi.model.OWLNamedIndividual> c)
getSemantic()
and a given set of individuals (getValues()
).semantic
- the initial semantic of this Semantic.SemanticAxiom
.c
- the initial set of individuals to assign to this
Semantic.SemanticAxiom
.public org.semanticweb.owlapi.model.OWLObjectProperty getSemantic()
Semantic.SemanticAxiom
Semantic.SemanticAxiom.getValues()
(i.e.: Semantic.Axioms
).getSemantic
in interface Semantic.SemanticAxiom<org.semanticweb.owlapi.model.OWLObjectProperty,org.semanticweb.owlapi.model.OWLNamedIndividual>
Semantic.Axioms
described in this
container.public void setSemantic(org.semanticweb.owlapi.model.OWLObjectProperty semantic)
getValues()
semantic
- the semantic described by this
container.public MORAxioms.Individuals getValues()
Semantic.SemanticAxiom
Semantic.Axioms
of this container.
All those values are described by the same Semantic.SemanticAxiom.getSemantic()
.getValues
in interface Semantic.SemanticAxiom<org.semanticweb.owlapi.model.OWLObjectProperty,org.semanticweb.owlapi.model.OWLNamedIndividual>
this
container.public MORAxioms.ObjectSemantic getNewData(java.util.Set<org.semanticweb.owlapi.model.OWLNamedIndividual> values)
Semantic.SemanticAxiom
semantic
but assign new values to it.
It is used during synchronisation by Semantic.SemanticAxioms.SynchronisationMultiIntent
.getNewData
in interface Semantic.SemanticAxiom<org.semanticweb.owlapi.model.OWLObjectProperty,org.semanticweb.owlapi.model.OWLNamedIndividual>
values
- the new data to be assigned to the same semantic.Semantic.SemanticAxiom.getSemantic()
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