MBNNSubGraphDistanceInfo.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // This file is generated and will be overwritten automatically.
  2. #import <Foundation/Foundation.h>
  3. @class MBNNGate;
  4. /**
  5. * Represents the current distance to a road object of type "SubGraph".
  6. * The structure is immutable, to get an updated info you should get a new instance of the info
  7. * via ElectronicHorizonObserver.
  8. */
  9. NS_SWIFT_NAME(SubGraphDistanceInfo)
  10. __attribute__((visibility ("default")))
  11. @interface MBNNSubGraphDistanceInfo : NSObject
  12. // This class provides custom init which should be called
  13. - (nonnull instancetype)init NS_UNAVAILABLE;
  14. // This class provides custom init which should be called
  15. + (nonnull instancetype)new NS_UNAVAILABLE;
  16. - (nonnull instancetype)initWithInside:(BOOL)inside
  17. entrances:(nonnull NSArray<MBNNGate *> *)entrances
  18. exits:(nonnull NSArray<MBNNGate *> *)exits;
  19. /** `true` if position is inside subgraph, `false` otherwise */
  20. @property (nonatomic, readonly, getter=isInside) BOOL inside;
  21. /**
  22. * Distances to particular entrances, sorted by probability. Might be empty
  23. * in the case when the subgarph is very large and no entry could be
  24. * detected using most likely path.
  25. */
  26. @property (nonatomic, readonly, nonnull, copy) NSArray<MBNNGate *> *entrances;
  27. /**
  28. * Distances to particular exits, sorted by probability. Might be empty in
  29. * the case when the subgraph is very large and no exit could be detected
  30. * using most probable path.
  31. */
  32. @property (nonatomic, readonly, nonnull, copy) NSArray<MBNNGate *> *exits;
  33. @end