Routify Documentation
Loading...
Searching...
No Matches
ch.routify.routing.operations.AirOperation Class Reference
Inheritance diagram for ch.routify.routing.operations.AirOperation:
[legend]
Collaboration diagram for ch.routify.routing.operations.AirOperation:
[legend]

Public Member Functions

 AirOperation (Map< String, Object > params)
 
HashMap< CustomEdge, Double > apply (WeightOperationContext context, HashMap< CustomEdge, Double > current)
 

Detailed Description

Penalises edges with higher PM10 values based on processed air quality data. Both the slider value (impact) and the PM10 measurements are normalized to [0, 1] so that small differences remain visible while keeping the resulting factor stable across datasets.

Constructor & Destructor Documentation

◆ AirOperation()

ch.routify.routing.operations.AirOperation.AirOperation ( Map< String, Object > params)
inline

Member Function Documentation

◆ apply()

HashMap< CustomEdge, Double > ch.routify.routing.operations.AirOperation.apply ( WeightOperationContext context,
HashMap< CustomEdge, Double > current )
inline

Applies the operation to the current weight map and returns the updated weights.

Parameters
contextshared input data for the pipeline execution
currentcurrent weight map (null for the first operation)
Returns
updated weights (never null)

Implements ch.routify.routing.operations.WeightOperation.


The documentation for this class was generated from the following file: