org.opentripplanner.transit.model.site.BoardingAreaBuilder 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
/* This file is based on code copied from project OneBusAway, see the LICENSE file for further information. */
package org.opentripplanner.transit.model.site;
import org.opentripplanner.transit.model.framework.FeedScopedId;
public final class BoardingAreaBuilder
extends StationElementBuilder {
private RegularStop parentStop;
BoardingAreaBuilder(FeedScopedId id) {
super(id);
}
BoardingAreaBuilder(BoardingArea original) {
super(original);
this.parentStop = original.getParentStop();
}
public RegularStop parentStop() {
return parentStop;
}
public BoardingAreaBuilder withParentStop(RegularStop parentStop) {
this.parentStop = parentStop;
return this;
}
@Override
BoardingAreaBuilder instance() {
return this;
}
@Override
protected BoardingArea buildFromValues() {
return new BoardingArea(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy