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

Public Member Functions

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

Detailed Description

Penalises edges whose slope exceeds the requested limit.

Constructor & Destructor Documentation

◆ SlopeOperation()

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

Member Function Documentation

◆ apply()

HashMap< CustomEdge, Double > ch.routify.routing.operations.SlopeOperation.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: