Project

General

Profile

Task #2852

Updated by Vince Lehman almost 9 years ago

Each experiment should be registered with an ExperimentManager for lookup and initialization. 

 Instead of adding a new boolean for each test type, there should it would probably be better to have an "--experiment $arg" parameter. The ExperimentManager Then you can look up the $arg in a map containing the corresponding experiment object and instantiate it. 


 ``` 
 e.g.) 
     experiments = {} 
     if experiment is not None: 
         if experiment in experiments: 
             constructor = experiments[experiment] 
             test = constructor(...) 
             test.start() 
         else: 
             ERROR 
 ``` 

Back