eu.planets_project.services.compare
Class PropertyComparison

java.lang.Object
  extended by eu.planets_project.services.compare.PropertyComparison

public final class PropertyComparison
extends java.lang.Object

This class encapsulates a comparison property. That is, it encapsulates a single property related to the comparison of the content of two digital objects. The 'first' and 'second' objects. In the 'significant property' case, this is the comparison of the values of a particular property that has been extracted from both files. More generally, this may be a property that encapsulates the relationship between different subsets of properties from each object. i.e. when the same concept is encoded differently in each. Finally, this can be a direct comparison property, like Peak Signal-to-Noise Ratio. These are not a simple comparisons of the properties of objects, but direct expression of the differences between the content or the expected performances.


Nested Class Summary
static class PropertyComparison.Equivalence
           
 
Constructor Summary
PropertyComparison(Property comparison, java.util.List<Property> firstProperties, java.util.List<Property> secondProperties, PropertyComparison.Equivalence equivalence)
          This constructor creates general many-to-many property comparison.
PropertyComparison(Property comparison, PropertyComparison.Equivalence equivalence)
          This constructor creates direct comparison properties.
PropertyComparison(Property comparison, Property first, Property second, PropertyComparison.Equivalence equivalence)
          This constructor creates simple one-to-one property comparisons.
 
Method Summary
 Property getComparison()
           
 PropertyComparison.Equivalence getEquivalence()
           
 java.util.List<Property> getFirstProperties()
           
 Property getFirstProperty()
           
 java.util.List<Property> getSecondProperties()
           
 Property getSecondProperty()
           
 boolean isDirectComparision()
           
 boolean isEqual()
           
 boolean isMissing()
           
 boolean isPropertyComparison()
           
 boolean isSinglePropertyComparison()
           
 boolean isUnknown()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyComparison

public PropertyComparison(Property comparison,
                          java.util.List<Property> firstProperties,
                          java.util.List<Property> secondProperties,
                          PropertyComparison.Equivalence equivalence)
This constructor creates general many-to-many property comparison.

Parameters:
comparison -
firstProperties -
secondProperties -
equivalence -

PropertyComparison

public PropertyComparison(Property comparison,
                          Property first,
                          Property second,
                          PropertyComparison.Equivalence equivalence)
This constructor creates simple one-to-one property comparisons.

Parameters:
comparison -
first -
second -
equivalence -

PropertyComparison

public PropertyComparison(Property comparison,
                          PropertyComparison.Equivalence equivalence)
This constructor creates direct comparison properties.

Parameters:
comparison -
equivalence -
Method Detail

getComparison

public Property getComparison()
Returns:
the comparison

getFirstProperties

public java.util.List<Property> getFirstProperties()
Returns:
the firstProperties

getSecondProperties

public java.util.List<Property> getSecondProperties()
Returns:
the secondProperties

getEquivalence

public PropertyComparison.Equivalence getEquivalence()
Returns:
the equivalence

isEqual

public boolean isEqual()
Returns:

isMissing

public boolean isMissing()
Returns:

isUnknown

public boolean isUnknown()
Returns:

isDirectComparision

public boolean isDirectComparision()
Returns:

isPropertyComparison

public boolean isPropertyComparison()
Returns:

isSinglePropertyComparison

public boolean isSinglePropertyComparison()
Returns:

getFirstProperty

public Property getFirstProperty()
Returns:

getSecondProperty

public Property getSecondProperty()
Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2007-2010 The Planets Consortium. All Rights Reserved.