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

org.opentripplanner.routing.vertextype.VehicleRentalStationVertex Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
package org.opentripplanner.routing.vertextype;

import org.opentripplanner.routing.vehicle_rental.VehicleRentalPlace;
import org.opentripplanner.routing.core.TraverseMode;
import org.opentripplanner.routing.graph.Graph;
import org.opentripplanner.routing.graph.Vertex;

/**
 * A vertex for a vehicle rental station.
 * It is connected to the streets by a StreetVehicleRentalLink.
 * To allow transitions on and off a bike, it has VehicleRentalEdge loop edges.
 *
 * @author laurent
 *
 */
public class VehicleRentalStationVertex extends Vertex {

    private static final long serialVersionUID = 2L;

    private VehicleRentalPlace station;

    public VehicleRentalStationVertex(Graph g, VehicleRentalPlace station) {
        //FIXME: raw_name can be null if bike station is made from graph updater
        super(g, "vehicle rental station " + station.getId(), station.getLongitude(), station.getLatitude(), station.getName());
        this.station = station;
    }

    public VehicleRentalPlace getStation() {
        return station;
    }

    public void setStation(VehicleRentalPlace station) {
        this.station = station;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy