class_segment - AiAUJI/PAUSETA GitHub Wiki

Segment

Description

Represents a section of a road in a single direction. This section is only accessible from its origin and can only be left by its destination.

Member functions

  • Segment()
  • Segment(Intersection origin, Intersection destination, double length)

Member variables

  • Intersection origin
  • Intersection destination
  • double length

Member functions description

Segment()
Default constructor.

Segment(Intersection origin, Intersection destination, double length)
Constructor.

Member variables description

Intersection origin
Where the segment is accessed from.

Intersection destination
Where the segment is left.

double length
Length in kilometers of the segment.