resource

class pyrecodes.resource.resource.Resource(name: str, amount: float, functionality_to_amount_relation: str, unmet_demand_to_amount_relation: str)

Bases: ABC

Interface for a resource class in a component object.

component_functionality_to_amount: Relation
current_amount: float
initial_amount: float
name: str
abstract set_current_amount(amount: float) None
unmet_demand_to_amount: Relation
abstract update_based_on_component_functionality(functionality_level: float) None
abstract update_based_on_consumption(consumption: float) None
abstract update_based_on_unmet_demand(percent_of_met_demand: float) None