Interface LayerManager

All Known Implementing Classes:
LayerManagerImpl

public interface LayerManager
Manages Layers. Implementations of this interface should create new layers only through the `newTopLayer` method.
  • Method Summary

    Modifier and Type
    Method
    Description
    getLayer(long id)
    Returns the layer with the given id.
    Returns the current top layer.
    Lists all layer IDs that are currently managed.
    Closes the current top layer (if present) and creates a new top layer.
  • Method Details

    • newTopLayer

      Layer newTopLayer() throws IOException
      Closes the current top layer (if present) and creates a new top layer. The old top layer will be scheduled for archiving.
      Throws:
      IOException
    • getTopLayer

      Layer getTopLayer()
      Returns the current top layer.
      Returns:
      the current top layer
    • getLayer

      Layer getLayer(long id)
      Returns the layer with the given id.
      Parameters:
      id - the id of the layer
      Returns:
      the layer
    • listLayerIds

      List<Long> listLayerIds() throws IOException
      Lists all layer IDs that are currently managed.
      Returns:
      a list of layer IDs
      Throws:
      IOException - if an I/O error occurs