Exemple #1
0
 def __init__(self, data_access, scenario_info):
     """Constructor."""
     self._data_access = data_access
     self._scenario_info = scenario_info
     self.backup_config = server_setup.PathConfig(
         server_setup.BACKUP_DATA_ROOT_DIR)
     self.server_config = server_setup.PathConfig(
         server_setup.DATA_ROOT_DIR)
Exemple #2
0
    def __init__(self, scenario):
        """Constructor."""
        if type(self) == State:
            raise TypeError("Only subclasses of 'State' can be instantiated directly")

        self._data_access = scenario.data_access
        self._scenario_list_manager = ScenarioListManager(self._data_access)
        self._execute_list_manager = ExecuteListManager(self._data_access)
        self.path_config = server_setup.PathConfig(server_setup.DATA_ROOT_DIR)
Exemple #3
0
    def __init__(self, data_access, scenario_info, grid, ct):
        """Constructor."""
        self._data_access = data_access
        self._scenario_info = scenario_info
        self.grid = grid
        self.ct = ct
        self.server_config = server_setup.PathConfig(server_setup.DATA_ROOT_DIR)
        self.scenario_folder = "scenario_%s" % scenario_info["id"]

        self.REL_TMP_DIR = posixpath.join(
            server_setup.EXECUTE_DIR, self.scenario_folder
        )