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

org.opentripplanner.transit.model.site.BoardingAreaBuilder Maven / Gradle / Ivy

There is a newer version: 2.6.0
Show newest version
/* 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