Class SdcRequiredTypesAndScopes

    • Method Detail

      • afterShutDown

        public void afterShutDown​(SdcDeviceContext context)
        Description copied from interface: SdcDevicePlugin
        Called after the device was shut down.

        This callback is triggered only if the device was running before, i.e., AbstractIdleService.isRunning() returned true.

        Specified by:
        afterShutDown in interface SdcDevicePlugin
        Parameters:
        context - all accessible SdcDevice data.
      • init

        public void init​(SdcDeviceContext context,
                         Set<String> scopes)
        Description copied from interface: ScopesDecorator
        Call this function to initialize the scopes decorator.

        Not doing so can cause unknown side-effects depending on the decorated implementation.

        Specified by:
        init in interface ScopesDecorator
        Parameters:
        context - the context data possibly needed by the decorator to work.
        scopes - initial set of scopes visible to the decorator.
      • appendScopesAndSendHello

        public void appendScopesAndSendHello​(Set<String> scopes)
        Description copied from interface: ScopesDecorator
        Gives the order to append the given set of scopes and send a Hello if changes ensued.

        Call this function after a context or description modification message has been processed.

        Specified by:
        appendScopesAndSendHello in interface ScopesDecorator
        Parameters:
        scopes - the scopes to update.