Ignore:
Timestamp:
21/02/12 08:22:21 (8 years ago)
Author:
mnagni
Message:

The migration process now includes
1) deployment_data files
2) XML document hash
3) full Dojo support


Location:
mauRepo/MolesManager/trunk/src/ea_model/iso_19156_2011_observations_and_measurements/general_feature_instance
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19156_2011_observations_and_measurements/general_feature_instance/gfi_domainfeature.py

    r8089 r8091  
    2323 
    2424''' 
    25 Created on 14-Feb-2012 17:19:30 
     25Created on 16-Feb-2012 16:18:06 
    2626 
    2727@author: mnagni 
     
    4242        self._gfi_feature = GFI_Feature()        
    4343 
     44        self._propertyValueProvider_om_discretecoverageobservation = [] 
     45        self._propertyValueProvider_om_temporalobservation = [] 
    4446        self._propertyValueProvider_om_measurement = [] 
     47        self._propertyValueProvider_mo_observation = [] 
     48        self._propertyValueProvider_om_truthobservation = [] 
     49        self._propertyValueProvider_om_countobservation = [] 
     50        self._propertyValueProvider_om_categoryobservation = [] 
     51        self._propertyValueProvider_om_geometryobservation = [] 
    4552        self._propertyValueProvider_om_complexobservation = [] 
    46         self._propertyValueProvider_om_countobservation = [] 
    47         self._propertyValueProvider_om_temporalobservation = [] 
    48         self._propertyValueProvider_mo_observation = [] 
    49         self._propertyValueProvider_om_geometryobservation = [] 
    50         self._propertyValueProvider_om_truthobservation = [] 
    51         self._propertyValueProvider_om_categoryobservation = [] 
    52         self._propertyValueProvider_om_discretecoverageobservation = [] 
    5353        super(GFI_DomainFeature, self).__init__() 
    5454 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19156_2011_observations_and_measurements/general_feature_instance/gfi_feature.py

    r8089 r8091  
    2222 
    2323''' 
    24 Created on 14-Feb-2012 17:19:30 
     24Created on 16-Feb-2012 16:18:10 
    2525 
    2626@author: mnagni 
     
    4040    def __init__(self): 
    4141 
     42        self._propertyValueProvider_om_discretecoverageobservation = [] 
     43        self._propertyValueProvider_om_temporalobservation = [] 
    4244        self._propertyValueProvider_om_measurement = [] 
     45        self._propertyValueProvider_mo_observation = [] 
     46        self._propertyValueProvider_om_truthobservation = [] 
     47        self._propertyValueProvider_om_countobservation = [] 
     48        self._propertyValueProvider_om_categoryobservation = [] 
     49        self._propertyValueProvider_om_geometryobservation = [] 
    4350        self._propertyValueProvider_om_complexobservation = [] 
    44         self._propertyValueProvider_om_countobservation = [] 
    45         self._propertyValueProvider_om_temporalobservation = [] 
    46         self._propertyValueProvider_mo_observation = [] 
    47         self._propertyValueProvider_om_geometryobservation = [] 
    48         self._propertyValueProvider_om_truthobservation = [] 
    49         self._propertyValueProvider_om_categoryobservation = [] 
    50         self._propertyValueProvider_om_discretecoverageobservation = [] 
    5151        super(GFI_Feature, self).__init__() 
    5252 
     
    5454    def propertyValueProvider(self):     
    5555        ret = [] 
     56        for item in self._propertyValueProvider_om_discretecoverageobservation: 
     57            ret.append(item) 
     58        for item in self._propertyValueProvider_om_temporalobservation: 
     59            ret.append(item) 
    5660        for item in self._propertyValueProvider_om_measurement: 
    5761            ret.append(item) 
    58         for item in self._propertyValueProvider_om_complexobservation: 
     62        for item in self._propertyValueProvider_mo_observation: 
     63            ret.append(item) 
     64        for item in self._propertyValueProvider_om_truthobservation: 
    5965            ret.append(item) 
    6066        for item in self._propertyValueProvider_om_countobservation: 
    6167            ret.append(item) 
    62         for item in self._propertyValueProvider_om_temporalobservation: 
    63             ret.append(item) 
    64         for item in self._propertyValueProvider_mo_observation: 
     68        for item in self._propertyValueProvider_om_categoryobservation: 
    6569            ret.append(item) 
    6670        for item in self._propertyValueProvider_om_geometryobservation: 
    6771            ret.append(item) 
    68         for item in self._propertyValueProvider_om_truthobservation: 
    69             ret.append(item) 
    70         for item in self._propertyValueProvider_om_categoryobservation: 
    71             ret.append(item) 
    72         for item in self._propertyValueProvider_om_discretecoverageobservation: 
     72        for item in self._propertyValueProvider_om_complexobservation: 
    7373            ret.append(item) 
    7474        return ret 
     
    7777    def propertyValueProvider(self, value):      
    7878        if isinstance(value, list): 
     79            self._propertyValueProvider_om_discretecoverageobservation[:] 
     80            self._propertyValueProvider_om_temporalobservation[:] 
    7981            self._propertyValueProvider_om_measurement[:] 
     82            self._propertyValueProvider_mo_observation[:] 
     83            self._propertyValueProvider_om_truthobservation[:] 
     84            self._propertyValueProvider_om_countobservation[:] 
     85            self._propertyValueProvider_om_categoryobservation[:] 
     86            self._propertyValueProvider_om_geometryobservation[:] 
    8087            self._propertyValueProvider_om_complexobservation[:] 
    81             self._propertyValueProvider_om_countobservation[:] 
    82             self._propertyValueProvider_om_temporalobservation[:] 
    83             self._propertyValueProvider_mo_observation[:] 
    84             self._propertyValueProvider_om_geometryobservation[:] 
    85             self._propertyValueProvider_om_truthobservation[:] 
    86             self._propertyValueProvider_om_categoryobservation[:] 
    87             self._propertyValueProvider_om_discretecoverageobservation[:] 
    8888            for item in value: 
    8989                valueClass = "%s.%s" % (type(item).__module__,type(item).__name__) 
     90                if valueClass == "ea_model.iso_19156_2011_observations_and_measurements.observation_schema.coverageobservation.om_discretecoverageobservation.OM_DiscreteCoverageObservation": 
     91                    self._propertyValueProvider_om_discretecoverageobservation.append(item) 
     92                    continue 
     93                if valueClass == "ea_model.iso_19156_2011_observations_and_measurements.observation_schema.temporalobservation.om_temporalobservation.OM_TemporalObservation": 
     94                    self._propertyValueProvider_om_temporalobservation.append(item) 
     95                    continue 
    9096                if valueClass == "ea_model.iso_19156_2011_observations_and_measurements.observation_schema.measurement.om_measurement.OM_Measurement": 
    9197                    self._propertyValueProvider_om_measurement.append(item) 
    9298                    continue 
    93                 if valueClass == "ea_model.iso_19156_2011_observations_and_measurements.observation_schema.complexobservation.om_complexobservation.OM_ComplexObservation": 
    94                     self._propertyValueProvider_om_complexobservation.append(item) 
     99                if valueClass == "ea_model.moles3_4.observation.mo_observation.MO_Observation": 
     100                    self._propertyValueProvider_mo_observation.append(item) 
     101                    continue 
     102                if valueClass == "ea_model.iso_19156_2011_observations_and_measurements.observation_schema.truthobservation.om_truthobservation.OM_TruthObservation": 
     103                    self._propertyValueProvider_om_truthobservation.append(item) 
    95104                    continue 
    96105                if valueClass == "ea_model.iso_19156_2011_observations_and_measurements.observation_schema.countobservation.om_countobservation.OM_CountObservation": 
    97106                    self._propertyValueProvider_om_countobservation.append(item) 
    98107                    continue 
    99                 if valueClass == "ea_model.iso_19156_2011_observations_and_measurements.observation_schema.temporalobservation.om_temporalobservation.OM_TemporalObservation": 
    100                     self._propertyValueProvider_om_temporalobservation.append(item) 
    101                     continue 
    102                 if valueClass == "ea_model.moles3_4.observation.mo_observation.MO_Observation": 
    103                     self._propertyValueProvider_mo_observation.append(item) 
     108                if valueClass == "ea_model.iso_19156_2011_observations_and_measurements.observation_schema.categoryobservation.om_categoryobservation.OM_CategoryObservation": 
     109                    self._propertyValueProvider_om_categoryobservation.append(item) 
    104110                    continue 
    105111                if valueClass == "ea_model.iso_19156_2011_observations_and_measurements.observation_schema.geometryobservation.om_geometryobservation.OM_GeometryObservation": 
    106112                    self._propertyValueProvider_om_geometryobservation.append(item) 
    107113                    continue 
    108                 if valueClass == "ea_model.iso_19156_2011_observations_and_measurements.observation_schema.truthobservation.om_truthobservation.OM_TruthObservation": 
    109                     self._propertyValueProvider_om_truthobservation.append(item) 
    110                     continue 
    111                 if valueClass == "ea_model.iso_19156_2011_observations_and_measurements.observation_schema.categoryobservation.om_categoryobservation.OM_CategoryObservation": 
    112                     self._propertyValueProvider_om_categoryobservation.append(item) 
    113                     continue 
    114                 if valueClass == "ea_model.iso_19156_2011_observations_and_measurements.observation_schema.coverageobservation.om_discretecoverageobservation.OM_DiscreteCoverageObservation": 
    115                     self._propertyValueProvider_om_discretecoverageobservation.append(item) 
     114                if valueClass == "ea_model.iso_19156_2011_observations_and_measurements.observation_schema.complexobservation.om_complexobservation.OM_ComplexObservation": 
     115                    self._propertyValueProvider_om_complexobservation.append(item) 
    116116                    continue 
    117117 
Note: See TracChangeset for help on using the changeset viewer.