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

org.opentripplanner.model.transfer.StationTransferPoint Maven / Gradle / Ivy

package org.opentripplanner.model.transfer;

import java.io.Serializable;
import org.opentripplanner.transit.model.site.Station;
import org.opentripplanner.util.lang.ValueObjectToStringBuilder;

public final class StationTransferPoint implements TransferPoint, Serializable {

  private static final long serialVersionUID = 1L;

  private final Station station;

  public StationTransferPoint(Station station) {
    this.station = station;
  }

  public Station getStation() {
    return station;
  }

  @Override
  public boolean appliesToAllTrips() {
    return true;
  }

  @Override
  public int getSpecificityRanking() {
    return 0;
  }

  @Override
  public boolean isStationTransferPoint() {
    return true;
  }

  public String toString() {
    return ValueObjectToStringBuilder
      .of()
      .addText("StationTP{")
      .addObj(station.getId())
      .addText("}")
      .toString();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy