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, weightLowerBound
protected CarRentalStation station
public RentACarAbstractEdge(Vertex v, CarRentalStation 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 boolean hasBogusName()
hasBogusName
in class Edge
public 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.