
org.opentripplanner.street.model.vertex.ElevatorOnboardVertex 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 javax.annotation.Nullable;
import org.opentripplanner.framework.i18n.I18NString;
public class ElevatorOnboardVertex extends StreetVertex {
private static final String LABEL_TEMPLATE = "elevator_onboard/%s/%s";
private final String level;
private final String label;
public ElevatorOnboardVertex(Vertex sourceVertex, String label, @Nullable String level) {
super(sourceVertex.getX(), sourceVertex.getY());
this.level = level;
this.label = label;
}
@Override
public VertexLabel getLabel() {
return VertexLabel.string(LABEL_TEMPLATE.formatted(label, level));
}
@Nonnull
@Override
public I18NString getName() {
return I18NString.of(label);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy