Interface NetworkLayers<T extends NetworkLayer>

    • Method Detail

      • get

        T get​(Mode mode)
        Find the layer that supports the passed in mode. Since a mode is only allowed to be supported by a single layer, this should yield the correct result. If multiple layers support the same mode for some reason, this method returns the first layer that supports the mode
        Parameters:
        mode - to find the layer for
        Returns:
        first matching layer
      • getByXmlId

        T getByXmlId​(String xmlId)
        Find the layer based on non-indexed XML id rather than the managed internal id.
        Parameters:
        xmlId - to find the layer for
        Returns:
        first matching layer
      • isEachLayerEmpty

        default boolean isEachLayerEmpty()
        Check if each layer itself is empty
        Returns:
        true when all empty false otherwise
      • getLayersOfType

        default <U extends NetworkLayerCollection<U> getLayersOfType()
        Allows you to collect all registered layers of a specific derived transport layer type
        Type Parameters:
        U - derived type of type T
        Returns:
        list of layers of desired type, empty list when none exist
      • getSupportedModes

        default Collection<Mode> getSupportedModes()
        Collect all distinct supported modes across all network layers in newly created collection
        Returns:
        supported modes
      • get

        default T get​(PredefinedModeType predefinedModeType)
        Find layer that supports the given predefined mode type (not custom mode type)
        Parameters:
        predefinedModeType - to check for
        Returns:
        found layers