Ignore:
Timestamp:
06/07/12 09:00:43 (7 years ago)
Author:
mnagni
Message:

Added a new function to ascore.utils in order to synchronize classes before committing to database

The following constraints has been added to the official model:

MO_ObservationCollection:member:CEDA_Observation
MO_ObservationCollection:phenomenonTime:TM_GeometricPrimitive
MO_Project:observationCollection:CEDA_ObservationCollection
MO_Observation:result:CEDA_Result
MO_Observation:inSupportOf:CEDA_Project
MO_Project:subProject:CEDA_Project
OM_Observation:procedure:CEDA_Process
OM_Observation:phenomenonTime:TM_GeometricPrimitive
MO_ResponsiblePartyFunctionValue:CEDA_RoleValue

Location:
mauRepo/CedaMolesModel/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/CedaMolesModel/trunk

    • Property svn:ignore
      •  

        old new  
        44 
        55.project 
         6 
         7dist 
  • mauRepo/CedaMolesModel/trunk/ceda_moles_model

    • Property svn:ignore set to
      ceda_moles_model.egg-info
  • mauRepo/CedaMolesModel/trunk/ceda_moles_model/ea_model/iso_19130_sensor_data/sensor_model/sd_sensormodel.py

    r8398 r8437  
    2424 
    2525''' 
    26 Created on 26-Jun-2012 10:16:33 
     26Created on 06-Jul-2012 07:43:02 
    2727 
    2828@author: mnagni 
     
    4545 
    4646                self.platformParameters = None 
     47                self._sensorParameters_sd_imageryparameters = None 
    4748                self._sensorParameters_sd_mtiparameters = None 
    48                 self._sensorParameters_sd_imageryparameters = None 
    4949                self._sensorParameters = None 
    5050                super(SD_SensorModel, self).__init__() 
     
    5858        @property 
    5959        def sensorParameters(self):      
     60                if(has_value(self._sensorParameters_sd_imageryparameters)): 
     61                        return self._sensorParameters_sd_imageryparameters 
    6062                if(has_value(self._sensorParameters_sd_mtiparameters)): 
    6163                        return self._sensorParameters_sd_mtiparameters 
    62                 if(has_value(self._sensorParameters_sd_imageryparameters)): 
    63                         return self._sensorParameters_sd_imageryparameters 
    6464                return  None 
    6565 
     
    6767        def sensorParameters(self, value):       
    6868                valueClass = "%s.%s" % (type(value).__module__,type(value).__name__) 
     69                if valueClass == "ea_model.iso_19130_sensor_data.sensor_model.sd_imageryparameters.SD_ImageryParameters": 
     70                        self._sensorParameters_sd_imageryparameters = value 
     71                        self._sensorParameters_sd_mtiparameters = None 
    6972                if valueClass == "ea_model.iso_19130_sensor_data.sensor_model.sd_mtiparameters.SD_MTIParameters": 
    7073                        self._sensorParameters_sd_mtiparameters = value 
    7174                        self._sensorParameters_sd_imageryparameters = None 
    72                 if valueClass == "ea_model.iso_19130_sensor_data.sensor_model.sd_imageryparameters.SD_ImageryParameters": 
    73                         self._sensorParameters_sd_imageryparameters = value 
    74                         self._sensorParameters_sd_mtiparameters = None 
    7575 
    7676        def synchronize(self): 
Note: See TracChangeset for help on using the changeset viewer.