Interface ResourceLocation
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidCompendium, OsidObject, Subjugateable
This interface defines a resource at a location.
-
Method Summary
Modifier and TypeMethodDescriptionGets the coordinate of the resource.Gets the location of the resource.Gets the locationIdof the resource.Gets the resource on the route.Gets theIdof the resource on the route.getResourceLocationRecord(Type resourceLocationRecordType) Gets the map record corresponding to the givenResourceLocationrecordType.booleanTests if this resource has a known coordinate.booleanTests if this resource has a known location.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.
-
hasLocation
boolean hasLocation()Tests if this resource has a known location.- Returns:
trueif a location is known,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getLocationId
Id getLocationId()Gets the locationIdof the resource.- Returns:
- the location
Id - Throws:
IllegalStateException-hasLocation()isfalse- Compliance:
mandatory- This method must be implemented.
-
getLocation
Gets the location of the resource.- Returns:
- the location
- Throws:
IllegalStateException-hasLocation()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
hasCoordinate
boolean hasCoordinate()Tests if this resource has a known coordinate.- Returns:
trueif a coordinate is known,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCoordinate
Coordinate getCoordinate()Gets the coordinate of the resource.- Returns:
- the coordinate of the resource
- Throws:
IllegalStateException-hasCoordinate()isfalse- Compliance:
mandatory- This method must be implemented.
-
getResourceLocationRecord
ResourceLocationRecord getResourceLocationRecord(Type resourceLocationRecordType) throws OperationFailedException Gets the map record corresponding to the givenResourceLocationrecordType. This method is used to retrieve an object implementing the requested record. TheresourceLocationRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(resourceLocationRecordType)istrue.- Parameters:
resourceLocationRecordType- the type of resource location record to retrieve- Returns:
- the resource location record
- Throws:
NullArgumentException-resourceLocationRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(resourceLocationRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-