예제 #1
0
    def __init__(self,
                 name,
                 exp,
                 idNr=None,
                 idList=None,
                 titles=[],
                 doTimelines=True,
                 doFiles=True,
                 singleFile=False,
                 startTime=None,
                 endTime=None):
        """
        @param name: name of the expression (needed for output)
        @param exp: the regular expression
        @param idNr: number of the pattern group that is used as an identifier
        @param idList: numbers of the pattern group that are used from the expression
        @param titles: titles for the data items"""
        GeneralLineAnalyzer.__init__(self,
                                     titles=titles,
                                     doTimelines=doTimelines,
                                     doFiles=doFiles,
                                     singleFile=singleFile,
                                     startTime=startTime,
                                     endTime=endTime)

        self.name=name
        self.idNr=idNr
        self.idList=idList
        self.strExp=exp
        self.exp=re.compile(self.strExp)
예제 #2
0
 def __init__(self,
              doTimelines=True,
              doFiles=True,
              singleFile=False,
              startTime=None,
              endTime=None):
     GeneralLineAnalyzer.__init__(self,
                                  titles=["Local","Global","Cumulative"],
                                  doTimelines=doTimelines,
                                  doFiles=doFiles,
                                  singleFile=singleFile,
                                  startTime=startTime,
                                  endTime=endTime)
     self.exp=re.compile(continutityRegExp)
예제 #3
0
 def __init__(self,
              doTimelines=True,
              doFiles=True,
              singleFile=False,
              startTime=None,
              endTime=None):
     GeneralLineAnalyzer.__init__(self,
                                  titles=['Minimum','Maximum','Average'],
                                  doTimelines=doTimelines,
                                  doFiles=doFiles,
                                  singleFile=singleFile,
                                  startTime=startTime,
                                  endTime=endTime)
     self.exp=re.compile(boundingRegExp)
예제 #4
0
    def __init__(self,
                 doTimelines=True,
                 doFiles=True,
                 singleFile=False,
                 startTime=None,
                 endTime=None):
        GeneralLineAnalyzer.__init__(self,
                                     titles=["Initial","Final","Iterations"],
                                     doTimelines=doTimelines,
                                     doFiles=doFiles,
                                     singleFile=singleFile,
                                     startTime=startTime,
                                     endTime=endTime)
        self.exp=re.compile(linearRegExp)

        if self.doTimelines:
            self.lines.setDefault(1.)
            self.lines.setExtend(True)
예제 #5
0
    def __init__(self,
                 name,
                 exp,
                 idNr=None,
                 titles=[],
                 doTimelines=False,
                 doFiles=True,
                 accumulation=None,
                 progressTemplate=None,
                 singleFile=False,
                 startTime=None,
                 endTime=None):
        """
        @param name: name of the expression (needed for output
        @param exp: the regular expression, %f% will be replaced with the
        regular expression for a float
        @param idNr: number of the pattern group that is used as an identifier
        @param titles: titles of the columns
        @param accumulation: How multiple values should be accumulated
        """
        GeneralLineAnalyzer.__init__(self,
                                     titles=titles,
                                     doTimelines=doTimelines,
                                     doFiles=doFiles,
                                     accumulation=accumulation,
                                     progressTemplate=progressTemplate,
                                     singleFile=singleFile,
                                     startTime=startTime,
                                     endTime=endTime)
        
        self.name=name
        self.idNr=idNr

        exp=exp.replace("%f%",self.floatRegExp)

        self.strExp=exp
        self.exp=re.compile(self.strExp)

        self.data={}
예제 #6
0
 def __init__(self):
     GeneralLineAnalyzer.__init__(self,doTimelines=True)
예제 #7
0
 def __init__(self,titles=[]):
     """
     @param titles: The titles of the data elements
     """
     GeneralLineAnalyzer.__init__(self,doFiles=True,titles=titles)