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

org.opentripplanner.street.model.vertex.TemporaryVertex Maven / Gradle / Ivy

The newest version!
package org.opentripplanner.street.model.vertex;

/**
 * Marker interface for temporary vertices.
 * 

* Remember to use the {@link #dispose(Vertex)} to delete the temporary vertex from the main graph * after use. *

*/ public interface TemporaryVertex { /** * This method traverse the subgraph of temporary vertices, and cuts that subgraph off from the * main graph at each point it encounters a non-temporary vertexes. OTP then holds no references * to the temporary subgraph and it is garbage collected. *

* Note! If the {@code vertex} is NOT a TemporaryVertex the method returns. No action taken. *

* * @param vertex Vertex part of the temporary part of the graph. */ static void dispose(Vertex vertex) { TemporaryVertexDispose.dispose(vertex); } boolean isEndVertex(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy