I
- the Semantic.Ground
used during synchronisation.C
- the type of changed done in the axioms set of the ontology.public static class Semantic.MappingIntent<I extends Semantic.Ground,C>
extends java.lang.Object
This class is used to take track of the modification in the
OWLLOOP or OWL semantics done during Semantic.Descriptor.readSemantic()
or Semantic.Descriptor.writeSemantic()
.
For instance it can be used to monitor the evolution of the system
or role back the changes in case of inconsistency.
The data in this container should be copied in order ot be
independent from the evolution of the architecture.
In the current implementation this class is only instanciated by
the helpers in the Semantic.Descriptor
object in such a way to have
Void
element for getOntologyChanges()
during
reading. On the other hand, during writing, it contains instances
of OWLOntologyChange
.
In case in which an Exception
occurs during synchronisation,
the value getIntent()
would be null
.
Constructor and Description |
---|
MappingIntent(I ground,
Semantic.Axioms.SynchronisationIntent intent)
Initialise this object during
Semantic.Descriptor.readSemantic() without specifying any getOntologyChanges() . |
MappingIntent(I ground,
Semantic.Axioms.SynchronisationIntent intent,
boolean writing)
Initialise this object without specifying any
getOntologyChanges() . |
MappingIntent(I ground,
Semantic.Axioms.SynchronisationIntent intent,
C changes)
Initialise this object during
Semantic.Descriptor.writeSemantic() . |
MappingIntent(I ground,
Semantic.Axioms.SynchronisationIntent intent,
C changes,
boolean writing)
Fully setGround this object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
describesChanges()
Return
true if {@link #getOntologyChanges()} = null . |
boolean |
equals(java.lang.Object o) |
boolean |
errorOccur()
|
I |
getGround()
Returns the ontology and instance references over which the
changes have been performed during synchronisation.
|
Semantic.Axioms.SynchronisationIntent |
getIntent()
Returns the changes within the OWl and the OWLOOP
representation given on construction.
|
C |
getOntologyChanges()
The changes made in the OWL ontology.
|
long |
getTime()
Returns the time in which
this changes have been done. |
int |
hashCode() |
java.lang.String |
toString() |
boolean |
wasReading()
Gives a flag ro know if this changes have been made during
Semantic.Descriptor.writeSemantic() or Semantic.Descriptor.readSemantic() . |
boolean |
wasWriting()
Gives a flag ro know if this changes have been made during
Semantic.Descriptor.writeSemantic() or Semantic.Descriptor.readSemantic() . |
public MappingIntent(I ground, Semantic.Axioms.SynchronisationIntent intent)
Semantic.Descriptor.readSemantic()
without specifying any getOntologyChanges()
.ground
- the ontology and instance used during synchronisation.intent
- the differences between the OWL and OWLOOP representation.public MappingIntent(I ground, Semantic.Axioms.SynchronisationIntent intent, boolean writing)
getOntologyChanges()
.ground
- the ontology and instance used during synchronisation.intent
- the differences between the OWL and OWLOOP representation.writing
- true
if this is generated during Semantic.Descriptor.writeSemantic()
.
false
if this is generated during Semantic.Descriptor.readSemantic()
.public MappingIntent(I ground, Semantic.Axioms.SynchronisationIntent intent, C changes)
Semantic.Descriptor.writeSemantic()
.ground
- the ontology and instance used during synchronisation.intent
- the differences between the OWL and OWLOOP representation.changes
- the ontological changes applied during writing.public MappingIntent(I ground, Semantic.Axioms.SynchronisationIntent intent, C changes, boolean writing)
ground
- the ontology and instance used during synchronisation.intent
- the differences between the OWL and OWLOOP representation.changes
- the ontological changes applied during writing.writing
- true
if this is generated during Semantic.Descriptor.writeSemantic()
.
false
if this is generated during Semantic.Descriptor.readSemantic()
.public boolean wasWriting()
Semantic.Descriptor.writeSemantic()
or Semantic.Descriptor.readSemantic()
.true
if it has been generated during Semantic.Descriptor.writeSemantic()
.
false
otherwise.public boolean wasReading()
Semantic.Descriptor.writeSemantic()
or Semantic.Descriptor.readSemantic()
.true
if it has been generated during Semantic.Descriptor.readSemantic()
.
false
otherwise.public long getTime()
this
changes have been done.public final Semantic.Axioms.SynchronisationIntent getIntent()
wasReading()
is true
those are the changes made
on the OWLLOOP representation to become equal to the OWL ontology (Semantic.Axioms.synchroniseFrom(Axioms)
).
If wasWriting()
is true
those are the changes made
on the OWL ontology to make it equal to the OWLLOOP representation (Semantic.Axioms.synchroniseTo(Axioms)
).public final I getGround()
Semantic.Ground
given on constructor.public final C getOntologyChanges()
public boolean errorOccur()
true
if an error occurs during reading or writing.
false
otherwise.public boolean describesChanges()
true
if {@link #getOntologyChanges()} = null
.true
if changes have been given during constructor.
false
otherwise.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