Interface Route
- All Superinterfaces:
Aggregateable, Browsable, Extensible, Identifiable, OsidObject, OsidRelationship, Temporal
A Route represents one or more paths between two locations. A
Route is created from a series of RouteSegments which, in
turn, may relate to a Path . A Path is an object
representation of a fixed means of travel between two locations, such as a
road.
-
Method Summary
Modifier and TypeMethodDescriptionGets the total distance of this route.Gets the ending location of this route.Gets theIdof the ending location of this route.getETA()Gets the estimated travel time across the entire route.getRouteRecord(Type routeRecordType) Gets the route record corresponding to the givenRouterecordType.This method is used to retrieve an object implementing the requested record.Gets the route segmentIdsof this route.Gets the segments of this route.Gets the starting location of this route.Gets theIdof the starting location of this route.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 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.Methods inherited from interface OsidRelationship
getEndReason, getEndReasonId, hasEndReasonModifier and TypeMethodDescriptionGets a state indicating why this relationship has ended.Gets a stateIdindicating why this relationship has ended.booleanTests if a reason this relationship came to an end is known.Methods inherited from interface Temporal
getEndDate, getStartDate, isEffectiveModifier and TypeMethodDescriptionGets the end date.Gets the start date.booleanTests if the current date is within the start end end dates inclusive.
-
Method Details
-
getStartingLocationId
Id getStartingLocationId()Gets theIdof the starting location of this route.- Returns:
- the starting location
Id - Compliance:
mandatory- This method must be implemented.
-
getStartingLocation
Gets the starting location of this route.- Returns:
- the starting location
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getEndingLocationId
Id getEndingLocationId()Gets theIdof the ending location of this route.- Returns:
- the ending location
Id - Compliance:
mandatory- This method must be implemented.
-
getEndingLocation
Gets the ending location of this route.- Returns:
- the ending location
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getDistance
Distance getDistance()Gets the total distance of this route.- Returns:
- the total route distance
- Compliance:
mandatory- This method must be implemented.
-
getETA
Duration getETA()Gets the estimated travel time across the entire route.- Returns:
- the estimated travel time
- Compliance:
mandatory- This method must be implemented.
-
getSegmentIds
IdList getSegmentIds()Gets the route segmentIdsof this route.- Returns:
- the segment
Idsof this route - Compliance:
mandatory- This method must be implemented.
-
getSegments
Gets the segments of this route.- Returns:
- the segments of this route
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getRouteRecord
Gets the route record corresponding to the givenRouterecordType.This method is used to retrieve an object implementing the requested record. ThepathRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(routeRecordType)istrue.- Parameters:
routeRecordType- the type of route record to retrieve- Returns:
- the route record
- Throws:
NullArgumentException-routeRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(routeRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-