Interface MyPathSession

All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession

public interface MyPathSession extends OsidSession

This session defines methods to get path information for the authenticated agent.

  • Method Details

    • getMapId

      Id getMapId()
      Gets the Map Id associated with this session.
      Returns:
      the Map Id associated with this session
      Compliance:
      mandatory - This method must be implemented.
    • getMap

      Gets the Map associated with this session.
      Returns:
      the map
      Throws:
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • canAccessMyPath

      boolean canAccessMyPath()
      Tests if this user can query own path. 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 PERMISSION_DENIED . This is intended as a hint to an application that may not offer path operations to unauthorized users.
      Returns:
      false if path methods are not authorized, true otherwise
      Compliance:
      mandatory - This method must be implemented.
    • onDesignatedPath

      boolean onDesignatedPath()
      Tests if this agent is on a designated path.
      Returns:
      true if the agent is on a designated path, false otherrwise
      Compliance:
      mandatory - This method must be implemented.
    • getMyPath

      Gets the current path of this agent.
      Returns:
      the current path
      Throws:
      IllegalStateException - onDesignatedPath() is false
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.
    • getMyVelocity

      Gets the current velocity of this agent.
      Returns:
      the current velocity
      Throws:
      OperationFailedException - unable to complete request
      PermissionDeniedException - authorization failure
      Compliance:
      mandatory - This method must be implemented.