1
2 """Command is run and output is analyzed"""
3
4 from BasicRunner import BasicRunner
5 from AnalyzedCommon import AnalyzedCommon
6
8 """The output of a command is analyzed while being run
9
10 Side effects (files written etc) depend on the analyzer"""
11
12 - def __init__(self,analyzer,argv=None,silent=False,logname="PyFoamSolve",server=False,lam=None,restart=False):
13 """ @param analyzer: the analyzer for the output
14 argv, silent, logname, server, lam - see BasicRunner"""
15 BasicRunner.__init__(self,argv,silent,logname,server=server,lam=lam,restart=restart)
16 AnalyzedCommon.__init__(self,logname,analyzer)
17
22
25
27 exe=self.getAnalyzer("Execution")
28 if exe==None:
29 return None
30 else:
31 return exe.timeFirst()
32
39
41 exe=self.getAnalyzer("Execution")
42 if exe==None:
43 return None
44 else:
45 return exe.timeTotal()
46
53
57