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[csle_common.dao.emulation_action.attacker.emulation_attacker_action.EmulationAttackerAction], pid: int, repeat_times: int, emulation_statistic_id: int, num_sequences_completed: int, traces: List[csle_common.dao.emulation_config.emulation_trace.EmulationTrace], save_emulation_traces_every: int, num_cached_traces: int, defender_sequence: List[csle_common.dao.emulation_action.defender.emulation_defender_action.EmulationDefenderAction], log_file_path: str, physical_host_ip: str, descr: str = '')[source]

Bases: csle_base.json_serializable.JSONSerializable

DTO representing the configuration of a data collection job

static from_dict(d: Dict[str, Any]) csle_common.dao.jobs.data_collection_job_config.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) csle_common.dao.jobs.data_collection_job_config.DataCollectionJobConfig[source]

Reads a json file and converts it to a DTO

Parameters

json_file_path – the json file path

Returns

the converted DTO

to_dict() Dict[str, Any][source]

Converts the object to a dict representation

Returns

a dict representation of the object

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: csle_common.dao.system_identification.system_identification_config.SystemIdentificationConfig, physical_host_ip: str, descr: str = '', system_model: Optional[csle_common.dao.system_identification.system_model.SystemModel] = None)[source]

Bases: csle_base.json_serializable.JSONSerializable

DTO representing a system identification job

static from_dict(d: Dict[str, Any]) csle_common.dao.jobs.system_identification_job_config.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) csle_common.dao.jobs.system_identification_job_config.SystemIdentificationJobConfig[source]

Reads a json file and converts it to a DTO

Parameters

json_file_path – the json file path

Returns

the converted DTO

to_dict() Dict[str, Any][source]

Converts the object to a dict representation

Returns

a dict representation of the object

csle_common.dao.jobs.training_job_config module

class csle_common.dao.jobs.training_job_config.TrainingJobConfig(simulation_env_name: str, experiment_config: csle_common.dao.training.experiment_config.ExperimentConfig, progress_percentage: float, pid: int, experiment_result: csle_common.dao.training.experiment_result.ExperimentResult, emulation_env_name: str, simulation_traces: List[csle_common.dao.simulation_config.simulation_trace.SimulationTrace], num_cached_traces: int, log_file_path: str, descr: str, physical_host_ip: str)[source]

Bases: csle_base.json_serializable.JSONSerializable

DTO representing the configuration of a training job

static from_dict(d: Dict[str, Any]) csle_common.dao.jobs.training_job_config.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) csle_common.dao.jobs.training_job_config.TrainingJobConfig[source]

Reads a json file and converts it to a DTO

Parameters

json_file_path – the json file path

Returns

the converted DTO

to_dict() Dict[str, Any][source]

Converts the object to a dict representation

Returns

a dict representation of the object

Module contents