Interface RouteProgress
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidCompendium, OsidObject, Subjugateable
Route progress defines methods to get information about progress along a route.
-
Method Summary
Modifier and TypeMethodDescriptionGets the estimated travel time to the next route segment.Gets the resource on the route.Gets theIdof the resource on the route.getRoute()Gets the route.Gets the routeId.getRouteProgressRecord(Type routeProgressRecordType) Gets the route progress record corresponding to the givenRouteProgresstrecordType.Gets the current route segment.Gets the current route segmentId.Gets the distance along the current route segment traveled.Gets the ending time for this route.Get sthe time the object last moved.Gets the starting time on this route.Gets the total distance traveled.Gets the total idle time before completion of the route.Gets the total travel time.booleanTests if the route has been completed.booleanTests if the object is in motion.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.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 Identifiable
getId, isCurrentMethods inherited from interface OsidCompendium
getEndDate, getStartDate, isExtrapolated, isInterpolatedModifier and TypeMethodDescriptionGets the end date used in the evaluation of the transactional data on which this report is based.Gets the start date used in the evaluation of the transactional data on which this report is based.booleanTests if this report is extrapolated outside measured data or known transactions.booleanTests if this report is interpolated within measured data or known transactions.Methods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.
-
Method Details
-
getResourceId
Id getResourceId()Gets theIdof the resource on the route.- Returns:
- the resource
Id - Compliance:
mandatory- This method must be implemented.
-
getResource
Gets the resource on the route.- Returns:
- the resource
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getRouteId
Id getRouteId()Gets the routeId.- Returns:
- the route
Id - Compliance:
mandatory- This method must be implemented.
-
getRoute
Gets the route.- Returns:
- the route
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getTimeStarted
DateTime getTimeStarted()Gets the starting time on this route.- Returns:
- the starting time
- Compliance:
mandatory- This method must be implemented.
-
getTotalDistanceTraveled
Distance getTotalDistanceTraveled()Gets the total distance traveled.- Returns:
- the distance
- Compliance:
mandatory- This method must be implemented.
-
getTotalTravelTime
Duration getTotalTravelTime()Gets the total travel time.- Returns:
- total travel time
- Compliance:
mandatory- This method must be implemented.
-
isInMotion
boolean isInMotion()Tests if the object is in motion.- Returns:
trueif the object is in motion,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getTotalIdleTime
Duration getTotalIdleTime()Gets the total idle time before completion of the route.- Returns:
- total idle time
- Compliance:
mandatory- This method must be implemented.
-
getTimeLastMoved
DateTime getTimeLastMoved()Get sthe time the object last moved.- Returns:
- last moved time
- Compliance:
mandatory- This method must be implemented.
-
isComplete
boolean isComplete()Tests if the route has been completed.- Returns:
trueif the route has been completed,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getRouteSegmentId
Id getRouteSegmentId()Gets the current route segmentId.- Returns:
- the route segment
Id - Throws:
IllegalStateException-isComplete()istrue- Compliance:
mandatory- This method must be implemented.
-
getRouteSegment
Gets the current route segment.- Returns:
- the route segment
- Throws:
IllegalStateException-isComplete()istrueOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getETAToNextSegment
Duration getETAToNextSegment()Gets the estimated travel time to the next route segment.- Returns:
- the estimated travel time
- Throws:
IllegalStateException-isComplete()istrue- Compliance:
mandatory- This method must be implemented.
-
getRouteSegmentTraveled
Distance getRouteSegmentTraveled()Gets the distance along the current route segment traveled.- Returns:
- distance along the current segment traveled
- Throws:
IllegalStateException-isComplete()istrue- Compliance:
mandatory- This method must be implemented.
-
getTimeCompleted
DateTime getTimeCompleted()Gets the ending time for this route.- Returns:
- the ending time
- Throws:
IllegalStateException-isComplete()isfalse- Compliance:
mandatory- This method must be implemented.
-
getRouteProgressRecord
RouteProgressRecord getRouteProgressRecord(Type routeProgressRecordType) throws OperationFailedException Gets the route progress record corresponding to the givenRouteProgresstrecordType.- Parameters:
routeProgressRecordType- a route progress record type- Returns:
- the route progress record
- Throws:
NullArgumentException-progressRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasDomainType(progressSegmentRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-