public interface DiffXEvent extends XMLWritable, XMLFormattable
The main characteristics of a Diff-X event is that it can be compared for equality with another Diff-X event.
Events can be associated with a weight that can be used or ignored by an algorithm. The more weight the less likely an event will be considered to have been modified. The weight can change depending on the algorithm or configuration used.
For convenience, this interface extends the XMLWritable
and
XMLFormattable
in order to turn an event into XML easily. This
may change in the future, if the impact on performance is too heavy.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(DiffXEvent e)
Indicates whether the specified event is equal to this event.
|
int |
getWeight()
Returns the weight of this event.
|
void |
setWeight(int weight)
Sets the weight of this event.
|
toXML
toXML, toXML
boolean equals(DiffXEvent e)
e
- The event to compare it with thsi one.true
if considered equals;
false
otherwise.int getWeight()
The default weight should be 1.
void setWeight(int weight)
This method is intended for use by algorithms, optimisers and loaders in order to adjust the importance of an event.
weight
- The weight of this event.Copyright © 2007-2018. All Rights Reserved.