Ignore:
Timestamp:
10/07/12 14:41:56 (7 years ago)
Author:
mnagni
Message:

Corrected an error in the generation of the classes "synchronize" method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/CedaMolesModel/trunk/ceda_moles_model/ea_model/informative/spatial_examples_from_iso_19107/application_schema/simplicial_topology/twosimplex.py

    r8437 r8457  
    2222 
    2323''' 
    24 Created on 06-Jul-2012 07:43:09 
     24Created on 10-Jul-2012 14:15:13 
    2525 
    2626@author: mnagni 
     
    4141 
    4242                self.dimension = None 
     43                self._vertices_eg_pointestimate = None 
    4344                self._vertices_gm_compositepoint = None 
    44                 self._vertices_eg_pointestimate = None 
    4545                self._vertices = None 
    4646                super(TwoSimplex, self).__init__() 
    4747        @property 
    4848        def vertices(self):      
     49                if(has_value(self._vertices_eg_pointestimate)): 
     50                        return self._vertices_eg_pointestimate 
    4951                if(has_value(self._vertices_gm_compositepoint)): 
    5052                        return self._vertices_gm_compositepoint 
    51                 if(has_value(self._vertices_eg_pointestimate)): 
    52                         return self._vertices_eg_pointestimate 
    5353                return  None 
    5454 
     
    5656        def vertices(self, value):       
    5757                valueClass = "%s.%s" % (type(value).__module__,type(value).__name__) 
     58                if valueClass == "ea_model.iso_19133_tracking_and_navigation.tracking.point_estimates.eg_pointestimate.EG_PointEstimate": 
     59                        self._vertices_eg_pointestimate = value 
     60                        self._vertices_gm_compositepoint = None 
    5861                if valueClass == "ea_model.iso_19107_2003_spatial_schema.geometry.geometric_complex.gm_compositepoint.GM_CompositePoint": 
    5962                        self._vertices_gm_compositepoint = value 
    6063                        self._vertices_eg_pointestimate = None 
    61                 if valueClass == "ea_model.iso_19133_tracking_and_navigation.tracking.point_estimates.eg_pointestimate.EG_PointEstimate": 
    62                         self._vertices_eg_pointestimate = value 
    63                         self._vertices_gm_compositepoint = None 
    6464 
    6565        def synchronize(self): 
Note: See TracChangeset for help on using the changeset viewer.