RailwayCrossingElement

class RailwayCrossingElement(val id: Int, val pathId: Int, val startOffset: Distance, val endOffset: Distance) : HorizonElement

Horizon element that contains data about a railway crossing.

To receive such elements in the horizon snapshot, specify RailwayCrossingElementType in the horizon options. Use the factory method buildHorizonOptions to build horizon options with the desired element types instead of calling the constructor directly:

val horizonOptions = buildHorizonOptions(
elementTypes = listOf(RailwayCrossingElementType, ...),
...
)

RailwayCrossingElement is a spot element. For spot elements, startOffset and endOffset values are the same.

Constructors

Link copied to clipboard
constructor(id: Int, pathId: Int, startOffset: Distance, endOffset: Distance)

Properties

Link copied to clipboard
open override val endOffset: Distance

End offset on the horizon path.

Link copied to clipboard
open override val id: Int

Identifier of this element.

Link copied to clipboard
open override val pathId: Int

Identifier of the horizon path to which this element belongs.

Link copied to clipboard
open override val startOffset: Distance

Start offset on the horizon path.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String