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

org.opentripplanner.transit.raptor.rangeraptor.standard.stoparrivals.view.StopArrivalViewAdapter Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
package org.opentripplanner.transit.raptor.rangeraptor.standard.stoparrivals.view;

import org.opentripplanner.transit.raptor.api.transit.RaptorTripSchedule;
import org.opentripplanner.transit.raptor.api.view.ArrivalView;


/**
 * Implement the {@link ArrivalView}.
 *
 * @param  The TripSchedule type defined by the user of the raptor API.
 */
abstract class StopArrivalViewAdapter implements ArrivalView {
    private final int round;
    private final int stop;

    StopArrivalViewAdapter(int round, int stop) {
        this.round = round;
        this.stop = stop;
    }

    @Override
    public int stop() {
        return stop;
    }

    @Override
    public int round() {
        return round;
    }

    @Override
    public String toString() {
        return asString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy