csle_tolerance.dao package

Submodules

csle_tolerance.dao.intrusion_recovery_game_config module

class csle_tolerance.dao.intrusion_recovery_game_config.IntrusionRecoveryGameConfig(eta: float, p_a: float, p_c_1: float, BTR: int, negate_costs: bool, seed: int, discount_factor: float, states: List[int], actions: List[int], observations: List[int], cost_tensor: List[List[float]], observation_tensor: List[List[float]], transition_tensor: List[List[List[List[float]]]], b1: List[float], T: int, simulation_env_name: str, gym_env_name: str, max_horizon: float = inf)[source]

Bases: csle_common.dao.simulation_config.simulation_env_input_config.SimulationEnvInputConfig

DTO containing the configuration of an intrusion recovery POSG

static from_dict(d: Dict[str, Any]) csle_tolerance.dao.intrusion_recovery_game_config.IntrusionRecoveryGameConfig[source]

Converts a dict representation to an instance

Parameters

d – the dict to convert

Returns

the created instance

static from_json_file(json_file_path: str) csle_tolerance.dao.intrusion_recovery_game_config.IntrusionRecoveryGameConfig[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]

Gets a dict representation of the object

Returns

A dict representation of the object

csle_tolerance.dao.intrusion_recovery_pomdp_config module

class csle_tolerance.dao.intrusion_recovery_pomdp_config.IntrusionRecoveryPomdpConfig(eta: float, p_a: float, p_c_1: float, p_c_2: float, p_u: float, BTR: int, negate_costs: bool, seed: int, discount_factor: float, states: List[int], actions: List[int], observations: List[int], cost_tensor: List[List[float]], observation_tensor: List[List[float]], transition_tensor: List[List[List[float]]], b1: List[float], T: int, simulation_env_name: str, gym_env_name: str, max_horizon: float = inf)[source]

Bases: csle_common.dao.simulation_config.simulation_env_input_config.SimulationEnvInputConfig

DTO containing the configuration of an intrusion recovery POMDP

static from_dict(d: Dict[str, Any]) csle_tolerance.dao.intrusion_recovery_pomdp_config.IntrusionRecoveryPomdpConfig[source]

Converts a dict representation to an instance

Parameters

d – the dict to convert

Returns

the created instance

static from_json_file(json_file_path: str) csle_tolerance.dao.intrusion_recovery_pomdp_config.IntrusionRecoveryPomdpConfig[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]

Gets a dict representation of the object

Returns

A dict representation of the object

csle_tolerance.dao.intrusion_response_cmdp_config module

class csle_tolerance.dao.intrusion_response_cmdp_config.IntrusionResponseCmdpConfig(p_a: float, p_c: float, p_u: float, s_max: int, transition_tensor: List[List[List[float]]], cost_tensor: List[float], negate_costs: bool, seed: int, states: List[int], actions: List[int], initial_state: int, constraint_cost_tensor: List[float], f: int, epsilon_a: float, simulation_env_name: str, gym_env_name: str, discount_factor: float)[source]

Bases: csle_common.dao.simulation_config.simulation_env_input_config.SimulationEnvInputConfig

Configuration of the intrusion response CMDP

static from_dict(d: Dict[str, Any]) csle_tolerance.dao.intrusion_response_cmdp_config.IntrusionResponseCmdpConfig[source]

Converts a dict representation to an instance

Parameters

d – the dict to convert

Returns

the created instance

static from_json_file(json_file_path: str) csle_tolerance.dao.intrusion_response_cmdp_config.IntrusionResponseCmdpConfig[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]

Gets a dict representation of the object

Returns

A dict representation of the object

Module contents