All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.routing.impl.LoggingTraverseVisitor Maven / Gradle / Ivy

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.getDefaultName();
        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 - 2024 Weber Informatics LLC | Privacy Policy