org.opentripplanner.ext.legacygraphqlapi.model.LegacyGraphQLStopOnRouteModel 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.ext.legacygraphqlapi.model;
import org.opentripplanner.model.Route;
import org.opentripplanner.model.StopLocation;
/**
* Class that contains a {@link Stop} on a {@link Route}.
*/
public class LegacyGraphQLStopOnRouteModel {
/**
* Stop that should be on the route but technically it's possible that it isn't or that it's
* null.
*/
private final StopLocation stop;
/**
* Route that should contain the stop but technically it's possible that the stop isn't on the
* route and it's also possible that the route is null.
*/
private final Route route;
public LegacyGraphQLStopOnRouteModel(StopLocation stop, Route route) {
this.stop = stop;
this.route = route;
}
public StopLocation getStop() {
return stop;
}
public Route getRoute() {
return route;
}
}