Interface Speed
- All Superinterfaces:
Comparable<Speed>, OsidPrimitive, OsidPrimitive, Serializable, Speed
A speed is a distance traveled over a unit of time.
-
Method Summary
Modifier and TypeMethodDescriptionGets the distance.Gets the time unit.Methods inherited from interface OsidPrimitive
toStringMethods inherited from interface Speed
compareTo, equals, getLowerBound, getUpperBound, hashCode, isContained, isExclusive, isExclusive, isGreater, isInclusive, isLessModifier and TypeMethodDescriptionintCompares this Speed with the specified Speed to determine the natural order.booleanDetermines if the givenSpeedsis equal to this one.Gets the lower bound of the speed.Gets the upper bound of the speed.inthashCode()Returns a hash code value for thisSpeedbased on the distance and time units.booleanisContained(Speed speed1, Speed speed2) Tests if the range of this Speed, as specified by its uncertainty, is included within the given two Speeds.booleanisExclusive(Speed speed) Tests if the range of this Speed, as specified by its uncertainty, does not overlap the given Speed.booleanisExclusive(Speed speed1, Speed speed2) Tests if the range of this Speed, as specified by its uncertainty, does not overlap with the range of the given two speeds.booleanTests if this Speed is greater than the given Speed.booleanisInclusive(Speed speed) Tests if the range of this Speed, as specified by its uncertainty, includes the given Speed ranged by its uncertainty.booleanTests if this Speed is less than the given Speed.
-
Method Details
-
getDistance
Distance getDistance()Gets the distance.- Returns:
- the distance
- Compliance:
mandatory- This method must be implemented.
-
getTimeUnit
DateTimeResolution getTimeUnit()Gets the time unit.- Returns:
- the time unit
- Compliance:
mandatory- This method must be implemented.
-