Package uk.ac.rdg.resc.edal.domain
Class SimpleGridDomain
- java.lang.Object
-
- uk.ac.rdg.resc.edal.domain.SimpleGridDomain
-
- All Implemented Interfaces:
DiscreteDomain<GeoPosition,GridCell4D>
,Domain<GeoPosition>
,GridDomain
public class SimpleGridDomain extends Object implements GridDomain
- Author:
- Guy Griffiths
-
-
Constructor Summary
Constructors Constructor Description SimpleGridDomain(HorizontalGrid hGrid, VerticalAxis vAxis, TimeAxis tAxis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(GeoPosition position)
Array<GridCell4D>
getDomainObjects()
Returns anArray
of domain objects that comprise this domain.HorizontalGrid
getHorizontalGrid()
TimeAxis
getTimeAxis()
VerticalAxis
getVerticalAxis()
long
size()
-
-
-
Constructor Detail
-
SimpleGridDomain
public SimpleGridDomain(HorizontalGrid hGrid, VerticalAxis vAxis, TimeAxis tAxis)
-
-
Method Detail
-
getDomainObjects
public Array<GridCell4D> getDomainObjects()
Description copied from interface:DiscreteDomain
Returns anArray
of domain objects that comprise this domain.- Specified by:
getDomainObjects
in interfaceDiscreteDomain<GeoPosition,GridCell4D>
-
contains
public boolean contains(GeoPosition position)
- Specified by:
contains
in interfaceDomain<GeoPosition>
- Returns:
- true if the given position is contained within this domain.
-
getHorizontalGrid
public HorizontalGrid getHorizontalGrid()
- Specified by:
getHorizontalGrid
in interfaceGridDomain
- Returns:
- the horizontal component of this domain
-
getVerticalAxis
public VerticalAxis getVerticalAxis()
- Specified by:
getVerticalAxis
in interfaceGridDomain
- Returns:
- the vertical component of this domain
-
getTimeAxis
public TimeAxis getTimeAxis()
- Specified by:
getTimeAxis
in interfaceGridDomain
- Returns:
- the time component of this domain
-
size
public long size()
- Specified by:
size
in interfaceGridDomain
- Returns:
- the size of this domain
-
-