computeRoute

This method relies on the map data, and computes a route towards some absolute coordinate solving a TSP problem. It's up to the specific it.unibo.alchemist.model.Action calling this method to effectively move nodes along the path.

Return

A Route object describing the path the node should follow

Parameters

p1

start position

p2

end position The absolute coordinate where this node wants to move to


This method relies on the map data, and computes a route towards some absolute coordinate solving a TSP problem. It's up to the specific it.unibo.alchemist.model.Action calling this method to effectively move nodes along the path.

Return

A Route object describing the path the node should follow

Parameters

from

start position

to

end position The absolute coordinate where this node wants to move to

options

options to use. Different vehicles may use different paths, e.g. pedestrians can't go along a highway, but can walk the parks


open fun computeRoute(node: Node<T>, coord: GeoPosition): Route<GeoPosition>

This method relies on the map data, and computes a route towards some absolute coordinate solving a TSP problem. It's up to the specific it.unibo.alchemist.model.Action calling this method to effectively move nodes along the path.

Return

A Route object describing the path the node should follow

Parameters

node

The Node to move

coord

The absolute coordinate where this node wants to move to


open fun computeRoute(node: Node<T>, coord: GeoPosition, options: GraphHopperOptions): Route<GeoPosition>

This method relies on the map data, and computes a route towards some absolute coordinate solving a TSP problem. It's up to the specific it.unibo.alchemist.model.Action calling this method to effectively move nodes along the path.

Return

A Route object describing the path the node should follow

Parameters

node

The Node to move

coord

The absolute coordinate where this node wants to move to

options

The options tipe for this route


open fun computeRoute(node: Node<T>, node2: Node<T>): Route<GeoPosition>

This method relies on the map data, and computes a route towards some absolute coordinate solving a TSP problem. It's up to the specific it.unibo.alchemist.model.Action calling this method to effectively move nodes along the path. It uses the fastest path as metric.

Return

A Route object describing the path the node should follow

Parameters

node

The start node

node2

the second node's position will be used as destination