root/hiersort/sim/RunProcSys.hs

Revision 1, 0.9 kB (checked in by thesz, 2 years ago)

Initial commit

Line 
1 -- | RunProcSys.hs
2 -- Parse command line, configure DFL system and run program with it.
3 --
4 -- Copytight (C) 2007, 2008 Serguey Zefirov
5 --
6 -- This program is free software; you can redistribute it and/or modify
7 -- it under the terms of the GNU General Public License as published by
8 -- the Free Software Foundation; either version 3, or (at your option)
9 -- any later version.
10 -- See file COPYING or visit http://www.gnu.org/licenses for details.
11
12 -- A program supplied as a matcher function in taskConfig parameter.
13
14
15 module RunProcSys(runProcSys) where
16
17 import Config
18 import HierProc
19 import DFLSystem
20
21 import System.Environment
22
23 runProcSys taskConfig = do
24         cfg <- parseCommandLine
25         args <- getArgs
26         putStrLn $ "Command line options: "++show args
27         let
28                         (dflsysparams,_) = taskConfig cfg
29                         proc = hierProc cfg
30                 in do
31                         dflSystemRunner cfg proc dflsysparams
32                         return ()
Note: See TracBrowser for help on using the browser.