MBNNElectronicHorizonEdge.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. NS_SWIFT_NAME(ElectronicHorizonEdge)
  4. __attribute__((visibility ("default")))
  5. @interface MBNNElectronicHorizonEdge : NSObject
  6. // This class provides custom init which should be called
  7. - (nonnull instancetype)init NS_UNAVAILABLE;
  8. // This class provides custom init which should be called
  9. + (nonnull instancetype)new NS_UNAVAILABLE;
  10. - (nonnull instancetype)initWithId:(uint64_t)id
  11. level:(uint8_t)level
  12. probability:(double)probability
  13. out:(nonnull NSArray<MBNNElectronicHorizonEdge *> *)out;
  14. /** Edge id of the road graph (internal; don't confuse with wayId) */
  15. @property (nonatomic, readonly) uint64_t id;
  16. /**
  17. * The level of the Edge (0 being the mpp, 1 branches of the mpp,
  18. * 2 branches of level 1 branches, etc)
  19. */
  20. @property (nonatomic, readonly) uint8_t level;
  21. /** The probability for this edge in percentage */
  22. @property (nonatomic, readonly) double probability;
  23. /**
  24. * The outgoing Edges.
  25. * NB: MPP can be splitted at some point if some of edges have low probability difference(+/- 0.05),
  26. * i.e. `out` can contain more than 1 edges with the level 0.
  27. * Currently we have a limitation for maximum 1 split per electronic horizon.
  28. */
  29. @property (nonatomic, readonly, nonnull, copy) NSArray<MBNNElectronicHorizonEdge *> *out;
  30. @end