All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.model.plan.TripPlan Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy