Interface ResourceVelocity
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidCompendium, OsidObject, Subjugateable
A Velocity for a Resource .
-
Method Summary
Modifier and TypeMethodDescriptionGets the current heading.getPath()Gets thePath.Gets thePathId.Gets the current position.Gets theResource.Gets theResourceId.getResourceVelocityRecord(Type resourceVelocityRecordType) Gets the resource velocity record corresponding to the givenResourceVelocityrecordType.getSpeed()Gets the current speed.booleanisOnPath()Tests if the resource is on a designated path.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 theResourceId.- Returns:
- the resource
Id - Compliance:
mandatory- This method must be implemented.
-
getResource
Gets theResource.- Returns:
- the resource
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getSpeed
Speed getSpeed()Gets the current speed.- Returns:
- the current speed
- Compliance:
mandatory- This method must be implemented.
-
getPosition
Coordinate getPosition()Gets the current position.- Returns:
- the current coordinate
- Compliance:
mandatory- This method must be implemented.
-
getHeading
Heading getHeading()Gets the current heading.- Returns:
- the current heading
- Compliance:
mandatory- This method must be implemented.
-
isOnPath
boolean isOnPath()Tests if the resource is on a designated path.- Returns:
trueif the resource is on a designated path,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getPathId
Id getPathId()Gets thePathId.- Returns:
- the path
Id - Throws:
IllegalStateException-isOnPath()isfalse- Compliance:
mandatory- This method must be implemented.
-
getPath
Gets thePath.- Returns:
- the path
- Throws:
IllegalStateException-isOnPath()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getResourceVelocityRecord
ResourceVelocityRecord getResourceVelocityRecord(Type resourceVelocityRecordType) throws OperationFailedException Gets the resource velocity record corresponding to the givenResourceVelocityrecordType. This method is used to retrieve an object implementing the requested record. TheresourceVelocityRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(resourceVelocityRecordType)istrue.- Parameters:
resourceVelocityRecordType- the type of resource velocity record to retrieve- Returns:
- the resource velocity record
- Throws:
NullArgumentException-resourceVelocityRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(resourceVelocityRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-