Changeset 1462 for TI02-CSML


Ignore:
Timestamp:
30/08/06 12:37:29 (13 years ago)
Author:
domlowe
Message:

changing code to use new style python classes

Location:
TI02-CSML/trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/Scanner/csmllibs/csmlbuilder.py

    r1403 r1462  
    1313 
    1414 
    15 class csmlBuilder: 
     15class csmlBuilder(object): 
    1616    #this class contains all the method calls to create and populate a csmldoc 
    1717    #it needs to be provided with several bits of information to be able to do this. 
  • TI02-CSML/trunk/Scanner/csmllibs/csmldataiface.py

    r1419 r1462  
    1616import sys 
    1717 
    18 class DataInterface: 
     18class DataInterface(object): 
    1919        #Use DataInterface and setInterfaceType to instantiate the correct 
    2020        #subclass for data  
     
    5454         
    5555                                                         
    56 class AbstractDI:                
     56class AbstractDI(object):                
    5757        #Abstract data interface class 
    5858        #does nothing, but contains templates for methods required for a data interface class 
  • TI02-CSML/trunk/Scanner/csmllibs/csmldirectory.py

    r1123 r1462  
    44import sys 
    55 
    6 class DirectoryTree: 
     6class DirectoryTree(object): 
    77         
    88        def __init__(self): 
  • TI02-CSML/trunk/Scanner/csmllibs/csmlfeaturefilemap.py

    r627 r1462  
    22 
    33 
    4 class FeatureFileMap: 
     4class FeatureFileMap(object): 
    55        #this class is important to describe the relationship between the file structure and the feature type 'relationships' 
    66        #ie. a gridseriesfeature may span multiple files in a directory 
     
    2929 
    3030                 
    31 class representativeFile: 
     31class representativeFile(object): 
    3232        def __init__(self,filename): 
    3333                self.repFile=filename 
     
    5151                return self.featureType 
    5252         
    53 class relatedFile: 
     53class relatedFile(object): 
    5454        def __init__(self,filename): 
    5555                self.relatedFile=filename 
  • TI02-CSML/trunk/Scanner/csmllibs/csmlfeaturetypes.py

    r1408 r1462  
    1010import sys 
    1111 
    12 class featureBuilder: 
     12class featureBuilder(object): 
    1313    def __init__(self, dataset_element, gml_FeatureCollection_element, ffmap,fileExtractDictionary, timedim, timestorage,spatialstorage,valuestorage): 
    1414        self.ds_element=dataset_element 
  • TI02-CSML/trunk/Scanner/csmllibs/csmlfileextracts.py

    r1399 r1462  
    55import csmllibs 
    66import sys 
    7 class fileExtractBuilder: 
     7class fileExtractBuilder(object): 
    88    def __init__(self, dataset_element, ffmap, timedim): 
    99        self.dataset_element=dataset_element 
  • TI02-CSML/trunk/Scanner/csmllibs/csmlfiles.py

    r1352 r1462  
    55 
    66 
    7 class FileMapMaker: 
     7class FileMapMaker(object): 
    88    ''' class which handles the lower level featurefilemap and directorytree classes 
    99    to build a featurefilemap object of featuretypes/files. 
  • TI02-CSML/trunk/parser/API/CSMLDocument.py

    r1297 r1462  
    44import parser_extra 
    55 
    6 class CSMLDocument: 
     6class CSMLDocument(object): 
    77    def __init__(self,docID, docMetaDataProperty): 
    88        ''' 
  • TI02-CSML/trunk/parser/API/NetCDFWriter.py

    r1422 r1462  
    11import cdms,MV 
    22import sys 
    3 class NCwriter: 
     3class NCwriter(object): 
    44    #This provides a simplified wrapper to CDMS to write a CF compliant NetCDF 
    55    def __init__(self, fileName): 
  • TI02-CSML/trunk/parser/Parser.py

    r1433 r1462  
    101101##        return csmlFrag 
    102102 
    103 class MetaDataProperty: 
     103class MetaDataProperty(object): 
    104104    """Class representing metadata property (gmlBase.xsd) 
    105105     
     
    168168        return csmlFrag 
    169169 
    170 class AbstractGML: 
     170class AbstractGML(object): 
    171171    """Base abstract GML type 
    172172 
     
    221221 
    222222 
    223 class SRSReferenceGroup: 
     223class SRSReferenceGroup(object): 
    224224    """ gml:SRSReferenceGroup 
    225225        class SRSReferenceGroup: 
     
    244244            return csmlFrag 
    245245 
    246 class SRSInformationGroup: 
     246class SRSInformationGroup(object): 
    247247    """ gml:SRSInformationGroup 
    248248    SRSReferenceGroup: 
     
    267267            return csmlFrag 
    268268     
    269 class AssociationAttributeGroup: 
     269class AssociationAttributeGroup(object): 
    270270    """gml:AssociationAttributeGroup which is based on the xlink 'simplelink' attribute group (not implemented) 
    271271    AssociationAttributeGroup 
     
    382382         
    383383         
    384 class TimeIntervalLength: 
     384class TimeIntervalLength(object): 
    385385    """ gml:TimeIntervalLength (decimal) 
    386386     n.b. have not implemented 'decimal' class as not needed 
     
    20092009        return csmlFrag 
    20102010     
    2011 class AbstractDomain: 
     2011class AbstractDomain(object): 
    20122012    """AbstractDomain 
    20132013    +domainReference[0..1]:_DomainReference 
     
    20952095 
    20962096 
    2097 class EnvelopeWithTimePeriod: 
     2097class EnvelopeWithTimePeriod(object): 
    20982098    """ EnvelopeWithTimePeriod(): 
    20992099        +lowerCorner:DirectPosition 
     
    21562156 
    21572157         
    2158 class AngleList: 
     2158class AngleList(object): 
    21592159     
    21602160    """AngleList 
     
    21802180        return csmlFrag 
    21812181         
    2182 class DirectionVectorList: 
     2182class DirectionVectorList(object): 
    21832183    """ DirectionVectorList 
    21842184         +horizontalAngle[0..1]:AngleList 
     
    22102210 
    22112211         
    2212 class Position: 
     2212class Position(object): 
    22132213    """ Position 
    22142214         +srsName[0..1]:string 
     
    23582358        return csmlFrag 
    23592359 
    2360 class GridEnvelope: 
     2360class GridEnvelope(object): 
    23612361    """GridEnvelope 
    23622362        +low[0..1]:string 
     
    24252425        return csmlFrag 
    24262426             
    2427 class GridOrdinateDescription: 
     2427class GridOrdinateDescription(object): 
    24282428    """GridOrdinateDescription: 
    24292429        +gridAxesSpanned[0..*]:string 
     
    25612561        return csmlFrag 
    25622562 
    2563 class TimeInstant: 
     2563class TimeInstant(object): 
    25642564    """TimeInstant 
    25652565    +timePosition[0..1]:string 
     
    26492649         return csmlFrag 
    26502650              
    2651 class Measure: 
     2651class Measure(object): 
    26522652    """ Measure 
    26532653        +uom[0..1]:anyURI 
     
    26722672        return csmlFrag 
    26732673 
    2674 class MeasureOrNullList: 
     2674class MeasureOrNullList(object): 
    26752675    """MeasureOrNullList: 
    26762676    +uom[0..1]:anyURI 
     
    27382738        return csmlFrag 
    27392739     
    2740 class CompositeValue: 
     2740class CompositeValue(object): 
    27412741    """ CompositeValue 
    27422742        +valueComponents[0..*]:Measure 
     
    27672767 
    27682768     
    2769 class DataBlock: 
     2769class DataBlock(object): 
    27702770    """class GML DataBlock 
    27712771     
     
    28032803 
    28042804 
    2805 class TypedCategory: 
     2805class TypedCategory(object): 
    28062806    """class om:TypedCategory 
    28072807        TypedCategory 
     
    33803380 
    33813381 
    3382 class SimpleCondition: 
     3382class SimpleCondition(object): 
    33833383        """ SimpleCondition (security) 
    33843384        SimpleCondition(): 
     
    34083408            return csmlFrag 
    34093409     
    3410 class DGSecurityCondition: 
     3410class DGSecurityCondition(object): 
    34113411        """ DGSecurityCondition(): 
    34123412             +effect[0..1]:string 
     
    34453445            return csmlFrag 
    34463446        
    3447 class AccessControlPolicy: 
     3447class AccessControlPolicy(object): 
    34483448        """ AccessControlPolicy(): 
    34493449            +dgSecurityConditions[0..*]:DGSecurityCondition 
Note: See TracChangeset for help on using the changeset viewer.