Interface Coordinate
- All Superinterfaces:
Comparable<Coordinate>, Coordinate, OsidPrimitive, OsidPrimitive, Serializable
A coordinate represents a position.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if uncertainty is defined for this heading.Gets theTypeof thisCoordinatewhich indicates the format of the coordinate data.longGets the number of dimensions available in this coordinate.Gets the uncertainty in the negtive direction for each value of this coordinate.Gets the uncertainty in the positive direction for each value of this coordinate.Gets the values of this coordinate.Methods inherited from interface Coordinate
compareTo, equals, getClosestBound, getFarthestBound, getOuterBound, hashCode, isCloser, isExclusive, isFarther, isInclusive, isLarger, isSmallerModifier and TypeMethodDescriptionintcompareTo(Coordinate coordinate) Compares this coordinate with the specifiedCoordinateto determine the natural order.booleanDetermines if the givenCoordinateis equal to this one.Gets the closest bound of the coordinate.Gets the farthest bound of the coordinate.Gets the outer bound of the coordinate.inthashCode()Returns a hash code value for thisCoordinate.booleanisCloser(Coordinate one, Coordinate another) Tests if oneCoordinateis closer to origin than another to thisCoordinate.booleanisExclusive(Coordinate coordinate) Tests if thisCoordinate, as specified by its uncertainty, does not overlap the givenCoordinate.booleanisFarther(Coordinate one, Coordinate another) Tests if oneCoordinateis farther from origin than another from thisCoordinate.booleanisInclusive(Coordinate coordinate) Tests if thisCoordinate, as specified by its uncertainty, completely includes the givenCoordinateranged by its uncertainty.booleanisLarger(Coordinate coordinate) Tests if thisCoordinateis greater in area than the givenCoordinate.booleanisSmaller(Coordinate coordinate) Tests if thisCoordinateis less in area than the givenCoordinate.Methods inherited from interface OsidPrimitive
toString
-
Method Details
-
getCoordinateType
Type getCoordinateType()Gets theTypeof thisCoordinatewhich indicates the format of the coordinate data.- Returns:
- the coordinate type
- Compliance:
mandatory- This method must be implemented.
-
getDimensions
long getDimensions()Gets the number of dimensions available in this coordinate.- Returns:
- the number of dimensions
- Compliance:
mandatory- This method must be implemented.
-
getValues
BigDecimal[] getValues()Gets the values of this coordinate. The size of the returned array equalsgetDimensions().- Returns:
- the coordinate values
- Compliance:
mandatory- This method must be implemented.
-
definesUncertainty
boolean definesUncertainty()Tests if uncertainty is defined for this heading.- Returns:
trueif uncertainty is defined,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getUncertaintyMinus
BigDecimal[] getUncertaintyMinus()Gets the uncertainty in the negtive direction for each value of this coordinate. The size of the returned array equalsgetDimensions().- Returns:
- the negative uncertainty values
- Compliance:
mandatory- This method must be implemented.
-
getUncertaintyPlus
BigDecimal[] getUncertaintyPlus()Gets the uncertainty in the positive direction for each value of this coordinate. The size of the returned array equalsgetDimensions().- Returns:
- the positive uncertainty values
- Compliance:
mandatory- This method must be implemented.
-