Table of Contents¶
t3co/tco/tcocalc¶
TCOCalc Objects¶
__new__¶
Creates a new instance of the TCOCalc class.
__init__¶
Python
def __init__(year_index: int,
             vehicle: Vehicle,
             scenario: Scenario,
             energy: Energy,
             payload_cap_cost_multiplier: float = None,
             cap_costs: CapitalCosts = None)
Initializes the TCOCalc instance.
Arguments:
year_indexint - The year index.vehicleVehicle - The vehicle instance.scenarioScenario - The scenario instance.energyEnergy - The energy instance.payload_cap_cost_multiplierfloat, optional - Payload capacity cost multiplier. Defaults to None.cap_costsCapitalCosts, optional - Capital costs instance. Defaults to None.
calculate_capital_costs¶
Calculates the capital costs.
Arguments:
vehicleVehicle - The vehicle instance.scenarioScenario - The scenario instance.
calculate_opportunity_costs¶
Calculates the opportunity costs.
Arguments:
vehicleVehicle - The vehicle instance.scenarioScenario - The scenario instance.energyEnergy - The energy instance.
calculate_operating_costs¶
Calculates the operating costs.
Arguments:
vehicleVehicle - The vehicle instance.scenarioScenario - The scenario instance.energyEnergy - The energy instance.
set_total_cost¶
Sets the total cost for the year.
Arguments:
scenarioScenario - The scenario instance.
set_disc_total_cost¶
Python
def set_disc_total_cost(vehicle: Vehicle,
                        scenario: Scenario,
                        payload_cap_cost_multiplier: float = None,
                        TCO_switch="DIRECT") -> None
Sets the discounted total cost for the year.
Arguments:
vehicleVehicle - The vehicle instance.scenarioScenario - The scenario instance.payload_cap_cost_multiplierfloat, optional - Payload capacity cost multiplier. Defaults to None.TCO_switchstr, optional - TCO calculation method. Defaults to "DIRECT".
__str__¶
Returns a string representation of the TCOCalc instance.
Returns:
str- String representation of the TCOCalc instance.