org.opentripplanner.transit.raptor.rangeraptor.standard.stoparrivals.view.StopArrivalViewAdapter 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
package org.opentripplanner.transit.raptor.rangeraptor.standard.stoparrivals.view;
import org.opentripplanner.transit.raptor.api.transit.RaptorTripSchedule;
import org.opentripplanner.transit.raptor.api.view.ArrivalView;
/**
* Implement the {@link ArrivalView}.
*
* @param The TripSchedule type defined by the user of the raptor API.
*/
abstract class StopArrivalViewAdapter implements ArrivalView {
private final int round;
private final int stop;
StopArrivalViewAdapter(int round, int stop) {
this.round = round;
this.stop = stop;
}
@Override
public int stop() {
return stop;
}
@Override
public int round() {
return round;
}
@Override
public String toString() {
return asString();
}
}