Initializer
Route(String name, City source, City target, Distance distance, Period travelTime)
Parameters:
  • source

    The source vertex of the edge.

  • target

    The target vertex of the edge.

Attributes
distanceSource Codeshared Distance distance
nameSource Codeshared String name
reversedSource Codeshared actual Route reversed
Refines Edge.reversed (reversed)
sourceSource Codeshared actual City source

The source vertex of the edge.

Refines Edge.source (source)
targetSource Codeshared actual City target

The target vertex of the edge.

Refines Edge.target (target)
travelTimeSource Codeshared Period travelTime
Inherited Attributes
Attributes inherited from: Object
Attributes inherited from: Edge<Vertex,E>
isDirected, isLink, isLoop, reversed, self, source, target
Inherited Methods
Methods inherited from: Object
Methods inherited from: Edge<Vertex,E>
isEndpoint, isIncident, otherEnd
Methods inherited from: UndirectedEdge<Vertex,E>
asOutgoing