org.opentripplanner.routing.impl.LoggingTraverseVisitor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
package org.opentripplanner.routing.impl;
import org.opentripplanner.routing.algorithm.astar.TraverseVisitor;
import org.opentripplanner.routing.core.State;
import org.opentripplanner.routing.graph.Edge;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class LoggingTraverseVisitor implements TraverseVisitor {
private static final Logger LOG = LoggerFactory.getLogger(LoggingTraverseVisitor.class);
@Override
public void visitEdge(Edge edge, State state) {
String nextName = edge.getName();
LOG.info("Traversing edge {}", nextName);
}
@Override
public void visitVertex(State state) {
LOG.info("Visiting {}", state);
}
@Override
public void visitEnqueue(State state) {
LOG.info("Enqueing {}", state);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy