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

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

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

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));
  }

  @Override
  public I18NString getName() {
    return I18NString.of(label);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy