MBNNGate.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. @class MBNNPosition;
  4. /** Gate represents information about a particular exit or entrance. */
  5. NS_SWIFT_NAME(Gate)
  6. __attribute__((visibility ("default")))
  7. @interface MBNNGate : NSObject
  8. // This class provides custom init which should be called
  9. - (nonnull instancetype)init NS_UNAVAILABLE;
  10. // This class provides custom init which should be called
  11. + (nonnull instancetype)new NS_UNAVAILABLE;
  12. - (nonnull instancetype)initWithId:(uint32_t)id
  13. position:(nonnull MBNNPosition *)position
  14. probability:(double)probability
  15. distance:(double)distance;
  16. /** id of the Gate, persistent to the same gate. */
  17. @property (nonatomic, readonly) uint32_t id;
  18. /** Position on the road graph with coordinates */
  19. @property (nonatomic, readonly, nonnull) MBNNPosition *position;
  20. /** Probability to enter/exit this gate, value in range [0, 1]. */
  21. @property (nonatomic, readonly) double probability;
  22. /**
  23. * Distance to the gate in meters:
  24. * - if represents entrance outside of the object - positive
  25. * - if represents entrance inside the object - negative
  26. * - if represents exit outside the object - zero
  27. * - if represents exit inside the object - positive
  28. */
  29. @property (nonatomic, readonly) double distance;
  30. @end