@Override public Path calcLeastCostPath(final Node fromNode, final Node toNode, final double startTime, final Person person, final Vehicle vehicle) { this.controlCounter = 0; // reset counter for each calculated path! if (this.landmarks.length >= 2) { initializeActiveLandmarks(fromNode, toNode, 2); } else { initializeActiveLandmarks(fromNode, toNode, this.landmarks.length); } return super.calcLeastCostPath(fromNode, toNode, startTime, person, vehicle); }