Routify Documentation
Loading...
Searching...
No Matches
ch.routify.routing.operations.WeightOperation Interface Reference
Inheritance diagram for ch.routify.routing.operations.WeightOperation:
[legend]

Public Member Functions

HashMap< CustomEdge, Double > apply (WeightOperationContext context, HashMap< CustomEdge, Double > current)
 

Detailed Description

Contract for all weight operations that can be composed to build routing weight pipelines.

Member Function Documentation

◆ apply()

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

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)

Implemented in ch.routify.routing.operations.AirOperation, ch.routify.routing.operations.BaseWeightsOperation, ch.routify.routing.operations.FilterDisallowedOperation, ch.routify.routing.operations.GreenIndexOperation, ch.routify.routing.operations.NoiseOperation, and ch.routify.routing.operations.SlopeOperation.


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