
org.opentripplanner.model.plan.TripPlan Maven / Gradle / Ivy
package org.opentripplanner.model.plan;
import java.util.Collection;
import java.util.Date;
import java.util.List;
/**
* A TripPlan is a set of ways to get from point A to point B at time T.
*/
public class TripPlan {
/** The time and date of travel */
public final Date date;
/** The origin */
public final Place from;
/** The destination */
public final Place to;
public final List itineraries;
public TripPlan(Place from, Place to, Date date, Collection itineraries) {
this.from = from;
this.to = to;
this.date = date;
this.itineraries = List.copyOf(itineraries);
}
@Override
public String toString() {
return "TripPlan{" + "date=" + date + ", from=" + from + ", to=" + to
+ ", itineraries=" + itineraries + '}';
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy