Interface RoutedServicesLayer

    • Field Detail

      • ROUTED_SERVICES_LAYER_ID_CLASS

        static final Class<RoutedServicesLayer> ROUTED_SERVICES_LAYER_ID_CLASS
        id class for generating ids
    • Method Detail

      • getIdClass

        default Class<RoutedServicesLayer> getIdClass()
        Each managed id class is expected to generate its ids based on its class signature. To be able to generate the correct id the class used for id generation is to be provided via this method call.
        Specified by:
        getIdClass in interface ManagedId
        Returns:
        idClass to use for generating ids for instances of this idable derived class
      • logInfo

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

        ServiceNetworkLayer getParentLayer()
        The parent service layer of this routed services layer
        Returns:
        parent layer
      • getServicesByMode

        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
        Parameters:
        mode - to obtain services for
        Returns:
        services by mode, empty instance if none have been registered yet
      • resetChildManagedIdEntities

        default void resetChildManagedIdEntities()
        Each class that has a managed id, should be able to reset any children that themselves are managedIdEntity containers. This ensures that when resetting such a container any child containers are also reset
        Specified by:
        resetChildManagedIdEntities in interface ManagedId