Package rasj

Class RasStorageLayout


  • public class RasStorageLayout
    extends java.lang.Object
    
     PURPOSE:
     This class is used to express the storage options for MDD objects.
     In the current version, either the tile-size (for example 256000 bytes) or the
     tiling-domain (for example "[0:127,0:511]") can be specified. If
     neither is done, the default tile-size will be 128 kBytes.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      RasMInterval getSpatialDomain()
      Returns the current tiling-domain of this storage layout object.
      int getTileSize()
      Returns the current tile-size (in bytes).
      boolean isCompatible​(RasMInterval domain)
      This method tests if the current storageLayout object is compatible to a given domain.
      void setTileDomain​(java.lang.String domain)
      Sets the tiling-domain for this storage layout object and resets the tile-size to null.
      void setTileSize​(int size)
      Sets the tile-size (in bytes) and resets the tiling-domain to null.
      java.lang.String toString()
      Returns a string representation of this class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RasStorageLayout

        public RasStorageLayout()
        Default constructor.
      • RasStorageLayout

        public RasStorageLayout​(RasStorageLayout stl)
        Copy constructor taking another storage layout object as a parameter.
        Parameters:
        stl - the sorage layout object to be copied
    • Method Detail

      • getSpatialDomain

        public final RasMInterval getSpatialDomain()
        Returns the current tiling-domain of this storage layout object.
        Returns:
        the tiling-domain of this storage layout object
      • setTileSize

        public void setTileSize​(int size)
        Sets the tile-size (in bytes) and resets the tiling-domain to null.
        Parameters:
        size - the tile-size (in bytes)
      • getTileSize

        public final int getTileSize()
        Returns the current tile-size (in bytes).
        Returns:
        the tile-size
      • isCompatible

        public boolean isCompatible​(RasMInterval domain)
        This method tests if the current storageLayout object is compatible to a given domain.
        Parameters:
        domain - the domain to be compared
        Returns:
        true if the tiling-domain of this storage layout object is either null or has the same number of dimensions as the given domain, otherwise false
      • toString

        public java.lang.String toString()
        Returns a string representation of this class.
        Overrides:
        toString in class java.lang.Object