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

Public Member Functions

 CallableRouting (CustomAsSubgraph< CustomVertex, CustomEdge > _graph, JSONObject _data, Tuple2< CustomVertex, CustomVertex > _endpoints, HashMap< CustomEdge, Double > _weights, String _routing_mode, String _transport_mode, boolean _directions, boolean _traveltime, RoutingModeService routingModeService, String[] allowedFeatures)
 
CustomRoute call () throws Exception
 

Detailed Description

The CallableRouting class implements the Callable interface, providing a way to compute routing asynchronously. It encapsulates the routing calculation logic, allowing it to be executed in parallel or on a separate thread, returning a JSONObject that contains the routing result.

Constructor & Destructor Documentation

◆ CallableRouting()

ch.routify.routing.CallableRouting.CallableRouting ( CustomAsSubgraph< CustomVertex, CustomEdge > _graph,
JSONObject _data,
Tuple2< CustomVertex, CustomVertex > _endpoints,
HashMap< CustomEdge, Double > _weights,
String _routing_mode,
String _transport_mode,
boolean _directions,
boolean _traveltime,
RoutingModeService routingModeService,
String[] allowedFeatures )
inline

Constructs a new instance of CallableRouting with the specified parameters.

Parameters
_graphThe graph on which to perform the routing.
_dataAdditional data required for the routing calculation.
_endpointsThe starting and ending vertices for the routing.
_weightsThe weights associated with the edges in the graph.
_routing_modeThe routing mode to be used.
_transport_modeThe transport mode to be used for routing.
_directionsWhether to include directions in the response.
_traveltimeWhether to include travel time in the response.

Member Function Documentation

◆ call()

CustomRoute ch.routify.routing.CallableRouting.call ( ) throws Exception
inline

Executes the routing calculation.

Returns
A JSONObject containing the results of the routing calculation.
Exceptions
Exceptionif an error occurs during the routing calculation.

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