org.opentripplanner.routing.vertextype.VehicleRentalStationVertex Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
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;
}
}