public abstract class RentACarAbstractEdge extends Edge
Edge.ValidVertexTypes| Modifier and Type | Field and Description |
|---|---|
protected CarRentalStation |
station |
| Constructor and Description |
|---|
RentACarAbstractEdge(Vertex v,
CarRentalStation 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
|
CarRentalStation |
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, weightLowerBoundprotected CarRentalStation station
public RentACarAbstractEdge(Vertex v, CarRentalStation station)
public double getDistance()
getDistance in class Edgepublic org.locationtech.jts.geom.LineString getGeometry()
getGeometry in class Edgepublic String getName(Locale locale)
Edgepublic boolean hasBogusName()
hasBogusName in class Edgepublic CarRentalStation getStation()
protected boolean hasCompatibleNetworks(Set<String> stationNetworks, Set<String> rentedNetworks)
stationNetworks - The station where we want to drop the car off.rentedNetworks - The set of networks of the station we rented the car from.Copyright © 2020. All rights reserved.