Ignore:
Timestamp:
03/02/12 13:48:25 (8 years ago)
Author:
mnagni
Message:

Fixed the multiple CI_Party INSERT in the DB
Refactored the ingestion thanks to the new eq method in the imported classes DB library

Location:
mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information
Files:
30 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_absoluteexternalpositionalaccuracy.py

    r8074 r8086  
     1 
    12 
    23 
     
    1819 
    1920''' 
    20 Created on 26-Jan-2012 16:07:35 
     21Created on 03-Feb-2012 10:41:15 
    2122 
    2223@author: mnagni 
     
    4041        self.nameOfMeasure = [] 
    4142        self.evaluationMethodDescription = None 
    42         self._result_dq_quantitativeresult = [] 
    4343        self._result_dq_conformanceresult = [] 
    4444        self._result_qe_coverageresult = [] 
     45        self._result_dq_quantitativeresult = [] 
    4546        self.measureIdentification = None 
    4647        self.evaluationProcedure = None 
     48        self.dateTime = [] 
    4749        self.measureDescription = None 
    48         self.dateTime = [] 
    4950        super(DQ_AbsoluteExternalPositionalAccuracy, self).__init__() 
    5051 
     
    5556    @evaluationMethodType.setter 
    5657    def evaluationMethodType(self, value): 
    57              self._dq_positionalaccuracy.evaluationMethodType = value 
     58            self._dq_positionalaccuracy.evaluationMethodType = value 
    5859 
    5960    @property 
     
    6364    @nameOfMeasure.setter 
    6465    def nameOfMeasure(self, value): 
    65              self._dq_positionalaccuracy.nameOfMeasure = value 
     66            self._dq_positionalaccuracy.nameOfMeasure = value 
    6667 
    6768    @property 
     
    7172    @evaluationMethodDescription.setter 
    7273    def evaluationMethodDescription(self, value): 
    73              self._dq_positionalaccuracy.evaluationMethodDescription = value 
     74            self._dq_positionalaccuracy.evaluationMethodDescription = value 
    7475 
    7576    @property 
     
    7980    @result.setter 
    8081    def result(self, value): 
    81              self._dq_positionalaccuracy.result = value 
     82            self._dq_positionalaccuracy.result = value 
    8283 
    8384    @property 
     
    8788    @measureIdentification.setter 
    8889    def measureIdentification(self, value): 
    89              self._dq_positionalaccuracy.measureIdentification = value 
     90            self._dq_positionalaccuracy.measureIdentification = value 
    9091 
    9192    @property 
     
    9596    @evaluationProcedure.setter 
    9697    def evaluationProcedure(self, value): 
    97              self._dq_positionalaccuracy.evaluationProcedure = value 
     98            self._dq_positionalaccuracy.evaluationProcedure = value 
     99 
     100    @property 
     101    def dateTime(self): 
     102        return self._dq_positionalaccuracy.dateTime 
     103 
     104    @dateTime.setter 
     105    def dateTime(self, value): 
     106            self._dq_positionalaccuracy.dateTime = value 
    98107 
    99108    @property 
     
    103112    @measureDescription.setter 
    104113    def measureDescription(self, value): 
    105              self._dq_positionalaccuracy.measureDescription = value 
     114            self._dq_positionalaccuracy.measureDescription = value 
    106115 
    107     @property 
    108     def dateTime(self): 
    109         return self._dq_positionalaccuracy.dateTime 
     116    def __key(self): 
     117        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.measureIdentification, self.evaluationProcedure, self.dateTime, self.measureDescription) 
    110118 
    111     @dateTime.setter 
    112     def dateTime(self, value): 
    113              self._dq_positionalaccuracy.dateTime = value 
     119    def __eq__(x, y): 
     120        ''' 
     121        Cannot compare classes which do not define a "__key" attribute  
     122        ''' 
     123        if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     124            return x.__key() == y.__key() 
     125        return id(x) == id(y) 
     126 
     127    def __hash__(self): 
     128        return hash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_accuracyofatimemeasurement.py

    r8074 r8086  
     1 
    12 
    23 
     
    1819 
    1920''' 
    20 Created on 26-Jan-2012 16:07:32 
     21Created on 03-Feb-2012 10:41:17 
    2122 
    2223@author: mnagni 
     
    4041        self.nameOfMeasure = [] 
    4142        self.evaluationMethodDescription = None 
    42         self._result_dq_quantitativeresult = [] 
    4343        self._result_dq_conformanceresult = [] 
    4444        self._result_qe_coverageresult = [] 
     45        self._result_dq_quantitativeresult = [] 
    4546        self.measureIdentification = None 
    4647        self.evaluationProcedure = None 
     48        self.dateTime = [] 
    4749        self.measureDescription = None 
    48         self.dateTime = [] 
    4950        super(DQ_AccuracyOfATimeMeasurement, self).__init__() 
    5051 
     
    5556    @evaluationMethodType.setter 
    5657    def evaluationMethodType(self, value): 
    57              self._dq_temporalaccuracy.evaluationMethodType = value 
     58            self._dq_temporalaccuracy.evaluationMethodType = value 
    5859 
    5960    @property 
     
    6364    @nameOfMeasure.setter 
    6465    def nameOfMeasure(self, value): 
    65              self._dq_temporalaccuracy.nameOfMeasure = value 
     66            self._dq_temporalaccuracy.nameOfMeasure = value 
    6667 
    6768    @property 
     
    7172    @evaluationMethodDescription.setter 
    7273    def evaluationMethodDescription(self, value): 
    73              self._dq_temporalaccuracy.evaluationMethodDescription = value 
     74            self._dq_temporalaccuracy.evaluationMethodDescription = value 
    7475 
    7576    @property 
     
    7980    @result.setter 
    8081    def result(self, value): 
    81              self._dq_temporalaccuracy.result = value 
     82            self._dq_temporalaccuracy.result = value 
    8283 
    8384    @property 
     
    8788    @measureIdentification.setter 
    8889    def measureIdentification(self, value): 
    89              self._dq_temporalaccuracy.measureIdentification = value 
     90            self._dq_temporalaccuracy.measureIdentification = value 
    9091 
    9192    @property 
     
    9596    @evaluationProcedure.setter 
    9697    def evaluationProcedure(self, value): 
    97              self._dq_temporalaccuracy.evaluationProcedure = value 
     98            self._dq_temporalaccuracy.evaluationProcedure = value 
     99 
     100    @property 
     101    def dateTime(self): 
     102        return self._dq_temporalaccuracy.dateTime 
     103 
     104    @dateTime.setter 
     105    def dateTime(self, value): 
     106            self._dq_temporalaccuracy.dateTime = value 
    98107 
    99108    @property 
     
    103112    @measureDescription.setter 
    104113    def measureDescription(self, value): 
    105              self._dq_temporalaccuracy.measureDescription = value 
     114            self._dq_temporalaccuracy.measureDescription = value 
    106115 
    107     @property 
    108     def dateTime(self): 
    109         return self._dq_temporalaccuracy.dateTime 
     116    def __key(self): 
     117        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.measureIdentification, self.evaluationProcedure, self.dateTime, self.measureDescription) 
    110118 
    111     @dateTime.setter 
    112     def dateTime(self, value): 
    113              self._dq_temporalaccuracy.dateTime = value 
     119    def __eq__(x, y): 
     120        ''' 
     121        Cannot compare classes which do not define a "__key" attribute  
     122        ''' 
     123        if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     124            return x.__key() == y.__key() 
     125        return id(x) == id(y) 
     126 
     127    def __hash__(self): 
     128        return hash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_completeness.py

    r8074 r8086  
     1 
    12 
    23 
     
    1819 
    1920''' 
    20 Created on 26-Jan-2012 16:07:38 
     21Created on 03-Feb-2012 10:41:18 
    2122 
    2223@author: mnagni 
     
    4041        self.nameOfMeasure = [] 
    4142        self.evaluationMethodDescription = None 
    42         self._result_dq_quantitativeresult = [] 
    4343        self._result_dq_conformanceresult = [] 
    4444        self._result_qe_coverageresult = [] 
     45        self._result_dq_quantitativeresult = [] 
    4546        self.measureIdentification = None 
    4647        self.evaluationProcedure = None 
     48        self.dateTime = [] 
    4749        self.measureDescription = None 
    48         self.dateTime = [] 
    4950        super(DQ_Completeness, self).__init__() 
    5051 
     
    5556    @evaluationMethodType.setter 
    5657    def evaluationMethodType(self, value): 
    57              self._dq_element.evaluationMethodType = value 
     58            self._dq_element.evaluationMethodType = value 
    5859 
    5960    @property 
     
    6364    @nameOfMeasure.setter 
    6465    def nameOfMeasure(self, value): 
    65              self._dq_element.nameOfMeasure = value 
     66            self._dq_element.nameOfMeasure = value 
    6667 
    6768    @property 
     
    7172    @evaluationMethodDescription.setter 
    7273    def evaluationMethodDescription(self, value): 
    73              self._dq_element.evaluationMethodDescription = value 
     74            self._dq_element.evaluationMethodDescription = value 
    7475 
    7576    @property 
     
    7980    @result.setter 
    8081    def result(self, value): 
    81              self._dq_element.result = value 
     82            self._dq_element.result = value 
    8283 
    8384    @property 
     
    8788    @measureIdentification.setter 
    8889    def measureIdentification(self, value): 
    89              self._dq_element.measureIdentification = value 
     90            self._dq_element.measureIdentification = value 
    9091 
    9192    @property 
     
    9596    @evaluationProcedure.setter 
    9697    def evaluationProcedure(self, value): 
    97              self._dq_element.evaluationProcedure = value 
     98            self._dq_element.evaluationProcedure = value 
     99 
     100    @property 
     101    def dateTime(self): 
     102        return self._dq_element.dateTime 
     103 
     104    @dateTime.setter 
     105    def dateTime(self, value): 
     106            self._dq_element.dateTime = value 
    98107 
    99108    @property 
     
    103112    @measureDescription.setter 
    104113    def measureDescription(self, value): 
    105              self._dq_element.measureDescription = value 
     114            self._dq_element.measureDescription = value 
    106115 
    107     @property 
    108     def dateTime(self): 
    109         return self._dq_element.dateTime 
     116    def __key(self): 
     117        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.measureIdentification, self.evaluationProcedure, self.dateTime, self.measureDescription) 
    110118 
    111     @dateTime.setter 
    112     def dateTime(self, value): 
    113              self._dq_element.dateTime = value 
     119    def __eq__(x, y): 
     120        ''' 
     121        Cannot compare classes which do not define a "__key" attribute  
     122        ''' 
     123        if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     124            return x.__key() == y.__key() 
     125        return id(x) == id(y) 
     126 
     127    def __hash__(self): 
     128        return hash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_completenesscommission.py

    r8074 r8086  
     1 
    12 
    23 
     
    1819 
    1920''' 
    20 Created on 26-Jan-2012 16:07:30 
     21Created on 03-Feb-2012 10:41:09 
    2122 
    2223@author: mnagni 
     
    4041        self.nameOfMeasure = [] 
    4142        self.evaluationMethodDescription = None 
    42         self._result_dq_quantitativeresult = [] 
    4343        self._result_dq_conformanceresult = [] 
    4444        self._result_qe_coverageresult = [] 
     45        self._result_dq_quantitativeresult = [] 
    4546        self.measureIdentification = None 
    4647        self.evaluationProcedure = None 
     48        self.dateTime = [] 
    4749        self.measureDescription = None 
    48         self.dateTime = [] 
    4950        super(DQ_CompletenessCommission, self).__init__() 
    5051 
     
    5556    @evaluationMethodType.setter 
    5657    def evaluationMethodType(self, value): 
    57              self._dq_completeness.evaluationMethodType = value 
     58            self._dq_completeness.evaluationMethodType = value 
    5859 
    5960    @property 
     
    6364    @nameOfMeasure.setter 
    6465    def nameOfMeasure(self, value): 
    65              self._dq_completeness.nameOfMeasure = value 
     66            self._dq_completeness.nameOfMeasure = value 
    6667 
    6768    @property 
     
    7172    @evaluationMethodDescription.setter 
    7273    def evaluationMethodDescription(self, value): 
    73              self._dq_completeness.evaluationMethodDescription = value 
     74            self._dq_completeness.evaluationMethodDescription = value 
    7475 
    7576    @property 
     
    7980    @result.setter 
    8081    def result(self, value): 
    81              self._dq_completeness.result = value 
     82            self._dq_completeness.result = value 
    8283 
    8384    @property 
     
    8788    @measureIdentification.setter 
    8889    def measureIdentification(self, value): 
    89              self._dq_completeness.measureIdentification = value 
     90            self._dq_completeness.measureIdentification = value 
    9091 
    9192    @property 
     
    9596    @evaluationProcedure.setter 
    9697    def evaluationProcedure(self, value): 
    97              self._dq_completeness.evaluationProcedure = value 
     98            self._dq_completeness.evaluationProcedure = value 
     99 
     100    @property 
     101    def dateTime(self): 
     102        return self._dq_completeness.dateTime 
     103 
     104    @dateTime.setter 
     105    def dateTime(self, value): 
     106            self._dq_completeness.dateTime = value 
    98107 
    99108    @property 
     
    103112    @measureDescription.setter 
    104113    def measureDescription(self, value): 
    105              self._dq_completeness.measureDescription = value 
     114            self._dq_completeness.measureDescription = value 
    106115 
    107     @property 
    108     def dateTime(self): 
    109         return self._dq_completeness.dateTime 
     116    def __key(self): 
     117        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.measureIdentification, self.evaluationProcedure, self.dateTime, self.measureDescription) 
    110118 
    111     @dateTime.setter 
    112     def dateTime(self, value): 
    113              self._dq_completeness.dateTime = value 
     119    def __eq__(x, y): 
     120        ''' 
     121        Cannot compare classes which do not define a "__key" attribute  
     122        ''' 
     123        if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     124            return x.__key() == y.__key() 
     125        return id(x) == id(y) 
     126 
     127    def __hash__(self): 
     128        return hash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_completenessomission.py

    r8074 r8086  
     1 
    12 
    23 
     
    1819 
    1920''' 
    20 Created on 26-Jan-2012 16:07:37 
     21Created on 03-Feb-2012 10:41:17 
    2122 
    2223@author: mnagni 
     
    4041        self.nameOfMeasure = [] 
    4142        self.evaluationMethodDescription = None 
    42         self._result_dq_quantitativeresult = [] 
    4343        self._result_dq_conformanceresult = [] 
    4444        self._result_qe_coverageresult = [] 
     45        self._result_dq_quantitativeresult = [] 
    4546        self.measureIdentification = None 
    4647        self.evaluationProcedure = None 
     48        self.dateTime = [] 
    4749        self.measureDescription = None 
    48         self.dateTime = [] 
    4950        super(DQ_CompletenessOmission, self).__init__() 
    5051 
     
    5556    @evaluationMethodType.setter 
    5657    def evaluationMethodType(self, value): 
    57              self._dq_completeness.evaluationMethodType = value 
     58            self._dq_completeness.evaluationMethodType = value 
    5859 
    5960    @property 
     
    6364    @nameOfMeasure.setter 
    6465    def nameOfMeasure(self, value): 
    65              self._dq_completeness.nameOfMeasure = value 
     66            self._dq_completeness.nameOfMeasure = value 
    6667 
    6768    @property 
     
    7172    @evaluationMethodDescription.setter 
    7273    def evaluationMethodDescription(self, value): 
    73              self._dq_completeness.evaluationMethodDescription = value 
     74            self._dq_completeness.evaluationMethodDescription = value 
    7475 
    7576    @property 
     
    7980    @result.setter 
    8081    def result(self, value): 
    81              self._dq_completeness.result = value 
     82            self._dq_completeness.result = value 
    8283 
    8384    @property 
     
    8788    @measureIdentification.setter 
    8889    def measureIdentification(self, value): 
    89              self._dq_completeness.measureIdentification = value 
     90            self._dq_completeness.measureIdentification = value 
    9091 
    9192    @property 
     
    9596    @evaluationProcedure.setter 
    9697    def evaluationProcedure(self, value): 
    97              self._dq_completeness.evaluationProcedure = value 
     98            self._dq_completeness.evaluationProcedure = value 
     99 
     100    @property 
     101    def dateTime(self): 
     102        return self._dq_completeness.dateTime 
     103 
     104    @dateTime.setter 
     105    def dateTime(self, value): 
     106            self._dq_completeness.dateTime = value 
    98107 
    99108    @property 
     
    103112    @measureDescription.setter 
    104113    def measureDescription(self, value): 
    105              self._dq_completeness.measureDescription = value 
     114            self._dq_completeness.measureDescription = value 
    106115 
    107     @property 
    108     def dateTime(self): 
    109         return self._dq_completeness.dateTime 
     116    def __key(self): 
     117        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.measureIdentification, self.evaluationProcedure, self.dateTime, self.measureDescription) 
    110118 
    111     @dateTime.setter 
    112     def dateTime(self, value): 
    113              self._dq_completeness.dateTime = value 
     119    def __eq__(x, y): 
     120        ''' 
     121        Cannot compare classes which do not define a "__key" attribute  
     122        ''' 
     123        if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     124            return x.__key() == y.__key() 
     125        return id(x) == id(y) 
     126 
     127    def __hash__(self): 
     128        return hash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_conceptualconsistency.py

    r8074 r8086  
     1 
    12 
    23 
     
    1819 
    1920''' 
    20 Created on 26-Jan-2012 16:07:36 
     21Created on 03-Feb-2012 10:41:15 
    2122 
    2223@author: mnagni 
     
    4041        self.nameOfMeasure = [] 
    4142        self.evaluationMethodDescription = None 
    42         self._result_dq_quantitativeresult = [] 
    4343        self._result_dq_conformanceresult = [] 
    4444        self._result_qe_coverageresult = [] 
     45        self._result_dq_quantitativeresult = [] 
    4546        self.measureIdentification = None 
    4647        self.evaluationProcedure = None 
     48        self.dateTime = [] 
    4749        self.measureDescription = None 
    48         self.dateTime = [] 
    4950        super(DQ_ConceptualConsistency, self).__init__() 
    5051 
     
    5556    @evaluationMethodType.setter 
    5657    def evaluationMethodType(self, value): 
    57              self._dq_logicalconsistency.evaluationMethodType = value 
     58            self._dq_logicalconsistency.evaluationMethodType = value 
    5859 
    5960    @property 
     
    6364    @nameOfMeasure.setter 
    6465    def nameOfMeasure(self, value): 
    65              self._dq_logicalconsistency.nameOfMeasure = value 
     66            self._dq_logicalconsistency.nameOfMeasure = value 
    6667 
    6768    @property 
     
    7172    @evaluationMethodDescription.setter 
    7273    def evaluationMethodDescription(self, value): 
    73              self._dq_logicalconsistency.evaluationMethodDescription = value 
     74            self._dq_logicalconsistency.evaluationMethodDescription = value 
    7475 
    7576    @property 
     
    7980    @result.setter 
    8081    def result(self, value): 
    81              self._dq_logicalconsistency.result = value 
     82            self._dq_logicalconsistency.result = value 
    8283 
    8384    @property 
     
    8788    @measureIdentification.setter 
    8889    def measureIdentification(self, value): 
    89              self._dq_logicalconsistency.measureIdentification = value 
     90            self._dq_logicalconsistency.measureIdentification = value 
    9091 
    9192    @property 
     
    9596    @evaluationProcedure.setter 
    9697    def evaluationProcedure(self, value): 
    97              self._dq_logicalconsistency.evaluationProcedure = value 
     98            self._dq_logicalconsistency.evaluationProcedure = value 
     99 
     100    @property 
     101    def dateTime(self): 
     102        return self._dq_logicalconsistency.dateTime 
     103 
     104    @dateTime.setter 
     105    def dateTime(self, value): 
     106            self._dq_logicalconsistency.dateTime = value 
    98107 
    99108    @property 
     
    103112    @measureDescription.setter 
    104113    def measureDescription(self, value): 
    105              self._dq_logicalconsistency.measureDescription = value 
     114            self._dq_logicalconsistency.measureDescription = value 
    106115 
    107     @property 
    108     def dateTime(self): 
    109         return self._dq_logicalconsistency.dateTime 
     116    def __key(self): 
     117        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.measureIdentification, self.evaluationProcedure, self.dateTime, self.measureDescription) 
    110118 
    111     @dateTime.setter 
    112     def dateTime(self, value): 
    113              self._dq_logicalconsistency.dateTime = value 
     119    def __eq__(x, y): 
     120        ''' 
     121        Cannot compare classes which do not define a "__key" attribute  
     122        ''' 
     123        if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     124            return x.__key() == y.__key() 
     125        return id(x) == id(y) 
     126 
     127    def __hash__(self): 
     128        return hash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_conformanceresult.py

    r8074 r8086  
     1 
    12 
    23 
     
    1819 
    1920''' 
    20 Created on 26-Jan-2012 16:07:37 
     21Created on 03-Feb-2012 10:41:14 
    2122 
    2223@author: mnagni 
     
    3839 
    3940        self.specification = None 
     41        self.pass_ = None 
    4042        self.explanation = None 
    41         self.pass_ = None 
    4243        super(DQ_ConformanceResult, self).__init__() 
    4344 
     
    4748 
    4849 
     50 
     51    def __key(self): 
     52        return (self.specification, self.pass_, self.explanation) 
     53 
     54    def __eq__(x, y): 
     55        ''' 
     56        Cannot compare classes which do not define a "__key" attribute  
     57        ''' 
     58        if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     59            return x.__key() == y.__key() 
     60        return id(x) == id(y) 
     61 
     62    def __hash__(self): 
     63        return hash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_dataquality.py

    r8074 r8086  
     1 
    12 
    23 
     
    1718 
    1819''' 
    19 Created on 26-Jan-2012 16:07:38 
     20Created on 03-Feb-2012 10:41:14 
    2021 
    2122@author: mnagni 
     
    3738        self.lineage = None 
    3839        self.scope = None 
     40        self._report_dq_positionalaccuracy = [] 
     41        self._report_dq_logicalconsistency = [] 
     42        self._report_dq_temporalaccuracy = [] 
     43        self._report_dq_completeness = [] 
     44        self._report_qe_usability = [] 
    3945        self._report_dq_thematicaccuracy = [] 
    40         self._report_dq_completeness = [] 
    41         self._report_dq_temporalaccuracy = [] 
    42         self._report_qe_usability = [] 
    43         self._report_dq_logicalconsistency = [] 
    44         self._report_dq_positionalaccuracy = [] 
    4546        super(DQ_DataQuality, self).__init__() 
    4647 
     
    5152    @property 
    5253    def report(self): 
     54        if(self._report_dq_positionalaccuracy is not None): 
     55            return self._report_dq_positionalaccuracy 
     56        if(self._report_dq_logicalconsistency is not None): 
     57            return self._report_dq_logicalconsistency 
     58        if(self._report_dq_temporalaccuracy is not None): 
     59            return self._report_dq_temporalaccuracy 
     60        if(self._report_dq_completeness is not None): 
     61            return self._report_dq_completeness 
     62        if(self._report_qe_usability is not None): 
     63            return self._report_qe_usability 
    5364        if(self._report_dq_thematicaccuracy is not None): 
    5465            return self._report_dq_thematicaccuracy 
    55         if(self._report_dq_completeness is not None): 
    56             return self._report_dq_completeness 
    57         if(self._report_dq_temporalaccuracy is not None): 
    58             return self._report_dq_temporalaccuracy 
    59         if(self._report_qe_usability is not None): 
    60             return self._report_qe_usability 
    61         if(self._report_dq_logicalconsistency is not None): 
    62             return self._report_dq_logicalconsistency 
    63         if(self._report_dq_positionalaccuracy is not None): 
    64             return self._report_dq_positionalaccuracy 
    6566        return None 
    6667 
     
    6869    def report(self, value): 
    6970        valueClass = "%s.%s" % (type(value).__module__,type(value).__name__) 
     71        if valueClass == "ea_model.iso_19115_2006_metadata_corrigendum.data_quality_information.dq_positionalaccuracy.DQ_PositionalAccuracy": 
     72            self._report_dq_positionalaccuracy = value 
     73            self._report_dq_logicalconsistency = None 
     74            self._report_dq_temporalaccuracy = None 
     75            self._report_dq_completeness = None 
     76            self._report_qe_usability = None 
     77            self._report_dq_thematicaccuracy = None 
     78        if valueClass == "ea_model.iso_19115_2006_metadata_corrigendum.data_quality_information.dq_logicalconsistency.DQ_LogicalConsistency": 
     79            self._report_dq_logicalconsistency = value 
     80            self._report_dq_positionalaccuracy = None 
     81            self._report_dq_temporalaccuracy = None 
     82            self._report_dq_completeness = None 
     83            self._report_qe_usability = None 
     84            self._report_dq_thematicaccuracy = None 
     85        if valueClass == "ea_model.iso_19115_2006_metadata_corrigendum.data_quality_information.dq_temporalaccuracy.DQ_TemporalAccuracy": 
     86            self._report_dq_temporalaccuracy = value 
     87            self._report_dq_positionalaccuracy = None 
     88            self._report_dq_logicalconsistency = None 
     89            self._report_dq_completeness = None 
     90            self._report_qe_usability = None 
     91            self._report_dq_thematicaccuracy = None 
     92        if valueClass == "ea_model.iso_19115_2006_metadata_corrigendum.data_quality_information.dq_completeness.DQ_Completeness": 
     93            self._report_dq_completeness = value 
     94            self._report_dq_positionalaccuracy = None 
     95            self._report_dq_logicalconsistency = None 
     96            self._report_dq_temporalaccuracy = None 
     97            self._report_qe_usability = None 
     98            self._report_dq_thematicaccuracy = None 
     99        if valueClass == "ea_model.iso_19115_2_2009_metadata___imagery.data_quality_information___imagery.qe_usability.QE_Usability": 
     100            self._report_qe_usability = value 
     101            self._report_dq_positionalaccuracy = None 
     102            self._report_dq_logicalconsistency = None 
     103            self._report_dq_temporalaccuracy = None 
     104            self._report_dq_completeness = None 
     105            self._report_dq_thematicaccuracy = None 
    70106        if valueClass == "ea_model.iso_19115_2006_metadata_corrigendum.data_quality_information.dq_thematicaccuracy.DQ_ThematicAccuracy": 
    71107            self._report_dq_thematicaccuracy = value 
    72             self._report_dq_completeness = None 
     108            self._report_dq_positionalaccuracy = None 
     109            self._report_dq_logicalconsistency = None 
    73110            self._report_dq_temporalaccuracy = None 
    74             self._report_qe_usability = None 
    75             self._report_dq_logicalconsistency = None 
    76             self._report_dq_positionalaccuracy = None 
    77         if valueClass == "ea_model.iso_19115_2006_metadata_corrigendum.data_quality_information.dq_completeness.DQ_Completeness": 
    78             self._report_dq_completeness = value 
    79             self._report_dq_thematicaccuracy = None 
    80             self._report_dq_temporalaccuracy = None 
    81             self._report_qe_usability = None 
    82             self._report_dq_logicalconsistency = None 
    83             self._report_dq_positionalaccuracy = None 
    84         if valueClass == "ea_model.iso_19115_2006_metadata_corrigendum.data_quality_information.dq_temporalaccuracy.DQ_TemporalAccuracy": 
    85             self._report_dq_temporalaccuracy = value 
    86             self._report_dq_thematicaccuracy = None 
    87111            self._report_dq_completeness = None 
    88112            self._report_qe_usability = None 
    89             self._report_dq_logicalconsistency = None 
    90             self._report_dq_positionalaccuracy = None 
    91         if valueClass == "ea_model.iso_19115_2_2009_metadata___imagery.data_quality_information___imagery.qe_usability.QE_Usability": 
    92             self._report_qe_usability = value 
    93             self._report_dq_thematicaccuracy = None 
    94             self._report_dq_completeness = None 
    95             self._report_dq_temporalaccuracy = None 
    96             self._report_dq_logicalconsistency = None 
    97             self._report_dq_positionalaccuracy = None 
    98         if valueClass == "ea_model.iso_19115_2006_metadata_corrigendum.data_quality_information.dq_logicalconsistency.DQ_LogicalConsistency": 
    99             self._report_dq_logicalconsistency = value 
    100             self._report_dq_thematicaccuracy = None 
    101             self._report_dq_completeness = None 
    102             self._report_dq_temporalaccuracy = None 
    103             self._report_qe_usability = None 
    104             self._report_dq_positionalaccuracy = None 
    105         if valueClass == "ea_model.iso_19115_2006_metadata_corrigendum.data_quality_information.dq_positionalaccuracy.DQ_PositionalAccuracy": 
    106             self._report_dq_positionalaccuracy = value 
    107             self._report_dq_thematicaccuracy = None 
    108             self._report_dq_completeness = None 
    109             self._report_dq_temporalaccuracy = None 
    110             self._report_qe_usability = None 
    111             self._report_dq_logicalconsistency = None 
     113 
     114    def __key(self): 
     115        return (self.lineage, self.scope, self.report) 
     116 
     117    def __eq__(x, y): 
     118        ''' 
     119        Cannot compare classes which do not define a "__key" attribute  
     120        ''' 
     121        if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     122            return x.__key() == y.__key() 
     123        return id(x) == id(y) 
     124 
     125    def __hash__(self): 
     126        return hash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_domainconsistency.py

    r8074 r8086  
     1 
    12 
    23 
     
    1819 
    1920''' 
    20 Created on 26-Jan-2012 16:07:34 
     21Created on 03-Feb-2012 10:41:10 
    2122 
    2223@author: mnagni 
     
    4041        self.nameOfMeasure = [] 
    4142        self.evaluationMethodDescription = None 
    42         self._result_dq_quantitativeresult = [] 
    4343        self._result_dq_conformanceresult = [] 
    4444        self._result_qe_coverageresult = [] 
     45        self._result_dq_quantitativeresult = [] 
    4546        self.measureIdentification = None 
    4647        self.evaluationProcedure = None 
     48        self.dateTime = [] 
    4749        self.measureDescription = None 
    48         self.dateTime = [] 
    4950        super(DQ_DomainConsistency, self).__init__() 
    5051 
     
    5556    @evaluationMethodType.setter 
    5657    def evaluationMethodType(self, value): 
    57              self._dq_logicalconsistency.evaluationMethodType = value 
     58            self._dq_logicalconsistency.evaluationMethodType = value 
    5859 
    5960    @property 
     
    6364    @nameOfMeasure.setter 
    6465    def nameOfMeasure(self, value): 
    65              self._dq_logicalconsistency.nameOfMeasure = value 
     66            self._dq_logicalconsistency.nameOfMeasure = value 
    6667 
    6768    @property 
     
    7172    @evaluationMethodDescription.setter 
    7273    def evaluationMethodDescription(self, value): 
    73              self._dq_logicalconsistency.evaluationMethodDescription = value 
     74            self._dq_logicalconsistency.evaluationMethodDescription = value 
    7475 
    7576    @property 
     
    7980    @result.setter 
    8081    def result(self, value): 
    81              self._dq_logicalconsistency.result = value 
     82            self._dq_logicalconsistency.result = value 
    8283 
    8384    @property 
     
    8788    @measureIdentification.setter 
    8889    def measureIdentification(self, value): 
    89              self._dq_logicalconsistency.measureIdentification = value 
     90            self._dq_logicalconsistency.measureIdentification = value 
    9091 
    9192    @property 
     
    9596    @evaluationProcedure.setter 
    9697    def evaluationProcedure(self, value): 
    97              self._dq_logicalconsistency.evaluationProcedure = value 
     98            self._dq_logicalconsistency.evaluationProcedure = value 
     99 
     100    @property 
     101    def dateTime(self): 
     102        return self._dq_logicalconsistency.dateTime 
     103 
     104    @dateTime.setter 
     105    def dateTime(self, value): 
     106            self._dq_logicalconsistency.dateTime = value 
    98107 
    99108    @property 
     
    103112    @measureDescription.setter 
    104113    def measureDescription(self, value): 
    105              self._dq_logicalconsistency.measureDescription = value 
     114            self._dq_logicalconsistency.measureDescription = value 
    106115 
    107     @property 
    108     def dateTime(self): 
    109         return self._dq_logicalconsistency.dateTime 
     116    def __key(self): 
     117        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.measureIdentification, self.evaluationProcedure, self.dateTime, self.measureDescription) 
    110118 
    111     @dateTime.setter 
    112     def dateTime(self, value): 
    113              self._dq_logicalconsistency.dateTime = value 
     119    def __eq__(x, y): 
     120        ''' 
     121        Cannot compare classes which do not define a "__key" attribute  
     122        ''' 
     123        if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     124            return x.__key() == y.__key() 
     125        return id(x) == id(y) 
     126 
     127    def __hash__(self): 
     128        return hash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_element.py

    r8074 r8086  
     1 
    12 
    23 
     
    1718 
    1819''' 
    19 Created on 26-Jan-2012 16:07:37 
     20Created on 03-Feb-2012 10:41:17 
    2021 
    2122@author: mnagni 
     
    3839        self.nameOfMeasure = [] 
    3940        self.evaluationMethodDescription = None 
    40         self._result_dq_quantitativeresult = [] 
    4141        self._result_dq_conformanceresult = [] 
    4242        self._result_qe_coverageresult = [] 
     43        self._result_dq_quantitativeresult = [] 
    4344        self.measureIdentification = None 
    4445        self.evaluationProcedure = None 
     
    5556    @property 
    5657    def result(self): 
    57         if(self._result_dq_quantitativeresult is not None): 
    58             return self._result_dq_quantitativeresult 
    5958        if(self._result_dq_conformanceresult is not None): 
    6059            return self._result_dq_conformanceresult 
    6160        if(self._result_qe_coverageresult is not None): 
    6261            return self._result_qe_coverageresult 
     62        if(self._result_dq_quantitativeresult is not None): 
     63            return self._result_dq_quantitativeresult 
    6364        return None 
    6465 
     
    6667    def result(self, value): 
    6768        valueClass = "%s.%s" % (type(value).__module__,type(value).__name__) 
     69        if valueClass == "ea_model.iso_19115_2006_metadata_corrigendum.data_quality_information.dq_conformanceresult.DQ_ConformanceResult": 
     70            self._result_dq_conformanceresult = value 
     71            self._result_qe_coverageresult = None 
     72            self._result_dq_quantitativeresult = None 
     73        if valueClass == "ea_model.iso_19115_2_2009_metadata___imagery.data_quality_information___imagery.qe_coverageresult.QE_CoverageResult": 
     74            self._result_qe_coverageresult = value 
     75            self._result_dq_conformanceresult = None 
     76            self._result_dq_quantitativeresult = None 
    6877        if valueClass == "ea_model.iso_19115_2006_metadata_corrigendum.data_quality_information.dq_quantitativeresult.DQ_QuantitativeResult": 
    6978            self._result_dq_quantitativeresult = value 
    7079            self._result_dq_conformanceresult = None 
    7180            self._result_qe_coverageresult = None 
    72         if valueClass == "ea_model.iso_19115_2006_metadata_corrigendum.data_quality_information.dq_conformanceresult.DQ_ConformanceResult": 
    73             self._result_dq_conformanceresult = value 
    74             self._result_dq_quantitativeresult = None 
    75             self._result_qe_coverageresult = None 
    76         if valueClass == "ea_model.iso_19115_2_2009_metadata___imagery.data_quality_information___imagery.qe_coverageresult.QE_CoverageResult": 
    77             self._result_qe_coverageresult = value 
    78             self._result_dq_quantitativeresult = None 
    79             self._result_dq_conformanceresult = None 
    8081 
    8182 
     
    8687 
    8788 
     89 
     90    def __key(self): 
     91        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.measureIdentification, self.evaluationProcedure, self.measureDescription, self.dateTime) 
     92 
     93    def __eq__(x, y): 
     94        ''' 
     95        Cannot compare classes which do not define a "__key" attribute  
     96        ''' 
     97        if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     98            return x.__key() == y.__key() 
     99        return id(x) == id(y) 
     100 
     101    def __hash__(self): 
     102        return hash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_evaluationmethodtypecode.py

    r8074 r8086  
     1 
    12 
    23 
     
    1819 
    1920''' 
    20 Created on 26-Jan-2012 16:07:35 
     21Created on 03-Feb-2012 10:41:12 
    2122 
    2223@author: mnagni 
     
    3031        This class has been genererated automatically using the Apache Velocity project. 
    3132    ''' 
     33    cl_indirect = "indirect"  
    3234    cl_directinternal = "directInternal"  
    33     cl_indirect = "indirect"  
    3435    cl_directexternal = "directExternal"  
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_formatconsistency.py

    r8074 r8086  
     1 
    12 
    23 
     
    1819 
    1920''' 
    20 Created on 26-Jan-2012 16:07:34 
     21Created on 03-Feb-2012 10:41:13 
    2122 
    2223@author: mnagni 
     
    4041        self.nameOfMeasure = [] 
    4142        self.evaluationMethodDescription = None 
    42         self._result_dq_quantitativeresult = [] 
    4343        self._result_dq_conformanceresult = [] 
    4444        self._result_qe_coverageresult = [] 
     45        self._result_dq_quantitativeresult = [] 
    4546        self.measureIdentification = None 
    4647        self.evaluationProcedure = None 
     48        self.dateTime = [] 
    4749        self.measureDescription = None 
    48         self.dateTime = [] 
    4950        super(DQ_FormatConsistency, self).__init__() 
    5051 
     
    5556    @evaluationMethodType.setter 
    5657    def evaluationMethodType(self, value): 
    57              self._dq_logicalconsistency.evaluationMethodType = value 
     58            self._dq_logicalconsistency.evaluationMethodType = value 
    5859 
    5960    @property 
     
    6364    @nameOfMeasure.setter 
    6465    def nameOfMeasure(self, value): 
    65              self._dq_logicalconsistency.nameOfMeasure = value 
     66            self._dq_logicalconsistency.nameOfMeasure = value 
    6667 
    6768    @property 
     
    7172    @evaluationMethodDescription.setter 
    7273    def evaluationMethodDescription(self, value): 
    73              self._dq_logicalconsistency.evaluationMethodDescription = value 
     74            self._dq_logicalconsistency.evaluationMethodDescription = value 
    7475 
    7576    @property 
     
    7980    @result.setter 
    8081    def result(self, value): 
    81              self._dq_logicalconsistency.result = value 
     82            self._dq_logicalconsistency.result = value 
    8283 
    8384    @property 
     
    8788    @measureIdentification.setter 
    8889    def measureIdentification(self, value): 
    89              self._dq_logicalconsistency.measureIdentification = value 
     90            self._dq_logicalconsistency.measureIdentification = value 
    9091 
    9192    @property 
     
    9596    @evaluationProcedure.setter 
    9697    def evaluationProcedure(self, value): 
    97              self._dq_logicalconsistency.evaluationProcedure = value 
     98            self._dq_logicalconsistency.evaluationProcedure = value 
     99 
     100    @property 
     101    def dateTime(self): 
     102        return self._dq_logicalconsistency.dateTime 
     103 
     104    @dateTime.setter 
     105    def dateTime(self, value): 
     106            self._dq_logicalconsistency.dateTime = value 
    98107 
    99108    @property 
     
    103112    @measureDescription.setter 
    104113    def measureDescription(self, value): 
    105              self._dq_logicalconsistency.measureDescription = value 
     114            self._dq_logicalconsistency.measureDescription = value 
    106115 
    107     @property 
    108     def dateTime(self): 
    109         return self._dq_logicalconsistency.dateTime 
     116    def __key(self): 
     117        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.measureIdentification, self.evaluationProcedure, self.dateTime, self.measureDescription) 
    110118 
    111     @dateTime.setter 
    112     def dateTime(self, value): 
    113              self._dq_logicalconsistency.dateTime = value 
     119    def __eq__(x, y): 
     120        ''' 
     121        Cannot compare classes which do not define a "__key" attribute  
     122        ''' 
     123        if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     124            return x.__key() == y.__key() 
     125        return id(x) == id(y) 
     126 
     127    def __hash__(self): 
     128        return hash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_griddeddatapositionalaccuracy.py

    r8074 r8086  
     1 
    12 
    23 
     
    1819 
    1920''' 
    20 Created on 26-Jan-2012 16:07:33 
     21Created on 03-Feb-2012 10:41:19 
    2122 
    2223@author: mnagni 
     
    4041        self.nameOfMeasure = [] 
    4142        self.evaluationMethodDescription = None 
    42         self._result_dq_quantitativeresult = [] 
    4343        self._result_dq_conformanceresult = [] 
    4444        self._result_qe_coverageresult = [] 
     45        self._result_dq_quantitativeresult = [] 
    4546        self.measureIdentification = None 
    4647        self.evaluationProcedure = None 
     48        self.dateTime = [] 
    4749        self.measureDescription = None 
    48         self.dateTime = [] 
    4950        super(DQ_GriddedDataPositionalAccuracy, self).__init__() 
    5051 
     
    5556    @evaluationMethodType.setter 
    5657    def evaluationMethodType(self, value): 
    57              self._dq_positionalaccuracy.evaluationMethodType = value 
     58            self._dq_positionalaccuracy.evaluationMethodType = value 
    5859 
    5960    @property 
     
    6364    @nameOfMeasure.setter 
    6465    def nameOfMeasure(self, value): 
    65              self._dq_positionalaccuracy.nameOfMeasure = value 
     66            self._dq_positionalaccuracy.nameOfMeasure = value 
    6667 
    6768    @property 
     
    7172    @evaluationMethodDescription.setter 
    7273    def evaluationMethodDescription(self, value): 
    73              self._dq_positionalaccuracy.evaluationMethodDescription = value 
     74            self._dq_positionalaccuracy.evaluationMethodDescription = value 
    7475 
    7576    @property 
     
    7980    @result.setter 
    8081    def result(self, value): 
    81              self._dq_positionalaccuracy.result = value 
     82            self._dq_positionalaccuracy.result = value 
    8283 
    8384    @property 
     
    8788    @measureIdentification.setter 
    8889    def measureIdentification(self, value): 
    89              self._dq_positionalaccuracy.measureIdentification = value 
     90            self._dq_positionalaccuracy.measureIdentification = value 
    9091 
    9192    @property 
     
    9596    @evaluationProcedure.setter 
    9697    def evaluationProcedure(self, value): 
    97              self._dq_positionalaccuracy.evaluationProcedure = value 
     98            self._dq_positionalaccuracy.evaluationProcedure = value 
     99 
     100    @property 
     101    def dateTime(self): 
     102        return self._dq_positionalaccuracy.dateTime 
     103 
     104    @dateTime.setter 
     105    def dateTime(self, value): 
     106            self._dq_positionalaccuracy.dateTime = value 
    98107 
    99108    @property 
     
    103112    @measureDescription.setter 
    104113    def measureDescription(self, value): 
    105              self._dq_positionalaccuracy.measureDescription = value 
     114            self._dq_positionalaccuracy.measureDescription = value 
    106115 
    107     @property 
    108     def dateTime(self): 
    109         return self._dq_positionalaccuracy.dateTime 
     116    def __key(self): 
     117        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.measureIdentification, self.evaluationProcedure, self.dateTime, self.measureDescription) 
    110118 
    111     @dateTime.setter 
    112     def dateTime(self, value): 
    113              self._dq_positionalaccuracy.dateTime = value 
     119    def __eq__(x, y): 
     120        ''' 
     121        Cannot compare classes which do not define a "__key" attribute  
     122        ''' 
     123        if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     124            return x.__key() == y.__key() 
     125        return id(x) == id(y) 
     126 
     127    def __hash__(self): 
     128        return hash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_logicalconsistency.py

    r8074 r8086  
     1 
    12 
    23 
     
    1819 
    1920''' 
    20 Created on 26-Jan-2012 16:07:32 
     21Created on 03-Feb-2012 10:41:18 
    2122 
    2223@author: mnagni 
     
    4041        self.nameOfMeasure = [] 
    4142        self.evaluationMethodDescription = None 
    42         self._result_dq_quantitativeresult = [] 
    4343        self._result_dq_conformanceresult = [] 
    4444        self._result_qe_coverageresult = [] 
     45        self._result_dq_quantitativeresult = [] 
    4546        self.measureIdentification = None 
    4647        self.evaluationProcedure = None 
     48        self.dateTime = [] 
    4749        self.measureDescription = None 
    48         self.dateTime = [] 
    4950        super(DQ_LogicalConsistency, self).__init__() 
    5051 
     
    5556    @evaluationMethodType.setter 
    5657    def evaluationMethodType(self, value): 
    57              self._dq_element.evaluationMethodType = value 
     58            self._dq_element.evaluationMethodType = value 
    5859 
    5960    @property 
     
    6364    @nameOfMeasure.setter 
    6465    def nameOfMeasure(self, value): 
    65              self._dq_element.nameOfMeasure = value 
     66            self._dq_element.nameOfMeasure = value 
    6667 
    6768    @property 
     
    7172    @evaluationMethodDescription.setter 
    7273    def evaluationMethodDescription(self, value): 
    73              self._dq_element.evaluationMethodDescription = value 
     74            self._dq_element.evaluationMethodDescription = value 
    7475 
    7576    @property 
     
    7980    @result.setter 
    8081    def result(self, value): 
    81              self._dq_element.result = value 
     82            self._dq_element.result = value 
    8283 
    8384    @property 
     
    8788    @measureIdentification.setter 
    8889    def measureIdentification(self, value): 
    89              self._dq_element.measureIdentification = value 
     90            self._dq_element.measureIdentification = value 
    9091 
    9192    @property 
     
    9596    @evaluationProcedure.setter 
    9697    def evaluationProcedure(self, value): 
    97              self._dq_element.evaluationProcedure = value 
     98            self._dq_element.evaluationProcedure = value 
     99 
     100    @property 
     101    def dateTime(self): 
     102        return self._dq_element.dateTime 
     103 
     104    @dateTime.setter 
     105    def dateTime(self, value): 
     106            self._dq_element.dateTime = value 
    98107 
    99108    @property 
     
    103112    @measureDescription.setter 
    104113    def measureDescription(self, value): 
    105              self._dq_element.measureDescription = value 
     114            self._dq_element.measureDescription = value 
    106115 
    107     @property 
    108     def dateTime(self): 
    109         return self._dq_element.dateTime 
     116    def __key(self): 
     117        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.measureIdentification, self.evaluationProcedure, self.dateTime, self.measureDescription) 
    110118 
    111     @dateTime.setter 
    112     def dateTime(self, value): 
    113              self._dq_element.dateTime = value 
     119    def __eq__(x, y): 
     120        ''' 
     121        Cannot compare classes which do not define a "__key" attribute  
     122        ''' 
     123        if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     124            return x.__key() == y.__key() 
     125        return id(x) == id(y) 
     126 
     127    def __hash__(self): 
     128        return hash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_nonquantitativeattributeaccuracy.py

    r8074 r8086  
     1 
    12 
    23 
     
    1819 
    1920''' 
    20 Created on 26-Jan-2012 16:07:36 
     21Created on 03-Feb-2012 10:41:14 
    2122 
    2223@author: mnagni 
     
    4041        self.nameOfMeasure = [] 
    4142        self.evaluationMethodDescription = None 
    42         self._result_dq_quantitativeresult = [] 
    4343        self._result_dq_conformanceresult = [] 
    4444        self._result_qe_coverageresult = [] 
     45        self._result_dq_quantitativeresult = [] 
    4546        self.measureIdentification = None 
    4647        self.evaluationProcedure = None 
     48        self.dateTime = [] 
    4749        self.measureDescription = None 
    48         self.dateTime = [] 
    4950        super(DQ_NonQuantitativeAttributeAccuracy, self).__init__() 
    5051 
     
    5556    @evaluationMethodType.setter 
    5657    def evaluationMethodType(self, value): 
    57              self._dq_thematicaccuracy.evaluationMethodType = value 
     58            self._dq_thematicaccuracy.evaluationMethodType = value 
    5859 
    5960    @property 
     
    6364    @nameOfMeasure.setter 
    6465    def nameOfMeasure(self, value): 
    65              self._dq_thematicaccuracy.nameOfMeasure = value 
     66            self._dq_thematicaccuracy.nameOfMeasure = value 
    6667 
    6768    @property 
     
    7172    @evaluationMethodDescription.setter 
    7273    def evaluationMethodDescription(self, value): 
    73              self._dq_thematicaccuracy.evaluationMethodDescription = value 
     74            self._dq_thematicaccuracy.evaluationMethodDescription = value 
    7475 
    7576    @property 
     
    7980    @result.setter 
    8081    def result(self, value): 
    81              self._dq_thematicaccuracy.result = value 
     82            self._dq_thematicaccuracy.result = value 
    8283 
    8384    @property 
     
    8788    @measureIdentification.setter 
    8889    def measureIdentification(self, value): 
    89              self._dq_thematicaccuracy.measureIdentification = value 
     90            self._dq_thematicaccuracy.measureIdentification = value 
    9091 
    9192    @property 
     
    9596    @evaluationProcedure.setter 
    9697    def evaluationProcedure(self, value): 
    97              self._dq_thematicaccuracy.evaluationProcedure = value 
     98            self._dq_thematicaccuracy.evaluationProcedure = value 
     99 
     100    @property 
     101    def dateTime(self): 
     102        return self._dq_thematicaccuracy.dateTime 
     103 
     104    @dateTime.setter 
     105    def dateTime(self, value): 
     106            self._dq_thematicaccuracy.dateTime = value 
    98107 
    99108    @property 
     
    103112    @measureDescription.setter 
    104113    def measureDescription(self, value): 
    105              self._dq_thematicaccuracy.measureDescription = value 
     114            self._dq_thematicaccuracy.measureDescription = value 
    106115 
    107     @property 
    108     def dateTime(self): 
    109         return self._dq_thematicaccuracy.dateTime 
     116    def __key(self): 
     117        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.measureIdentification, self.evaluationProcedure, self.dateTime, self.measureDescription) 
    110118 
    111     @dateTime.setter 
    112     def dateTime(self, value): 
    113              self._dq_thematicaccuracy.dateTime = value 
     119    def __eq__(x, y): 
     120        ''' 
     121        Cannot compare classes which do not define a "__key" attribute  
     122        ''' 
     123        if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     124            return x.__key() == y.__key() 
     125        return id(x) == id(y) 
     126 
     127    def __hash__(self): 
     128        return hash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_positionalaccuracy.py

    r8074 r8086  
     1 
    12 
    23 
     
    1819 
    1920''' 
    20 Created on 26-Jan-2012 16:07:32 
     21Created on 03-Feb-2012 10:41:12 
    2122 
    2223@author: mnagni 
     
    4041        self.nameOfMeasure = [] 
    4142        self.evaluationMethodDescription = None 
    42         self._result_dq_quantitativeresult = [] 
    4343        self._result_dq_conformanceresult = [] 
    4444        self._result_qe_coverageresult = [] 
     45        self._result_dq_quantitativeresult = [] 
    4546        self.measureIdentification = None 
    4647        self.evaluationProcedure = None 
     48        self.dateTime = [] 
    4749        self.measureDescription = None 
    48         self.dateTime = [] 
    4950        super(DQ_PositionalAccuracy, self).__init__() 
    5051 
     
    5556    @evaluationMethodType.setter 
    5657    def evaluationMethodType(self, value): 
    57              self._dq_element.evaluationMethodType = value 
     58            self._dq_element.evaluationMethodType = value 
    5859 
    5960    @property 
     
    6364    @nameOfMeasure.setter 
    6465    def nameOfMeasure(self, value): 
    65              self._dq_element.nameOfMeasure = value 
     66            self._dq_element.nameOfMeasure = value 
    6667 
    6768    @property 
     
    7172    @evaluationMethodDescription.setter 
    7273    def evaluationMethodDescription(self, value): 
    73              self._dq_element.evaluationMethodDescription = value 
     74            self._dq_element.evaluationMethodDescription = value 
    7475 
    7576    @property 
     
    7980    @result.setter 
    8081    def result(self, value): 
    81              self._dq_element.result = value 
     82            self._dq_element.result = value 
    8283 
    8384    @property 
     
    8788    @measureIdentification.setter 
    8889    def measureIdentification(self, value): 
    89              self._dq_element.measureIdentification = value 
     90            self._dq_element.measureIdentification = value 
    9091 
    9192    @property 
     
    9596    @evaluationProcedure.setter 
    9697    def evaluationProcedure(self, value): 
    97              self._dq_element.evaluationProcedure = value 
     98            self._dq_element.evaluationProcedure = value 
     99 
     100    @property 
     101    def dateTime(self): 
     102        return self._dq_element.dateTime 
     103 
     104    @dateTime.setter 
     105    def dateTime(self, value): 
     106            self._dq_element.dateTime = value 
    98107 
    99108    @property 
     
    103112    @measureDescription.setter 
    104113    def measureDescription(self, value): 
    105              self._dq_element.measureDescription = value 
     114            self._dq_element.measureDescription = value 
    106115 
    107     @property 
    108     def dateTime(self): 
    109         return self._dq_element.dateTime 
     116    def __key(self): 
     117        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.measureIdentification, self.evaluationProcedure, self.dateTime, self.measureDescription) 
    110118 
    111     @dateTime.setter 
    112     def dateTime(self, value): 
    113              self._dq_element.dateTime = value 
     119    def __eq__(x, y): 
     120        ''' 
     121        Cannot compare classes which do not define a "__key" attribute  
     122        ''' 
     123        if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     124            return x.__key() == y.__key() 
     125        return id(x) == id(y) 
     126 
     127    def __hash__(self): 
     128        return hash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_quantitativeattributeaccuracy.py

    r8074 r8086  
     1 
    12 
    23 
     
    1819 
    1920''' 
    20 Created on 26-Jan-2012 16:07:38 
     21Created on 03-Feb-2012 10:41:13 
    2122 
    2223@author: mnagni 
     
    4041        self.nameOfMeasure = [] 
    4142        self.evaluationMethodDescription = None 
    42         self._result_dq_quantitativeresult = [] 
    4343        self._result_dq_conformanceresult = [] 
    4444        self._result_qe_coverageresult = [] 
     45        self._result_dq_quantitativeresult = [] 
    4546        self.measureIdentification = None 
    4647        self.evaluationProcedure = None 
     48        self.dateTime = [] 
    4749        self.measureDescription = None 
    48         self.dateTime = [] 
    4950        super(DQ_QuantitativeAttributeAccuracy, self).__init__() 
    5051 
     
    5556    @evaluationMethodType.setter 
    5657    def evaluationMethodType(self, value): 
    57              self._dq_thematicaccuracy.evaluationMethodType = value 
     58            self._dq_thematicaccuracy.evaluationMethodType = value 
    5859 
    5960    @property 
     
    6364    @nameOfMeasure.setter 
    6465    def nameOfMeasure(self, value): 
    65              self._dq_thematicaccuracy.nameOfMeasure = value 
     66            self._dq_thematicaccuracy.nameOfMeasure = value 
    6667 
    6768    @property 
     
    7172    @evaluationMethodDescription.setter 
    7273    def evaluationMethodDescription(self, value): 
    73              self._dq_thematicaccuracy.evaluationMethodDescription = value 
     74            self._dq_thematicaccuracy.evaluationMethodDescription = value 
    7475 
    7576    @property 
     
    7980    @result.setter 
    8081    def result(self, value): 
    81              self._dq_thematicaccuracy.result = value 
     82            self._dq_thematicaccuracy.result = value 
    8283 
    8384    @property 
     
    8788    @measureIdentification.setter 
    8889    def measureIdentification(self, value): 
    89              self._dq_thematicaccuracy.measureIdentification = value 
     90            self._dq_thematicaccuracy.measureIdentification = value 
    9091 
    9192    @property 
     
    9596    @evaluationProcedure.setter 
    9697    def evaluationProcedure(self, value): 
    97              self._dq_thematicaccuracy.evaluationProcedure = value 
     98            self._dq_thematicaccuracy.evaluationProcedure = value 
     99 
     100    @property 
     101    def dateTime(self): 
     102        return self._dq_thematicaccuracy.dateTime 
     103 
     104    @dateTime.setter 
     105    def dateTime(self, value): 
     106            self._dq_thematicaccuracy.dateTime = value 
    98107 
    99108    @property 
     
    103112    @measureDescription.setter 
    104113    def measureDescription(self, value): 
    105              self._dq_thematicaccuracy.measureDescription = value 
     114            self._dq_thematicaccuracy.measureDescription = value 
    106115 
    107     @property 
    108     def dateTime(self): 
    109         return self._dq_thematicaccuracy.dateTime 
     116    def __key(self): 
     117        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.measureIdentification, self.evaluationProcedure, self.dateTime, self.measureDescription) 
    110118 
    111     @dateTime.setter 
    112     def dateTime(self, value): 
    113              self._dq_thematicaccuracy.dateTime = value 
     119    def __eq__(x, y): 
     120        ''' 
     121        Cannot compare classes which do not define a "__key" attribute  
     122        ''' 
     123        if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     124            return x.__key() == y.__key() 
     125        return id(x) == id(y) 
     126 
     127    def __hash__(self): 
     128        return hash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_quantitativeresult.py

    r8074 r8086  
     1 
    12 
    23 
     
    1819 
    1920''' 
    20 Created on 26-Jan-2012 16:07:31 
     21Created on 03-Feb-2012 10:41:12 
    2122 
    2223@author: mnagni 
     
    5051 
    5152 
     53 
     54    def __key(self): 
     55        return (self.errorStatistic, self.value, self.valueUnit, self.valueType) 
     56 
     57    def __eq__(x, y): 
     58        ''' 
     59        Cannot compare classes which do not define a "__key" attribute  
     60        ''' 
     61        if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     62            return x.__key() == y.__key() 
     63        return id(x) == id(y) 
     64 
     65    def __hash__(self): 
     66        return hash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_relativeinternalpositionalaccuracy.py

    r8074 r8086  
     1 
    12 
    23 
     
    1819 
    1920''' 
    20 Created on 26-Jan-2012 16:07:40 
     21Created on 03-Feb-2012 10:41:10 
    2122 
    2223@author: mnagni 
     
    4041        self.nameOfMeasure = [] 
    4142        self.evaluationMethodDescription = None 
    42         self._result_dq_quantitativeresult = [] 
    4343        self._result_dq_conformanceresult = [] 
    4444        self._result_qe_coverageresult = [] 
     45        self._result_dq_quantitativeresult = [] 
    4546        self.measureIdentification = None 
    4647        self.evaluationProcedure = None 
     48        self.dateTime = [] 
    4749        self.measureDescription = None 
    48         self.dateTime = [] 
    4950        super(DQ_RelativeInternalPositionalAccuracy, self).__init__() 
    5051 
     
    5556    @evaluationMethodType.setter 
    5657    def evaluationMethodType(self, value): 
    57              self._dq_positionalaccuracy.evaluationMethodType = value 
     58            self._dq_positionalaccuracy.evaluationMethodType = value 
    5859 
    5960    @property 
     
    6364    @nameOfMeasure.setter 
    6465    def nameOfMeasure(self, value): 
    65              self._dq_positionalaccuracy.nameOfMeasure = value 
     66            self._dq_positionalaccuracy.nameOfMeasure = value 
    6667 
    6768    @property 
     
    7172    @evaluationMethodDescription.setter 
    7273    def evaluationMethodDescription(self, value): 
    73              self._dq_positionalaccuracy.evaluationMethodDescription = value 
     74            self._dq_positionalaccuracy.evaluationMethodDescription = value 
    7475 
    7576    @property 
     
    7980    @result.setter 
    8081    def result(self, value): 
    81              self._dq_positionalaccuracy.result = value 
     82            self._dq_positionalaccuracy.result = value 
    8283 
    8384    @property 
     
    8788    @measureIdentification.setter 
    8889    def measureIdentification(self, value): 
    89              self._dq_positionalaccuracy.measureIdentification = value 
     90            self._dq_positionalaccuracy.measureIdentification = value 
    9091 
    9192    @property 
     
    9596    @evaluationProcedure.setter 
    9697    def evaluationProcedure(self, value): 
    97              self._dq_positionalaccuracy.evaluationProcedure = value 
     98            self._dq_positionalaccuracy.evaluationProcedure = value 
     99 
     100    @property 
     101    def dateTime(self): 
     102        return self._dq_positionalaccuracy.dateTime 
     103 
     104    @dateTime.setter 
     105    def dateTime(self, value): 
     106            self._dq_positionalaccuracy.dateTime = value 
    98107 
    99108    @property 
     
    103112    @measureDescription.setter 
    104113    def measureDescription(self, value): 
    105              self._dq_positionalaccuracy.measureDescription = value 
     114            self._dq_positionalaccuracy.measureDescription = value 
    106115 
    107     @property 
    108     def dateTime(self): 
    109         return self._dq_positionalaccuracy.dateTime 
     116    def __key(self): 
     117        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.measureIdentification, self.evaluationProcedure, self.dateTime, self.measureDescription) 
    110118 
    111     @dateTime.setter 
    112     def dateTime(self, value): 
    113              self._dq_positionalaccuracy.dateTime = value 
     119    def __eq__(x, y): 
     120        ''' 
     121        Cannot compare classes which do not define a "__key" attribute  
     122        ''' 
     123        if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     124            return x.__key() == y.__key() 
     125        return id(x) == id(y) 
     126 
     127    def __hash__(self): 
     128        return hash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_result.py

    r8074 r8086  
     1 
    12 
    23 
     
    1718 
    1819''' 
    19 Created on 26-Jan-2012 16:07:29 
     20Created on 03-Feb-2012 10:41:18 
    2021 
    2122@author: mnagni 
     
    3637 
    3738        super(DQ_Result, self).__init__() 
     39 
     40    def __key(self): 
     41        return () 
     42 
     43    def __eq__(x, y): 
     44        ''' 
     45        Cannot compare classes which do not define a "__key" attribute  
     46        ''' 
     47        if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     48            return x.__key() == y.__key() 
     49        return id(x) == id(y) 
     50 
     51    def __hash__(self): 
     52        return hash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_scope.py

    r8074 r8086  
     1 
    12 
    23 
     
    1718 
    1819''' 
    19 Created on 26-Jan-2012 16:07:34 
     20Created on 03-Feb-2012 10:41:08 
    2021 
    2122@author: mnagni 
     
    3637 
    3738        self.extent = None 
     39        self.levelDescription = [] 
    3840        self.level = None 
    39         self.levelDescription = [] 
    4041        super(DQ_Scope, self).__init__() 
    4142 
     
    4546 
    4647 
     48 
     49    def __key(self): 
     50        return (self.extent, self.levelDescription, self.level) 
     51 
     52    def __eq__(x, y): 
     53        ''' 
     54        Cannot compare classes which do not define a "__key" attribute  
     55        ''' 
     56        if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     57            return x.__key() == y.__key() 
     58        return id(x) == id(y) 
     59 
     60    def __hash__(self): 
     61        return hash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_temporalaccuracy.py

    r8074 r8086  
     1 
    12 
    23 
     
    1819 
    1920''' 
    20 Created on 26-Jan-2012 16:07:35 
     21Created on 03-Feb-2012 10:41:09 
    2122 
    2223@author: mnagni 
     
    4041        self.nameOfMeasure = [] 
    4142        self.evaluationMethodDescription = None 
    42         self._result_dq_quantitativeresult = [] 
    4343        self._result_dq_conformanceresult = [] 
    4444        self._result_qe_coverageresult = [] 
     45        self._result_dq_quantitativeresult = [] 
    4546        self.measureIdentification = None 
    4647        self.evaluationProcedure = None 
     48        self.dateTime = [] 
    4749        self.measureDescription = None 
    48         self.dateTime = [] 
    4950        super(DQ_TemporalAccuracy, self).__init__() 
    5051 
     
    5556    @evaluationMethodType.setter 
    5657    def evaluationMethodType(self, value): 
    57              self._dq_element.evaluationMethodType = value 
     58            self._dq_element.evaluationMethodType = value 
    5859 
    5960    @property 
     
    6364    @nameOfMeasure.setter 
    6465    def nameOfMeasure(self, value): 
    65              self._dq_element.nameOfMeasure = value 
     66            self._dq_element.nameOfMeasure = value 
    6667 
    6768    @property 
     
    7172    @evaluationMethodDescription.setter 
    7273    def evaluationMethodDescription(self, value): 
    73              self._dq_element.evaluationMethodDescription = value 
     74            self._dq_element.evaluationMethodDescription = value 
    7475 
    7576    @property 
     
    7980    @result.setter 
    8081    def result(self, value): 
    81              self._dq_element.result = value 
     82            self._dq_element.result = value 
    8283 
    8384    @property 
     
    8788    @measureIdentification.setter 
    8889    def measureIdentification(self, value): 
    89              self._dq_element.measureIdentification = value 
     90            self._dq_element.measureIdentification = value 
    9091 
    9192    @property 
     
    9596    @evaluationProcedure.setter 
    9697    def evaluationProcedure(self, value): 
    97              self._dq_element.evaluationProcedure = value 
     98            self._dq_element.evaluationProcedure = value 
     99 
     100    @property 
     101    def dateTime(self): 
     102        return self._dq_element.dateTime 
     103 
     104    @dateTime.setter 
     105    def dateTime(self, value): 
     106            self._dq_element.dateTime = value 
    98107 
    99108    @property 
     
    103112    @measureDescription.setter 
    104113    def measureDescription(self, value): 
    105              self._dq_element.measureDescription = value 
     114            self._dq_element.measureDescription = value 
    106115 
    107     @property 
    108     def dateTime(self): 
    109         return self._dq_element.dateTime 
     116    def __key(self): 
     117        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.measureIdentification, self.evaluationProcedure, self.dateTime, self.measureDescription) 
    110118 
    111     @dateTime.setter 
    112     def dateTime(self, value): 
    113              self._dq_element.dateTime = value 
     119    def __eq__(x, y): 
     120        ''' 
     121        Cannot compare classes which do not define a "__key" attribute  
     122        ''' 
     123        if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     124            return x.__key() == y.__key() 
     125        return id(x) == id(y) 
     126 
     127    def __hash__(self): 
     128        return hash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_temporalconsistency.py

    r8074 r8086  
     1 
    12 
    23 
     
    1819 
    1920''' 
    20 Created on 26-Jan-2012 16:07:28 
     21Created on 03-Feb-2012 10:41:17 
    2122 
    2223@author: mnagni 
     
    4041        self.nameOfMeasure = [] 
    4142        self.evaluationMethodDescription = None 
    42         self._result_dq_quantitativeresult = [] 
    4343        self._result_dq_conformanceresult = [] 
    4444        self._result_qe_coverageresult = [] 
     45        self._result_dq_quantitativeresult = [] 
    4546        self.measureIdentification = None 
    4647        self.evaluationProcedure = None 
     48        self.dateTime = [] 
    4749        self.measureDescription = None 
    48         self.dateTime = [] 
    4950        super(DQ_TemporalConsistency, self).__init__() 
    5051 
     
    5556    @evaluationMethodType.setter 
    5657    def evaluationMethodType(self, value): 
    57              self._dq_temporalaccuracy.evaluationMethodType = value 
     58            self._dq_temporalaccuracy.evaluationMethodType = value 
    5859 
    5960    @property 
     
    6364    @nameOfMeasure.setter 
    6465    def nameOfMeasure(self, value): 
    65              self._dq_temporalaccuracy.nameOfMeasure = value 
     66            self._dq_temporalaccuracy.nameOfMeasure = value 
    6667 
    6768    @property 
     
    7172    @evaluationMethodDescription.setter 
    7273    def evaluationMethodDescription(self, value): 
    73              self._dq_temporalaccuracy.evaluationMethodDescription = value 
     74            self._dq_temporalaccuracy.evaluationMethodDescription = value 
    7475 
    7576    @property 
     
    7980    @result.setter 
    8081    def result(self, value): 
    81              self._dq_temporalaccuracy.result = value 
     82            self._dq_temporalaccuracy.result = value 
    8283 
    8384    @property 
     
    8788    @measureIdentification.setter 
    8889    def measureIdentification(self, value): 
    89              self._dq_temporalaccuracy.measureIdentification = value 
     90            self._dq_temporalaccuracy.measureIdentification = value 
    9091 
    9192    @property 
     
    9596    @evaluationProcedure.setter 
    9697    def evaluationProcedure(self, value): 
    97              self._dq_temporalaccuracy.evaluationProcedure = value 
     98            self._dq_temporalaccuracy.evaluationProcedure = value 
     99 
     100    @property 
     101    def dateTime(self): 
     102        return self._dq_temporalaccuracy.dateTime 
     103 
     104    @dateTime.setter 
     105    def dateTime(self, value): 
     106            self._dq_temporalaccuracy.dateTime = value 
    98107 
    99108    @property 
     
    103112    @measureDescription.setter 
    104113    def measureDescription(self, value): 
    105              self._dq_temporalaccuracy.measureDescription = value 
     114            self._dq_temporalaccuracy.measureDescription = value 
    106115 
    107     @property 
    108     def dateTime(self): 
    109         return self._dq_temporalaccuracy.dateTime 
     116    def __key(self): 
     117        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.measureIdentification, self.evaluationProcedure, self.dateTime, self.measureDescription) 
    110118 
    111     @dateTime.setter 
    112     def dateTime(self, value): 
    113              self._dq_temporalaccuracy.dateTime = value 
     119    def __eq__(x, y): 
     120        ''' 
     121        Cannot compare classes which do not define a "__key" attribute  
     122        ''' 
     123        if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     124            return x.__key() == y.__key() 
     125        return id(x) == id(y) 
     126 
     127    def __hash__(self): 
     128        return hash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_temporalvalidity.py

    r8074 r8086  
     1 
    12 
    23 
     
    1819 
    1920''' 
    20 Created on 26-Jan-2012 16:07:30 
     21Created on 03-Feb-2012 10:41:13 
    2122 
    2223@author: mnagni 
     
    4041        self.nameOfMeasure = [] 
    4142        self.evaluationMethodDescription = None 
    42         self._result_dq_quantitativeresult = [] 
    4343        self._result_dq_conformanceresult = [] 
    4444        self._result_qe_coverageresult = [] 
     45        self._result_dq_quantitativeresult = [] 
    4546        self.measureIdentification = None 
    4647        self.evaluationProcedure = None 
     48        self.dateTime = [] 
    4749        self.measureDescription = None 
    48         self.dateTime = [] 
    4950        super(DQ_TemporalValidity, self).__init__() 
    5051 
     
    5556    @evaluationMethodType.setter 
    5657    def evaluationMethodType(self, value): 
    57              self._dq_temporalaccuracy.evaluationMethodType = value 
     58            self._dq_temporalaccuracy.evaluationMethodType = value 
    5859 
    5960    @property 
     
    6364    @nameOfMeasure.setter 
    6465    def nameOfMeasure(self, value): 
    65              self._dq_temporalaccuracy.nameOfMeasure = value 
     66            self._dq_temporalaccuracy.nameOfMeasure = value 
    6667 
    6768    @property 
     
    7172    @evaluationMethodDescription.setter 
    7273    def evaluationMethodDescription(self, value): 
    73              self._dq_temporalaccuracy.evaluationMethodDescription = value 
     74            self._dq_temporalaccuracy.evaluationMethodDescription = value 
    7475 
    7576    @property 
     
    7980    @result.setter 
    8081    def result(self, value): 
    81              self._dq_temporalaccuracy.result = value 
     82            self._dq_temporalaccuracy.result = value 
    8283 
    8384    @property 
     
    8788    @measureIdentification.setter 
    8889    def measureIdentification(self, value): 
    89              self._dq_temporalaccuracy.measureIdentification = value 
     90            self._dq_temporalaccuracy.measureIdentification = value 
    9091 
    9192    @property 
     
    9596    @evaluationProcedure.setter 
    9697    def evaluationProcedure(self, value): 
    97              self._dq_temporalaccuracy.evaluationProcedure = value 
     98            self._dq_temporalaccuracy.evaluationProcedure = value 
     99 
     100    @property 
     101    def dateTime(self): 
     102        return self._dq_temporalaccuracy.dateTime 
     103 
     104    @dateTime.setter 
     105    def dateTime(self, value): 
     106            self._dq_temporalaccuracy.dateTime = value 
    98107 
    99108    @property 
     
    103112    @measureDescription.setter 
    104113    def measureDescription(self, value): 
    105              self._dq_temporalaccuracy.measureDescription = value 
     114            self._dq_temporalaccuracy.measureDescription = value 
    106115 
    107     @property 
    108     def dateTime(self): 
    109         return self._dq_temporalaccuracy.dateTime 
     116    def __key(self): 
     117        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.measureIdentification, self.evaluationProcedure, self.dateTime, self.measureDescription) 
    110118 
    111     @dateTime.setter 
    112     def dateTime(self, value): 
    113              self._dq_temporalaccuracy.dateTime = value 
     119    def __eq__(x, y): 
     120        ''' 
     121        Cannot compare classes which do not define a "__key" attribute  
     122        ''' 
     123        if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     124            return x.__key() == y.__key() 
     125        return id(x) == id(y) 
     126 
     127    def __hash__(self): 
     128        return hash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_thematicaccuracy.py

    r8074 r8086  
     1 
    12 
    23 
     
    1819 
    1920''' 
    20 Created on 26-Jan-2012 16:07:36 
     21Created on 03-Feb-2012 10:41:12 
    2122 
    2223@author: mnagni 
     
    4041        self.nameOfMeasure = [] 
    4142        self.evaluationMethodDescription = None 
    42         self._result_dq_quantitativeresult = [] 
    4343        self._result_dq_conformanceresult = [] 
    4444        self._result_qe_coverageresult = [] 
     45        self._result_dq_quantitativeresult = [] 
    4546        self.measureIdentification = None 
    4647        self.evaluationProcedure = None 
     48        self.dateTime = [] 
    4749        self.measureDescription = None 
    48         self.dateTime = [] 
    4950        super(DQ_ThematicAccuracy, self).__init__() 
    5051 
     
    5556    @evaluationMethodType.setter 
    5657    def evaluationMethodType(self, value): 
    57              self._dq_element.evaluationMethodType = value 
     58            self._dq_element.evaluationMethodType = value 
    5859 
    5960    @property 
     
    6364    @nameOfMeasure.setter 
    6465    def nameOfMeasure(self, value): 
    65              self._dq_element.nameOfMeasure = value 
     66            self._dq_element.nameOfMeasure = value 
    6667 
    6768    @property 
     
    7172    @evaluationMethodDescription.setter 
    7273    def evaluationMethodDescription(self, value): 
    73              self._dq_element.evaluationMethodDescription = value 
     74            self._dq_element.evaluationMethodDescription = value 
    7475 
    7576    @property 
     
    7980    @result.setter 
    8081    def result(self, value): 
    81              self._dq_element.result = value 
     82            self._dq_element.result = value 
    8283 
    8384    @property 
     
    8788    @measureIdentification.setter 
    8889    def measureIdentification(self, value): 
    89              self._dq_element.measureIdentification = value 
     90            self._dq_element.measureIdentification = value 
    9091 
    9192    @property 
     
    9596    @evaluationProcedure.setter 
    9697    def evaluationProcedure(self, value): 
    97              self._dq_element.evaluationProcedure = value 
     98            self._dq_element.evaluationProcedure = value 
     99 
     100    @property 
     101    def dateTime(self): 
     102        return self._dq_element.dateTime 
     103 
     104    @dateTime.setter 
     105    def dateTime(self, value): 
     106            self._dq_element.dateTime = value 
    98107 
    99108    @property 
     
    103112    @measureDescription.setter 
    104113    def measureDescription(self, value): 
    105              self._dq_element.measureDescription = value 
     114            self._dq_element.measureDescription = value 
    106115 
    107     @property 
    108     def dateTime(self): 
    109         return self._dq_element.dateTime 
     116    def __key(self): 
     117        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.measureIdentification, self.evaluationProcedure, self.dateTime, self.measureDescription) 
    110118 
    111     @dateTime.setter 
    112     def dateTime(self, value): 
    113              self._dq_element.dateTime = value 
     119    def __eq__(x, y): 
     120        ''' 
     121        Cannot compare classes which do not define a "__key" attribute  
     122        ''' 
     123        if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     124            return x.__key() == y.__key() 
     125        return id(x) == id(y) 
     126 
     127    def __hash__(self): 
     128        return hash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_thematicclassificationcorrectness.py

    r8074 r8086  
     1 
    12 
    23 
     
    1819 
    1920''' 
    20 Created on 26-Jan-2012 16:07:34 
     21Created on 03-Feb-2012 10:41:12 
    2122 
    2223@author: mnagni 
     
    4041        self.nameOfMeasure = [] 
    4142        self.evaluationMethodDescription = None 
    42         self._result_dq_quantitativeresult = [] 
    4343        self._result_dq_conformanceresult = [] 
    4444        self._result_qe_coverageresult = [] 
     45        self._result_dq_quantitativeresult = [] 
    4546        self.measureIdentification = None 
    4647        self.evaluationProcedure = None 
     48        self.dateTime = [] 
    4749        self.measureDescription = None 
    48         self.dateTime = [] 
    4950        super(DQ_ThematicClassificationCorrectness, self).__init__() 
    5051 
     
    5556    @evaluationMethodType.setter 
    5657    def evaluationMethodType(self, value): 
    57              self._dq_thematicaccuracy.evaluationMethodType = value 
     58            self._dq_thematicaccuracy.evaluationMethodType = value 
    5859 
    5960    @property 
     
    6364    @nameOfMeasure.setter 
    6465    def nameOfMeasure(self, value): 
    65              self._dq_thematicaccuracy.nameOfMeasure = value 
     66            self._dq_thematicaccuracy.nameOfMeasure = value 
    6667 
    6768    @property 
     
    7172    @evaluationMethodDescription.setter 
    7273    def evaluationMethodDescription(self, value): 
    73              self._dq_thematicaccuracy.evaluationMethodDescription = value 
     74            self._dq_thematicaccuracy.evaluationMethodDescription = value 
    7475 
    7576    @property 
     
    7980    @result.setter 
    8081    def result(self, value): 
    81              self._dq_thematicaccuracy.result = value 
     82            self._dq_thematicaccuracy.result = value 
    8283 
    8384    @property 
     
    8788    @measureIdentification.setter 
    8889    def measureIdentification(self, value): 
    89              self._dq_thematicaccuracy.measureIdentification = value 
     90            self._dq_thematicaccuracy.measureIdentification = value 
    9091 
    9192    @property 
     
    9596    @evaluationProcedure.setter 
    9697    def evaluationProcedure(self, value): 
    97              self._dq_thematicaccuracy.evaluationProcedure = value 
     98            self._dq_thematicaccuracy.evaluationProcedure = value 
     99 
     100    @property 
     101    def dateTime(self): 
     102        return self._dq_thematicaccuracy.dateTime 
     103 
     104    @dateTime.setter 
     105    def dateTime(self, value): 
     106            self._dq_thematicaccuracy.dateTime = value 
    98107 
    99108    @property 
     
    103112    @measureDescription.setter 
    104113    def measureDescription(self, value): 
    105              self._dq_thematicaccuracy.measureDescription = value 
     114            self._dq_thematicaccuracy.measureDescription = value 
    106115 
    107     @property 
    108     def dateTime(self): 
    109         return self._dq_thematicaccuracy.dateTime 
     116    def __key(self): 
     117        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.measureIdentification, self.evaluationProcedure, self.dateTime, self.measureDescription) 
    110118 
    111     @dateTime.setter 
    112     def dateTime(self, value): 
    113              self._dq_thematicaccuracy.dateTime = value 
     119    def __eq__(x, y): 
     120        ''' 
     121        Cannot compare classes which do not define a "__key" attribute  
     122        ''' 
     123        if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     124            return x.__key() == y.__key() 
     125        return id(x) == id(y) 
     126 
     127    def __hash__(self): 
     128        return hash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/dq_topologicalconsistency.py

    r8074 r8086  
     1 
    12 
    23 
     
    1819 
    1920''' 
    20 Created on 26-Jan-2012 16:07:36 
     21Created on 03-Feb-2012 10:41:14 
    2122 
    2223@author: mnagni 
     
    4041        self.nameOfMeasure = [] 
    4142        self.evaluationMethodDescription = None 
    42         self._result_dq_quantitativeresult = [] 
    4343        self._result_dq_conformanceresult = [] 
    4444        self._result_qe_coverageresult = [] 
     45        self._result_dq_quantitativeresult = [] 
    4546        self.measureIdentification = None 
    4647        self.evaluationProcedure = None 
     48        self.dateTime = [] 
    4749        self.measureDescription = None 
    48         self.dateTime = [] 
    4950        super(DQ_TopologicalConsistency, self).__init__() 
    5051 
     
    5556    @evaluationMethodType.setter 
    5657    def evaluationMethodType(self, value): 
    57              self._dq_logicalconsistency.evaluationMethodType = value 
     58            self._dq_logicalconsistency.evaluationMethodType = value 
    5859 
    5960    @property 
     
    6364    @nameOfMeasure.setter 
    6465    def nameOfMeasure(self, value): 
    65              self._dq_logicalconsistency.nameOfMeasure = value 
     66            self._dq_logicalconsistency.nameOfMeasure = value 
    6667 
    6768    @property 
     
    7172    @evaluationMethodDescription.setter 
    7273    def evaluationMethodDescription(self, value): 
    73              self._dq_logicalconsistency.evaluationMethodDescription = value 
     74            self._dq_logicalconsistency.evaluationMethodDescription = value 
    7475 
    7576    @property 
     
    7980    @result.setter 
    8081    def result(self, value): 
    81              self._dq_logicalconsistency.result = value 
     82            self._dq_logicalconsistency.result = value 
    8283 
    8384    @property 
     
    8788    @measureIdentification.setter 
    8889    def measureIdentification(self, value): 
    89              self._dq_logicalconsistency.measureIdentification = value 
     90            self._dq_logicalconsistency.measureIdentification = value 
    9091 
    9192    @property 
     
    9596    @evaluationProcedure.setter 
    9697    def evaluationProcedure(self, value): 
    97              self._dq_logicalconsistency.evaluationProcedure = value 
     98            self._dq_logicalconsistency.evaluationProcedure = value 
     99 
     100    @property 
     101    def dateTime(self): 
     102        return self._dq_logicalconsistency.dateTime 
     103 
     104    @dateTime.setter 
     105    def dateTime(self, value): 
     106            self._dq_logicalconsistency.dateTime = value 
    98107 
    99108    @property 
     
    103112    @measureDescription.setter 
    104113    def measureDescription(self, value): 
    105              self._dq_logicalconsistency.measureDescription = value 
     114            self._dq_logicalconsistency.measureDescription = value 
    106115 
    107     @property 
    108     def dateTime(self): 
    109         return self._dq_logicalconsistency.dateTime 
     116    def __key(self): 
     117        return (self.evaluationMethodType, self.nameOfMeasure, self.evaluationMethodDescription, self.result, self.measureIdentification, self.evaluationProcedure, self.dateTime, self.measureDescription) 
    110118 
    111     @dateTime.setter 
    112     def dateTime(self, value): 
    113              self._dq_logicalconsistency.dateTime = value 
     119    def __eq__(x, y): 
     120        ''' 
     121        Cannot compare classes which do not define a "__key" attribute  
     122        ''' 
     123        if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     124            return x.__key() == y.__key() 
     125        return id(x) == id(y) 
     126 
     127    def __hash__(self): 
     128        return hash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/li_lineage.py

    r8074 r8086  
     1 
    12 
    23 
     
    1718 
    1819''' 
    19 Created on 26-Jan-2012 16:07:30 
     20Created on 03-Feb-2012 10:41:14 
    2021 
    2122@author: mnagni 
     
    4546 
    4647 
     48 
     49    def __key(self): 
     50        return (self.processStep, self.statement, self.source) 
     51 
     52    def __eq__(x, y): 
     53        ''' 
     54        Cannot compare classes which do not define a "__key" attribute  
     55        ''' 
     56        if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     57            return x.__key() == y.__key() 
     58        return id(x) == id(y) 
     59 
     60    def __hash__(self): 
     61        return hash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/li_processstep.py

    r8074 r8086  
     1 
    12 
    23 
     
    1718 
    1819''' 
    19 Created on 26-Jan-2012 16:07:40 
     20Created on 03-Feb-2012 10:41:14 
    2021 
    2122@author: mnagni 
     
    3536    def __init__(self): 
    3637 
     38        self.rationale = None 
    3739        self.description = None 
    38         self.rationale = None 
    3940        self.processor = [] 
    4041        self.source = [] 
     
    5152 
    5253 
     54 
     55    def __key(self): 
     56        return (self.rationale, self.description, self.processor, self.source, self.dateTime) 
     57 
     58    def __eq__(x, y): 
     59        ''' 
     60        Cannot compare classes which do not define a "__key" attribute  
     61        ''' 
     62        if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     63            return x.__key() == y.__key() 
     64        return id(x) == id(y) 
     65 
     66    def __hash__(self): 
     67        return hash(self.__key()) 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/data_quality_information/li_source.py

    r8074 r8086  
     1 
    12 
    23 
     
    1718 
    1819''' 
    19 Created on 26-Jan-2012 16:07:28 
     20Created on 03-Feb-2012 10:41:18 
    2021 
    2122@author: mnagni 
     
    5455 
    5556 
     57 
     58    def __key(self): 
     59        return (self.scaleDenominator, self.sourceExtent, self.description, self.sourceCitation, self.sourceStep, self.sourceReferenceSystem) 
     60 
     61    def __eq__(x, y): 
     62        ''' 
     63        Cannot compare classes which do not define a "__key" attribute  
     64        ''' 
     65        if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     66            return x.__key() == y.__key() 
     67        return id(x) == id(y) 
     68 
     69    def __hash__(self): 
     70        return hash(self.__key()) 
Note: See TracChangeset for help on using the changeset viewer.