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...

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

## ◆ ~Junction()

 virtual ~Junction ( )
virtualdefault

Reimplemented in Junction.

## ◆ Junction()

 Junction ( )
protecteddefault

## ◆ 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.

Returns the Segment indexed by index.
index must be >= 0 and < num_segments().