/** * Initializes the first node of a route. * * @param fromNode * The Node to be initialized. * @param toNode * The Node at which the route should end. * @param pendingNodes * The pending nodes so far. * @param toNode * The Node at which the route should end. * @param startTime * The time we start routing. */ @Override protected void initFromNode(final Node fromNode, final Node toNode, final double startTime, final RouterPriorityQueue<Node> pendingNodes) { AStarNodeData data = getData(fromNode); visitNode(fromNode, data, pendingNodes, startTime, 0, null); data.setExpectedRemainingCost(estimateRemainingTravelCost(fromNode, toNode)); }
if (!data.isVisited(getIterationId())) { double remainingTravelCost = estimateRemainingTravelCost(n, toNode); visitNode(n, data, pendingNodes, currTime + travelTime, currCost + travelCost, remainingTravelCost, l); return true;