Class BasicRunner
- Known Subclasses:
-
AnalyzedRunner
Base class for the running of commands
When the command is run the output is copied to a LogFile and
(optionally) standard-out
The argument list assumes for the first three elements the
OpenFOAM-convention:
<cmd> <dir> <case>
The directory name for outputs is therefor created from <dir>
and <case>
Provides some handle-methods that are to be overloaded for additional
functionality
Method Summary |
|
__init__ (self,
argv,
silent,
logname)
argv - list with the tokens that are the command line if not set the
standard command line is used |
|
lineHandle (self,
line)
called every time a new line is read |
|
start (self)
starts the command and stays with it till the end |
|
startHandle (self)
to be called before the program is started |
|
stopHandle (self)
called after the program has stopped |
__init__(self,
argv=None,
silent=False,
logname='PyFoam')
(Constructor)
argv - list with the tokens that are the command line if not set the
standard command line is used
silent - if True no output is sent to stdout logname - name of the
logfile
-
|
lineHandle(self,
line)
called every time a new line is read
-
|
start(self)
starts the command and stays with it till the end
-
|
startHandle(self)
to be called before the program is started
-
|
stopHandle(self)
called after the program has stopped
-
|