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
start position
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
start position
end position The absolute coordinate where this node wants to move to
options to use. Different vehicles may use different paths, e.g. pedestrians can't go along a highway, but can walk the parks
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
The Node to move
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
The Node to move
The absolute coordinate where this node wants to move to
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. It uses the fastest path as metric.
Return
A Route object describing the path the node should follow
Parameters
The start node
the second node's position will be used as destination