Package rasj
Class RasStorageLayout
- java.lang.Object
-
- rasj.RasStorageLayout
-
public class RasStorageLayout extends java.lang.ObjectPURPOSE: 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 Summary
Constructors Constructor Description RasStorageLayout()Default constructor.RasStorageLayout(RasStorageLayout stl)Copy constructor taking another storage layout object as a parameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RasMIntervalgetSpatialDomain()Returns the current tiling-domain of this storage layout object.intgetTileSize()Returns the current tile-size (in bytes).booleanisCompatible(RasMInterval domain)This method tests if the current storageLayout object is compatible to a given domain.voidsetTileDomain(java.lang.String domain)Sets the tiling-domain for this storage layout object and resets the tile-size to null.voidsetTileSize(int size)Sets the tile-size (in bytes) and resets the tiling-domain to null.java.lang.StringtoString()Returns a string representation of this class.
-
-
-
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
-
setTileDomain
public void setTileDomain(java.lang.String domain) throws RasResultIsNoIntervalException, RasStreamInputOverflowException, RasIndexOutOfBoundsExceptionSets the tiling-domain for this storage layout object and resets the tile-size to null.- Parameters:
domain- the tiling-domain- Throws:
RasResultIsNoIntervalExceptionRasStreamInputOverflowExceptionRasIndexOutOfBoundsException
-
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:
toStringin classjava.lang.Object
-
-