
org.opentripplanner.street.model.vertex.LabelledIntersectionVertex 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
The newest version!
package org.opentripplanner.street.model.vertex;
import javax.annotation.Nonnull;
import org.opentripplanner.framework.i18n.I18NString;
/**
* An intersection vertex that has a label that is generated outside of it rather than
* derived from its properties.
*/
public class LabelledIntersectionVertex extends IntersectionVertex {
private final String label;
public LabelledIntersectionVertex(
@Nonnull String label,
double x,
double y,
boolean hasHighwayTrafficLight,
boolean hasCrossingTrafficLight
) {
super(x, y, hasHighwayTrafficLight, hasCrossingTrafficLight);
this.label = label;
}
@Override
public VertexLabel getLabel() {
return VertexLabel.string(label);
}
@Nonnull
@Override
public I18NString getName() {
return I18NString.of(label);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy