Interface | osid.mapping.path.ResourceVelocityUpdateSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session defines methods to update resource velocities. | ||
Method | getMapId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Map Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getMap | ||
Description |
Gets the | ||
Return | osid.mapping.Map | the map | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateResourceVelocities | ||
Description |
Tests if this user can set the velocities of resources.
A return of true does not guarantee successful
authorization. A return of false indicates that it is
known all methods in this session will result in a | ||
Return | boolean | false if update methods are not authorized, true
otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | updateResourceVelocity | ||
Description |
Updates the velocity of the resource. | ||
Parameters | osid.id.Id | resourceId | a resource Id |
osid.mapping.Speed | speed | a speed | |
osid.mapping.Heading | heading | a heading expressed as a target coordinate | |
Errors | NOT_FOUND | resourceId is not found | |
NULL_ARGUMENT | resourceId, speed or heading is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateResourceCoordinate | ||
Description |
Updates the coordinate of the resource. | ||
Parameters | osid.id.Id | resourceId | a resource Id |
osid.mapping.Coordinate | coordinate | a coordinate | |
Errors | NOT_FOUND | resourceId is not found | |
NULL_ARGUMENT | resourceId or coordinate is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | coordinate not supported | ||
Compliance | mandatory | This method must be implemented. |