I
- the Axiom.Ground
used during synchronisation.C
- the changes in the EntitySet of the ontology.public static class Axiom.MappingIntent<I extends Axiom.Ground,C>
extends java.lang.Object
This class is used to keep a track of the modification in the
descriptors or OWL structures. The modifications made during Axiom.Descriptor.readAxioms()
or Axiom.Descriptor.writeAxioms()
.
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 instantiated by
the helpers in the Axiom.Descriptor
object in such a way that we have
(void) element for getOntologyChanges()
during
reading(). Whereas while 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,
Axiom.EntitySet.SynchronisationIntent intent)
Initialise this object during
Axiom.Descriptor.readAxioms() without specifying any getOntologyChanges() . |
MappingIntent(I ground,
Axiom.EntitySet.SynchronisationIntent intent,
boolean writing)
Initialise this object without specifying any
getOntologyChanges() . |
MappingIntent(I ground,
Axiom.EntitySet.SynchronisationIntent intent,
C changes)
Initialise this object during
Axiom.Descriptor.writeAxioms() . |
MappingIntent(I ground,
Axiom.EntitySet.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() |
Axiom.EntitySet.SynchronisationIntent |
getIntent()
Returns the changes within the OWl structure and internal state of the descriptor.
|
C |
getOntologyChanges()
Gets the changes made in the OWL ontology.
|
long |
getTime()
Returns the time in which the changes were made.
|
int |
hashCode() |
java.lang.String |
toString() |
boolean |
wasReading()
Gives a flag ro know if this changes have been made during
Axiom.Descriptor.writeAxioms() or Axiom.Descriptor.readAxioms() . |
boolean |
wasWriting()
Gives a flag ro know if the changes have been made during
Axiom.Descriptor.writeAxioms() or Axiom.Descriptor.readAxioms() . |
public MappingIntent(I ground, Axiom.EntitySet.SynchronisationIntent intent, boolean writing)
getOntologyChanges()
.ground
- the ontology and instance used during synchronisation.intent
- the differences between the OWL structure and internal state of the descriptor.writing
- true
if this is generated during Axiom.Descriptor.writeAxioms()
.
false
if this is generated during Axiom.Descriptor.readAxioms()
.public MappingIntent(I ground, Axiom.EntitySet.SynchronisationIntent intent)
Axiom.Descriptor.readAxioms()
without specifying any getOntologyChanges()
.ground
- the ontology and instance used during synchronisation.intent
- the differences between the OWL structure and internal state of the descriptor.public MappingIntent(I ground, Axiom.EntitySet.SynchronisationIntent intent, C changes, boolean writing)
ground
- the ontology and instance used during synchronisation.intent
- the differences between the OWL structure and internal state of the descriptor.changes
- the ontological changes applied during writing.writing
- true
if this is generated during Axiom.Descriptor.writeAxioms()
.
false
if this is generated during Axiom.Descriptor.readAxioms()
.public MappingIntent(I ground, Axiom.EntitySet.SynchronisationIntent intent, C changes)
Axiom.Descriptor.writeAxioms()
.ground
- the ontology and instance used during synchronisation.intent
- the differences between the OWL structure and internal state of the descriptor.changes
- the ontological changes applied during writing.public boolean wasWriting()
Axiom.Descriptor.writeAxioms()
or Axiom.Descriptor.readAxioms()
.true
if it has been generated during Axiom.Descriptor.writeAxioms()
.
false
otherwise.public boolean wasReading()
Axiom.Descriptor.writeAxioms()
or Axiom.Descriptor.readAxioms()
.true
if it has been generated during Axiom.Descriptor.readAxioms()
.
false
otherwise.public long getTime()
public final Axiom.EntitySet.SynchronisationIntent getIntent()
wasReading()
is (true) those are the changes made
on the internal state of the descriptor to become equal to the OWL ontology (EntitySet#synchroniseFrom(EntitySet)
).
If wasWriting()
is (true) those are the changes made
on the OWL ontology to make it equal to the internal state of the descriptor (EntitySet#synchroniseTo(EntitySet)
).public final I getGround()
Axiom.Ground
.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