no_recovery_activity_model

class pyrecodes.component_recovery_model.no_recovery_activity_model.NoRecoveryActivityModel(recovery_model_parameters: dict)

Bases: AbstractRecoveryModel

Recovery model for components that did not experience damage.

get_damage_level() float

Get the damage level of the undamaged component.

Returns:

float: The damage level (always 0 for undamaged components).

get_demand() dict

Get the demand for recovery activities for the undamaged component.

Returns:

dict: An empty dictionary, as there is no demand for undamaged components.

get_functionality_level() float

Get the functionality level of the undamaged component.

Returns:

float: The functionality level (always 1.0 for undamaged components).

set_damage_functionality(damage_functionality_relation: dict) None

Set damage functionality relation (not applicable for undamaged components).

Args:

damage_functionality_relation (dict): Damage functionality relation parameters.

set_initial_damage_level(damage_level: float) None

Set the initial damage level for undamaged components.

Args:

damage_level (float): The initial damage level. For this model, it must be 0.

Raises:

ValueError: If the damage level is not 0.