computeRoute

abstract 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


abstract 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


abstract fun computeRoute(node: Node<T>, coord: GeoPosition, options: O): 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


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


abstract fun computeRoute(from: GeoPosition, to: GeoPosition, options: O): 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

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