component_recovery_time_calculator

class pyrecodes.resilience_calculator.component_recovery_time_calculator.ComponentRecoveryTimeCalculator(parameters: dict)

Bases: ResilienceCalculator

Resilience calculator class that calculates the recovery time for each component in the system.

calculate_resilience()
get_component_recovery_time(component: Component)
Method that calculates the recovery time for a component.
Component recovery is asumed to finish once the component is repaired and damage is removed.
Note that component may be functional during recovery, depending on the damage to functionality relation.
update(system) None