Interface PilotingItf.Provider

  • All Known Implementing Classes:
    Drone
    Enclosing interface:
    PilotingItf

    public static interface PilotingItf.Provider
    An interface for an object capable of providing a PilotingItf.
    • Method Detail

      • getPilotingItf

        @Nullable
        <PI extends PilotingItf> PI getPilotingItf​(@NonNull
                                                   Class<PI> pilotingItfClass)
        Gets a piloting interface.
        Type Parameters:
        PI - type of the piloting interface class
        Parameters:
        pilotingItfClass - class of the piloting interface
        Returns:
        requested piloting interface, or null if it's not present
      • getPilotingItf

        @NonNull
        <PI extends PilotingItfRef<PI> getPilotingItf​(@NonNull
                                                        Class<PI> pilotingItfClass,
                                                        @NonNull
                                                        Ref.Observer<PI> observer)
        Gets a piloting interface and registers an observer notified each time it changes.
        Type Parameters:
        PI - type of the piloting interface class
        Parameters:
        pilotingItfClass - class of the piloting interface
        observer - observer to notify when the piloting interface changes
        Returns:
        reference to the requested piloting interface