public interface ResourceVelocityUpdateSession extends OsidSession
This session defines methods to update resource velocities.
Modifier and Type | Method and Description |
---|---|
boolean |
canUpdateResourceVelocities()
Tests if this user can set the velocities of resources.
|
Map |
getMap()
Gets the
Map associated with this session. |
Id |
getMapId()
Gets the
Map Id associated with this
session. |
void |
updateResourceCoordinate(Id resourceId,
Coordinate coordinate)
Updates the coordinate of the resource.
|
void |
updateResourceVelocity(Id resourceId,
Speed speed,
Heading heading)
Updates the velocity of the resource.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getMapId()
Map
Id
associated with this
session. Map Id
associated with this sessionmandatory
- This method must be implemented. Map getMap() throws OperationFailedException, PermissionDeniedException
Map
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canUpdateResourceVelocities()
PERMISSION_DENIED.
This is intended as a hint to an
application that may not offer location operations to unauthorized
users. false
if update methods are not authorized,
true
otherwisemandatory
- This method must be implemented. void updateResourceVelocity(Id resourceId, Speed speed, Heading heading) throws NotFoundException, OperationFailedException, PermissionDeniedException
resourceId
- a resource Id
speed
- a speedheading
- a heading expressed as a target coordinateNotFoundException
- resourceId
is not
foundNullArgumentException
- resourceId, speed
or heading
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. void updateResourceCoordinate(Id resourceId, Coordinate coordinate) throws NotFoundException, OperationFailedException, PermissionDeniedException
resourceId
- a resource Id
coordinate
- a coordinateNotFoundException
- resourceId
is not
foundNullArgumentException
- resourceId
or
coordinate
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failureUnsupportedException
- coordinate not supportedmandatory
- This method must be implemented.