Package uk.ac.rdg.resc.edal.domain
Class PointDomain
- java.lang.Object
-
- uk.ac.rdg.resc.edal.domain.PointDomain
-
- All Implemented Interfaces:
DiscreteDomain<GeoPosition,GeoPosition>
,DiscretePointDomain<GeoPosition>
,Domain<GeoPosition>
public class PointDomain extends Object implements DiscretePointDomain<GeoPosition>
The domain of aTrajectoryFeature
: a set of positions in space and time.- Author:
- Guy Griffiths, Jon Blower
-
-
Constructor Summary
Constructors Constructor Description PointDomain(GeoPosition position)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(GeoPosition position)
boolean
equals(Object obj)
Array1D<GeoPosition>
getDomainObjects()
Returns anArray
of domain objects that comprise this domain.int
hashCode()
-
-
-
Constructor Detail
-
PointDomain
public PointDomain(GeoPosition position)
-
-
Method Detail
-
getDomainObjects
public Array1D<GeoPosition> getDomainObjects()
Description copied from interface:DiscreteDomain
Returns anArray
of domain objects that comprise this domain.- Specified by:
getDomainObjects
in interfaceDiscreteDomain<GeoPosition,GeoPosition>
-
contains
public boolean contains(GeoPosition position)
- Specified by:
contains
in interfaceDomain<GeoPosition>
- Returns:
- true if the given position is contained within this domain.
-
-