public abstract class RentAVehicleAbstractEdge extends Edge
Edge.ValidVertexTypes
Modifier and Type | Field and Description |
---|---|
protected VehicleRentalStation |
station |
Constructor and Description |
---|
RentAVehicleAbstractEdge(Vertex v,
VehicleRentalStation station) |
Modifier and Type | Method and Description |
---|---|
double |
getDistance() |
org.locationtech.jts.geom.LineString |
getGeometry() |
String |
getName()
Gets english localized name
|
String |
getName(Locale locale)
Gets wanted localization
|
VehicleRentalStation |
getStation() |
boolean |
hasBogusName() |
protected boolean |
hasCompatibleNetworks(Set<String> stationNetworks,
Set<String> rentedNetworks) |
getAzimuth, getDirection, getDisplayGeometry, getFromVertex, getId, getToVertex, getTrip, getValidVertexTypes, hashCode, isEquivalentTo, isPartial, isReverseOf, isRoundabout, optimisticTraverse, timeLowerBound, toString, traverse, vertexTypesValid, weightLowerBound
protected VehicleRentalStation station
public RentAVehicleAbstractEdge(Vertex v, VehicleRentalStation station)
public double getDistance()
getDistance
in class Edge
public org.locationtech.jts.geom.LineString getGeometry()
getGeometry
in class Edge
public String getName(Locale locale)
Edge
public VehicleRentalStation getStation()
public boolean hasBogusName()
hasBogusName
in class Edge
protected boolean hasCompatibleNetworks(Set<String> stationNetworks, Set<String> rentedNetworks)
stationNetworks
- The station where we want to drop the vehicle off.rentedNetworks
- The set of networks of the station we rented the vehicle from.Copyright © 2020. All rights reserved.