Package rasj

Class RasStorageLayout

java.lang.Object
rasj.RasStorageLayout

public class RasStorageLayout extends 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.
  • Constructor Details

    • 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 Details

    • 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
    • setTileDomain

      Sets the tiling-domain for this storage layout object and resets the tile-size to null.
      Parameters:
      domain - the tiling-domain
      Throws:
      RasResultIsNoIntervalException
      RasStreamInputOverflowException
      RasIndexOutOfBoundsException
    • 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 String toString()
      Returns a string representation of this class.
      Overrides:
      toString in class Object