org.opentripplanner.model.plan.StopArrival 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.model.plan;
import org.opentripplanner.model.base.ToStringBuilder;
import java.util.Calendar;
/**
* This class is used to represent a stop arrival event mostly for intermediate visits to a stops
* along a route.
*/
public class StopArrival {
public final Place place;
/**
* The time the rider will arrive at the place.
*/
public final Calendar arrival;
/**
* The time the rider will depart the place.
*/
public final Calendar departure;
public StopArrival(Place place, Calendar arrival, Calendar departure) {
this.place = place;
this.arrival = arrival;
this.departure = departure;
}
@Override
public String toString() {
return ToStringBuilder.of(StopArrival.class)
.addCalTime("arrival",arrival)
.addCalTime("departure", departure)
.addObj("place", place)
.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy