com.c5corp.c5utm
Class Grid

java.lang.Object
  extended by com.c5corp.c5utm.Grid

public class Grid
extends java.lang.Object

Grid is a 2d array of DemMetadata objects. It sorts them based on their relative locations.

Since:
2.0
Author:
Caroline McLaughlin Copyright 2005-2006 The Regents of the University of California

Constructor Summary
Grid(DemMetadata r)
          Constructor for Grid
 
Method Summary
 DemMetadata getDemMetadata(int x, int y)
          returnd a DemMetadata object from the Grid
 int getHeight()
          returns the hight of the Grid
 int getWidth()
          returns the width of the Grid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grid

public Grid(DemMetadata r)
Constructor for Grid

Parameters:
r - the root DemMetadata (starting point for analysis of database contents)
Method Detail

getDemMetadata

public DemMetadata getDemMetadata(int x,
                                  int y)
returnd a DemMetadata object from the Grid

Parameters:
x - the x loc
y - the y loc
Returns:
the DemMetadata

getHeight

public int getHeight()
returns the hight of the Grid

Returns:
the height

getWidth

public int getWidth()
returns the width of the Grid

Returns:
the width