csle_common.dao.jobs package
Submodules
csle_common.dao.jobs.data_collection_job_config module
- class csle_common.dao.jobs.data_collection_job_config.DataCollectionJobConfig(emulation_env_name: str, num_collected_steps: int, progress_percentage: float, attacker_sequence: List[EmulationAttackerAction], pid: int, repeat_times: int, emulation_statistic_id: int, num_sequences_completed: int, traces: List[EmulationTrace], save_emulation_traces_every: int, num_cached_traces: int, defender_sequence: List[EmulationDefenderAction], log_file_path: str, physical_host_ip: str, descr: str = '')[source]
Bases:
JSONSerializable
DTO representing the configuration of a data collection job
- static from_dict(d: Dict[str, Any]) DataCollectionJobConfig [source]
Converts a dict representation of the object to an instance
- Parameters
d – the dict to convert
- Returns
the created instance
- static from_json_file(json_file_path: str) DataCollectionJobConfig [source]
Reads a json file and converts it to a DTO
- Parameters
json_file_path – the json file path
- Returns
the converted DTO
csle_common.dao.jobs.system_identification_job_config module
- class csle_common.dao.jobs.system_identification_job_config.SystemIdentificationJobConfig(emulation_env_name: str, emulation_statistics_id: int, progress_percentage: float, pid: int, log_file_path: str, system_identification_config: SystemIdentificationConfig, physical_host_ip: str, descr: str = '', system_model: Optional[SystemModel] = None)[source]
Bases:
JSONSerializable
DTO representing a system identification job
- static from_dict(d: Dict[str, Any]) SystemIdentificationJobConfig [source]
Converts a dict representation of the object to an instance
- Parameters
d – the dict to convert
- Returns
the created instance
- static from_json_file(json_file_path: str) SystemIdentificationJobConfig [source]
Reads a json file and converts it to a DTO
- Parameters
json_file_path – the json file path
- Returns
the converted DTO
csle_common.dao.jobs.training_job_config module
- class csle_common.dao.jobs.training_job_config.TrainingJobConfig(simulation_env_name: str, experiment_config: ExperimentConfig, progress_percentage: float, pid: int, experiment_result: ExperimentResult, emulation_env_name: str, simulation_traces: List[SimulationTrace], num_cached_traces: int, log_file_path: str, descr: str, physical_host_ip: str)[source]
Bases:
JSONSerializable
DTO representing the configuration of a training job
- static from_dict(d: Dict[str, Any]) TrainingJobConfig [source]
Converts a dict representation of the object to an instance :param d: the dict to convert :return: the created instance
- static from_json_file(json_file_path: str) TrainingJobConfig [source]
Reads a json file and converts it to a DTO
- Parameters
json_file_path – the json file path
- Returns
the converted DTO