maliput
Junction Class Referenceabstract

Detailed Description

A Junction is a closed set of Segments which have physically coplanar road surfaces, in the sense that RoadPositions with the same h value (height above surface) in the domains of two Segments map to the same InertialPosition.

The Segments need not be directly connected to one another in the network topology.

Junctions are grouped by RoadGeometry.

#include <include/maliput/api/junction.h>

Inheritance diagram for Junction:
[legend]

Public Member Functions

virtual ~Junction ()=default
 
JunctionId id () const
 Returns the persistent identifier. More...
 
const RoadGeometryroad_geometry () const
 Returns the RoadGeometry to which this Junction belongs. More...
 
int num_segments () const
 Returns the number of Segments in the Junction. More...
 
const Segmentsegment (int index) const
 Returns the Segment indexed by index. More...
 

Protected Member Functions

 Junction ()=default
 

Constructor & Destructor Documentation

◆ ~Junction()

virtual ~Junction ( )
virtualdefault

Reimplemented in Junction.

◆ Junction()

Junction ( )
protecteddefault

Member Function Documentation

◆ id()

JunctionId id ( ) const

Returns the persistent identifier.

◆ num_segments()

int num_segments ( ) const

Returns the number of Segments in the Junction.

Return value is non-negative.

◆ road_geometry()

const RoadGeometry* road_geometry ( ) const

Returns the RoadGeometry to which this Junction belongs.

◆ segment()

const Segment* segment ( int  index) const

Returns the Segment indexed by index.

Precondition
index must be >= 0 and < num_segments().

The documentation for this class was generated from the following file: