org.deegree_impl.model.cv
Class Directory_Impl

java.lang.Object
  extended byorg.deegree_impl.model.cv.Directory_Impl
All Implemented Interfaces:
Directory

class Directory_Impl
extends java.lang.Object
implements Directory

Version:
$Revision: 1.9 $
Author:
Andreas Poth

Field Summary
private  GM_Envelope boundingBox
           
private  Directory[] directories
           
private  java.lang.String[] extensions
           
private  double heightCRS
           
private  Level level
           
private  java.lang.String resource
           
private  double widthCRS
           
 
Constructor Summary
(package private) Directory_Impl(java.lang.String resource, GM_Envelope boundingBox, Directory[] directories, java.lang.String[] extensions, double widthCRS, double heightCRS)
          Creates a new instance of Directory_Impl
(package private) Directory_Impl(java.lang.String resource, GM_Envelope boundingBox, Level level, Directory[] directories, java.lang.String[] extensions, double widthCRS, double heightCRS)
          Creates a new instance of Directory_Impl
(package private) Directory_Impl(java.lang.String resource, GM_Envelope boundingBox, Level level, java.lang.String[] extensions, double widthCRS, double heightCRS)
          Creates a new instance of Directory_Impl
 
Method Summary
 GM_Envelope getBoundingBox()
          returns the bounding box of the Directory
 Directory[] getDirectories()
          if the tiles are ordered at a quad tree or something like this an instance of Directory will contain one or more Directory instances with a smaller bounding box.
 java.lang.String[] getExtensions()
          returns the file extension known by the directory
 double getHeightCRS()
          returns the height of the tiles contained within the diirectory in measurement of its CRS
 Level getLevel()
          returns the embeded Level if one exists. otherwise null will be returned.
 java.lang.String getResource()
          returns the resource name of the directory
 Tile[] getTiles()
          returns all Tiles containted within the directory that fits the submitted bounding box
 Tile[] getTiles(GM_Envelope bbox)
          returns all Tiles containted within the directory that fits the submitted bounding box
 double getWidthCRS()
          returns the width of the tiles contained within the diirectory in measurement of its CRS
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

boundingBox

private GM_Envelope boundingBox

level

private Level level

resource

private java.lang.String resource

directories

private Directory[] directories

extensions

private java.lang.String[] extensions

heightCRS

private double heightCRS

widthCRS

private double widthCRS
Constructor Detail

Directory_Impl

Directory_Impl(java.lang.String resource,
               GM_Envelope boundingBox,
               Level level,
               java.lang.String[] extensions,
               double widthCRS,
               double heightCRS)
Creates a new instance of Directory_Impl


Directory_Impl

Directory_Impl(java.lang.String resource,
               GM_Envelope boundingBox,
               Directory[] directories,
               java.lang.String[] extensions,
               double widthCRS,
               double heightCRS)
Creates a new instance of Directory_Impl


Directory_Impl

Directory_Impl(java.lang.String resource,
               GM_Envelope boundingBox,
               Level level,
               Directory[] directories,
               java.lang.String[] extensions,
               double widthCRS,
               double heightCRS)
Creates a new instance of Directory_Impl

Method Detail

getBoundingBox

public GM_Envelope getBoundingBox()
returns the bounding box of the Directory

Specified by:
getBoundingBox in interface Directory

getDirectories

public Directory[] getDirectories()
if the tiles are ordered at a quad tree or something like this an instance of Directory will contain one or more Directory instances with a smaller bounding box.

Specified by:
getDirectories in interface Directory

getLevel

public Level getLevel()
returns the embeded Level if one exists. otherwise null will be returned.

Specified by:
getLevel in interface Directory

getTiles

public Tile[] getTiles(GM_Envelope bbox)
                throws CoverageCreationException
returns all Tiles containted within the directory that fits the submitted bounding box

Specified by:
getTiles in interface Directory
Throws:
CoverageCreationException

getResource

public java.lang.String getResource()
returns the resource name of the directory

Specified by:
getResource in interface Directory

getExtensions

public java.lang.String[] getExtensions()
returns the file extension known by the directory

Specified by:
getExtensions in interface Directory

getTiles

public Tile[] getTiles()
                throws CoverageCreationException
returns all Tiles containted within the directory that fits the submitted bounding box

Specified by:
getTiles in interface Directory
Throws:
CoverageCreationException

getHeightCRS

public double getHeightCRS()
returns the height of the tiles contained within the diirectory in measurement of its CRS

Specified by:
getHeightCRS in interface Directory

getWidthCRS

public double getWidthCRS()
returns the width of the tiles contained within the diirectory in measurement of its CRS

Specified by:
getWidthCRS in interface Directory