
org.opentripplanner.street.model.vertex.StationElementVertex 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;
import org.opentripplanner.transit.model.framework.FeedScopedId;
import org.opentripplanner.transit.model.site.StationElement;
public abstract class StationElementVertex extends Vertex {
private final FeedScopedId id;
private final I18NString name;
protected StationElementVertex(FeedScopedId id, double x, double y, I18NString name) {
super(x, y);
this.id = id;
this.name = name;
}
@Override
public final VertexLabel getLabel() {
return VertexLabel.feedScopedId(id);
}
/** Get the corresponding StationElement */
@Nonnull
public abstract StationElement getStationElement();
@Nonnull
@Override
public I18NString getName() {
return name;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy