repair_configurator

class pyrecodes.component_configurator.repair_configurator.RepairConfigurator(component: Component, system_level_data: dict)

Bases: object

Class that configures repair parameters for components.
Repair parameters are repair duration and repair resource demand.
TODO: Create a more general class “RecoveryActivityConfigurator” that configures all recovery activities once it is needed. For now only repair is configured.
get_repair_cost(component_data: dict) float
set_parameters(component_data: dict, component_DS: int, recovery_demand_setter: callable) None
set_repair_cost(component_data: dict, recovery_demand_setter: callable) None
set_repair_demand(component_DS: int, recovery_demand_setter: callable) None

Set repair resource demand for the component.

Set when component is created based on info from component library. No need to change.

Implement this method in the subclass, if necessary.

set_repair_time(component_data: dict) None

Set repair time for the component.

Set when component is created based on info from component library. No need to change.

Implement this method in the subclass, if necessary.