Gate

class Gate

Gate represents information about a particular exit or entrance.

Parameters

id

of the Gate, persistent to the same gate.

position

on the road graph with coordinates

probability

to enter/exit this gate, value in range 0, 1. Warning: currently this field contains 1.0 for all gates, would be improved in the future.

distance

distance to the gate in meters:

  • if represents entrance outside the object - positive

  • if represents entrance inside the object - negative

  • if represents exit outside the object - zero

  • if represents exit inside the object - positive

Functions

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

Regenerate whenever a change is made

Link copied to clipboard
open override fun hashCode(): Int

Regenerate whenever a change is made

Link copied to clipboard
open override fun toString(): String

Returns a string representation of the object.

Properties

Link copied to clipboard
val distance: Double
Link copied to clipboard
val id: Int
Link copied to clipboard
val position: RoadObjectPosition
Link copied to clipboard
val probability: Double