org.opentripplanner.transit.raptor.rangeraptor.standard.stoparrivals.AccessStopArrivalState 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;
import org.opentripplanner.transit.raptor.api.transit.RaptorTransfer;
import org.opentripplanner.transit.raptor.api.transit.RaptorTripSchedule;
import org.opentripplanner.transit.raptor.util.TimeUtils;
public class AccessStopArrivalState extends StopArrivalState {
private RaptorTransfer access;
public RaptorTransfer access() {
return access;
}
void setAccess(int time, RaptorTransfer access) {
super.setAccessTime(time, access.durationInSeconds());
this.access = access;
}
@Override
public String toString() {
return String.format(
"Access Arrival { time: %s, duration: %s }",
TimeUtils.timeToStrLong(time()),
TimeUtils.timeToStrCompact(accessDuration())
);
}
}