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

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Regenerate whenever a change is made
hashCode
Link copied to clipboard
open override fun hashCode(): Int
Regenerate whenever a change is made
toString
Link copied to clipboard
open override fun toString(): String
Returns a string representation of the object.

Properties

distance
Link copied to clipboard
val distance: Double
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

id
Link copied to clipboard
val id: Int
of the Gate, persistent to the same gate.
position
Link copied to clipboard
val position: RoadObjectPosition
on the road graph with coordinates
probability
Link copied to clipboard
val probability: Double
to enter/exit this gate, value in range 0, 1.