Interface SpatialUnit
- All Superinterfaces:
Comparable<SpatialUnit>, Extensible, OsidPrimitive, OsidPrimitive, Serializable, SpatialUnit
A spatial unit can represent a single position or an area constructed of multiple positions or shapes. The data describing the spatial unit is defined in the record indicated by the record type.
-
Method Summary
Modifier and TypeMethodDescriptionGets a list of bounding coordinates of this spatial unit.Gets a single corrdinate to represent the center of this spatial unit.getSpatialUnitRecord(Type spatialUnitRecordType) Gets the spatial unit record corresponding to the givenSpatialUnitrecordType.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface OsidPrimitive
toStringMethods inherited from interface SpatialUnit
compareTo, equals, getInnerBound, getOuterBound, hashCode, isCloser, isExclusive, isFarther, isInclusive, isLarger, isSmallerModifier and TypeMethodDescriptionintcompareTo(SpatialUnit unit) Compares this spatial unit with the specifiedSpatialUnitto determine the natural order.booleanDetermines if the givenSpatialUnitis equal to this one.Gets the lower bound of the spatial unit.Gets the upper bound of the spatial unit.inthashCode()Returns a hash code value for thisSpatialUnitbased on the types, values, granularity, and uncertainties.booleanisCloser(SpatialUnit one, SpatialUnit another) Tests if one SpatialUnit is closer than another to this SpatialUnit.booleanisExclusive(SpatialUnit unit) Tests if this SpatialUnit, as specified by its uncertainty, does not overlap the given SpatialUnit.booleanisFarther(SpatialUnit one, SpatialUnit another) Tests if one SpatialUnit is farther than another from this SpatialUnit.booleanisInclusive(SpatialUnit unit) Tests if the SpatialUnit, as specified by its uncertainty, completely includes the given SpatialUnit ranged by its uncertainty.booleanisLarger(SpatialUnit unit) Tests if this SpatialUnit is greater than the given SpatialUnit.booleanisSmaller(SpatialUnit unit) Tests if this SpatialUnit is less than the given SpatialUnit.
-
Method Details
-
getCenterCoordinate
Coordinate getCenterCoordinate()Gets a single corrdinate to represent the center of this spatial unit.- Returns:
- the center coordinate
- Compliance:
mandatory- This method must be implemented.
-
getBoundingCoordinates
CoordinateList getBoundingCoordinates()Gets a list of bounding coordinates of this spatial unit.- Returns:
- the bounding coordinates
- Compliance:
mandatory- This method must be implemented.
-
getSpatialUnitRecord
Gets the spatial unit record corresponding to the givenSpatialUnitrecordType. ThespatialUnitRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(spatialUnitRecordType)istrue.- Parameters:
spatialUnitRecordType- the type of spatial unit record to retrieve- Returns:
- the spatial unit record
- Throws:
NullArgumentException-spatialUnitRecordTypeisnullUnsupportedException-hasRecordType(spatialUnitRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-