Routify Documentation
Loading...
Searching...
No Matches
ch.routify.routing.operations.WeightOperationContext Class Reference

Public Member Functions

 WeightOperationContext (Set< CustomEdge > edges, HashMap< CustomEdge, Double > baseWeights, JSONObject requestData, String routingMode, String transportMode, String[] allowedFeatures)
 
Set< CustomEdgegetEdges ()
 
HashMap< CustomEdge, Double > getBaseWeights ()
 
JSONObject getRequestData ()
 
String getRoutingMode ()
 
String getTransportMode ()
 
String[] getAllowedFeatures ()
 
HashSet< String > getAllowedFeatureSet ()
 
double[] getCachedNoiseBounds ()
 
void setCachedNoiseBounds (double[] cachedNoiseBounds)
 
double requireDouble (String key)
 
double getDoubleOrDefault (String key, double defaultValue)
 
OptionalDouble getDouble (String key)
 

Detailed Description

Shared state passed to each weight operation during pipeline execution.

Constructor & Destructor Documentation

◆ WeightOperationContext()

ch.routify.routing.operations.WeightOperationContext.WeightOperationContext ( Set< CustomEdge > edges,
HashMap< CustomEdge, Double > baseWeights,
JSONObject requestData,
String routingMode,
String transportMode,
String[] allowedFeatures )
inline

Member Function Documentation

◆ getAllowedFeatures()

String[] ch.routify.routing.operations.WeightOperationContext.getAllowedFeatures ( )
inline

◆ getAllowedFeatureSet()

HashSet< String > ch.routify.routing.operations.WeightOperationContext.getAllowedFeatureSet ( )
inline

◆ getBaseWeights()

HashMap< CustomEdge, Double > ch.routify.routing.operations.WeightOperationContext.getBaseWeights ( )
inline

◆ getCachedNoiseBounds()

double[] ch.routify.routing.operations.WeightOperationContext.getCachedNoiseBounds ( )
inline

◆ getDouble()

OptionalDouble ch.routify.routing.operations.WeightOperationContext.getDouble ( String key)
inline

◆ getDoubleOrDefault()

double ch.routify.routing.operations.WeightOperationContext.getDoubleOrDefault ( String key,
double defaultValue )
inline

◆ getEdges()

Set< CustomEdge > ch.routify.routing.operations.WeightOperationContext.getEdges ( )
inline

◆ getRequestData()

JSONObject ch.routify.routing.operations.WeightOperationContext.getRequestData ( )
inline

◆ getRoutingMode()

String ch.routify.routing.operations.WeightOperationContext.getRoutingMode ( )
inline

◆ getTransportMode()

String ch.routify.routing.operations.WeightOperationContext.getTransportMode ( )
inline

◆ requireDouble()

double ch.routify.routing.operations.WeightOperationContext.requireDouble ( String key)
inline

◆ setCachedNoiseBounds()

void ch.routify.routing.operations.WeightOperationContext.setCachedNoiseBounds ( double[] cachedNoiseBounds)
inline

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