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

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

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 - 2024 Weber Informatics LLC | Privacy Policy