ra2ce.analysis.losses.weighing_analysis package#

Submodules#

ra2ce.analysis.losses.weighing_analysis.length_weighing_analysis module#

class LengthWeighingAnalysis[source]#

Bases: WeighingAnalysisProtocol

edge_data: dict[str, Any]#
get_current_value()[source]#

Gets the current distance/time of the edge. If the edge has no distance/time attribute, it is calculated and added to the edge.

Return type:

float

Returns:

float: Current distance/time value.

ra2ce.analysis.losses.weighing_analysis.time_weighing_analysis module#

class TimeWeighingAnalysis[source]#

Bases: WeighingAnalysisProtocol

edge_data: dict[str, Any]#
get_current_value()[source]#

Gets the current distance/time of the edge. If the edge has no distance/time attribute, it is calculated and added to the edge.

Return type:

float

Returns:

float: Current distance/time value.

time_list: list#

ra2ce.analysis.losses.weighing_analysis.weighing_analysis_factory module#

class WeighingAnalysisFactory[source]#

Bases: object

static get_analysis(weighing_type)[source]#
Return type:

WeighingAnalysisProtocol

Parameters:

weighing_type (WeighingEnum)

ra2ce.analysis.losses.weighing_analysis.weighing_analysis_protocol module#

class WeighingAnalysisProtocol(*args, **kwargs)[source]#

Bases: Protocol

edge_data: dict[str, Any]#
get_current_value()[source]#

Gets the current distance/time of the edge. If the edge has no distance/time attribute, it is calculated and added to the edge.

Return type:

float

Returns:

float: Current distance/time value.

Module contents#