Changeset 953


Ignore:
Timestamp:
18/05/06 15:30:08 (13 years ago)
Author:
domlowe
Message:

Alterations to testMethods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/parser/csmldoc.py

    r939 r953  
    1717        self.dataset =parser_extra.ParserPostProcessor(self.dataset).resolveReferences() 
    1818     
    19     #Dataset methods: 
     19    #other Dataset methods go here: 
    2020    ############ 
    2121    #def getFeaturelist: 
     
    3333                    elif  isinstance(member,ProfileFeature): 
    3434                        return CSMLProfileFeature(member) 
    35                     #elif etc... for all features 
     35                    #elif etc... for all feature types 
    3636 
    3737class CSMLAbstractFeature:  
     
    4444             
    4545            '''testMethod is the 'default' abstract testMethod - it will be overwritten by subclasses i.e. by specific features''' 
    46              
    4746        def testMethod(self): 
    4847            #default "testMethod" for all features 
     
    5049            return 'abstract test method called and not overwritten' 
    5150        def getOutputOptions(self): 
    52             #return generic output options for 'all' features - this may in fact be none...? 
     51            #return generic output options for abstract features - this may in fact be none... and will be always overwritten within specific feature types 
    5352            pass 
    5453 
     
    5756        CSMLAbstractFeature.__init__(self,feature) 
    5857    def getOutputOptions(self): 
    59             #return output options for Point feature... 
     58            #return output options for Point feature... not implemented 
    6059        pass 
    6160    def testMethod(self): 
     
    6867        CSMLAbstractFeature.__init__(self,feature) 
    6968    def getOutputOptions(self): 
    70             #return output options for PointSeries feature... 
     69            #return output options for PointSeries feature... not implemented 
    7170        pass 
    7271    def testMethod(self): 
     
    8079        CSMLAbstractFeature.__init__(self,feature) 
    8180    def getOutputOptions(self): 
    82             #return output options for ProfileSeries feature... 
     81            #return output options for ProfileSeries feature... not implemented 
    8382        pass 
    84     '''NOTE:this feature does not have a "testMethod" so default abstract testMethod is used''' 
    85      
     83    '''NOTE:this feature does not have a "testMethod" so default abstract testMethod is used from CSMLAbstractFeature''' 
     84    #def testMethod(self): 
     85    #   pass 
    8686     
    8787     
Note: See TracChangeset for help on using the changeset viewer.