Interface Heading
- All Superinterfaces:
Comparable<Heading>, Heading, OsidPrimitive, OsidPrimitive, Serializable
A heading represents a direction.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if uncertainty is defined for this heading.longGets the number of dimensions of motion.Gets theTypeof thisHeadingwhich indicates the format of the heading values.Gets the uncertainty in the negtive direction for each value of this heading.Gets the uncertainty in the positive direction for each value of this heading.Gets the values of this heading The size of the returned array is typically one less thangetDimensions().Methods inherited from interface Heading
compareTo, equals, getOuterBound, hashCode, isExclusive, isInclusiveModifier and TypeMethodDescriptionintCompares this heading with the specifiedHeadingto determine the natural order.booleanDetermines if the givenHeadingis equal to this one.Heading[]Gets the outer bounds of the heading.inthashCode()Returns a hash code value for thisHeading.booleanisExclusive(Heading heading) Tests if thisHeading, as specified by its uncertainty, does not overlap the givenHeading.booleanisInclusive(Heading heading) Tests if thisHeading, as specified by its uncertainty, completely includes the givenHeadingranged by its uncertainty.Methods inherited from interface OsidPrimitive
toString
-
Method Details
-
getHeadingType
Type getHeadingType()Gets theTypeof thisHeadingwhich indicates the format of the heading values.- Returns:
- the coordinate type
- Compliance:
mandatory- This method must be implemented.
-
getDimensions
long getDimensions()Gets the number of dimensions of motion.- Returns:
- the number of dimensions
- Compliance:
mandatory- This method must be implemented.
-
getValues
BigDecimal[] getValues()Gets the values of this heading The size of the returned array is typically one less thangetDimensions().- Returns:
- the heading 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 heading. The size of the returned array is typically one less thangetDimensions().- 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 heading. The size of the returned array is typically one less thangetDimensions().- Returns:
- the positive uncertainty values
- Compliance:
mandatory- This method must be implemented.
-