Class RoutedServicesLayerImpl

    • Constructor Detail

      • RoutedServicesLayerImpl

        public RoutedServicesLayerImpl​(IdGroupingToken tokenId,
                                       ServiceNetworkLayer parentLayer)
        Constructor
        Parameters:
        tokenId - to use for id generation
        parentLayer - the parent layer these routed services are built upon
      • RoutedServicesLayerImpl

        public RoutedServicesLayerImpl​(RoutedServicesLayerImpl routedServicesLayerImpl)
        Copy constructor
        Parameters:
        routedServicesLayerImpl - to copy
    • Method Detail

      • generateId

        protected static long generateId​(IdGroupingToken tokenId)
        Generate id for instances of this class based on the token and class identifier
        Parameters:
        tokenId - to use
        Returns:
        generated id
      • recreateManagedIds

        public long recreateManagedIds​(IdGroupingToken tokenId)
        recreate the internal id(s) and set them including the Idable id
        Specified by:
        recreateManagedIds in interface ManagedId
        Parameters:
        tokenId - to use
        Returns:
        the updated internal id
      • getServicesByMode

        public RoutedModeServices getServicesByMode​(Mode mode)
        The services for a given mode available on this layer. If no services are yet available an empty instance is provided
        Specified by:
        getServicesByMode in interface RoutedServicesLayer
        Parameters:
        mode - to obtain services for
        Returns:
        services by mode, empty instance if none have been registered yet
      • logInfo

        public void logInfo​(String prefix)
        invoked by entities inquiring about general information about the layer to display to users
        Specified by:
        logInfo in interface RoutedServicesLayer
        Parameters:
        prefix - optional prefix to include in each line of logging