|
Routify Documentation
|
Public Member Functions | |
| GreenIndexOperation (Map< String, Object > params) | |
| HashMap< CustomEdge, Double > | apply (WeightOperationContext context, HashMap< CustomEdge, Double > current) |
Adjusts weights to favour edges with higher green index. The slider value from the request is interpreted as a percentage (0–100) and normalized to [0, 1], while the green index provided by the graph is already in [0, 1] but is clamped defensively.
|
inline |
|
inline |
Applies the operation to the current weight map and returns the updated weights.
| context | shared input data for the pipeline execution |
| current | current weight map (null for the first operation) |
Implements ch.routify.routing.operations.WeightOperation.