Source for file Agent.php

Documentation is available at Agent.php

  1. <?php
  2. /**
  3. * Agent is an abstraction that includes Id, display name, type, and
  4. * Properties. Agents are created using implementations of
  5. * org.osid.agent.AgentManager.
  6. *
  7. * <p>
  8. * OSID Version: 2.0
  9. * </p>
  10. *
  11. * <p>
  12. * Licensed under the {@link org.osid.SidImplementationLicenseMIT MIT}
  13. * O.K.I&#46; OSID Definition License}.
  14. * </p>
  15. *
  16. * @package org.osid.agent
  17. */
  18. interface Agent
  19. {
  20. /**
  21. * Get the name of this Agent.
  22. *
  23. * @return string
  24. *
  25. * @throws object AgentException An exception with one of the
  26. * following messages defined in org.osid.agent.AgentException may
  27. * be thrown: {@link }
  28. * org.osid.agent.AgentException#OPERATION_FAILED
  29. * OPERATION_FAILED}, {@link }
  30. * org.osid.agent.AgentException#PERMISSION_DENIED
  31. * PERMISSION_DENIED}, {@link }
  32. * org.osid.agent.AgentException#CONFIGURATION_ERROR
  33. * CONFIGURATION_ERROR}, {@link }
  34. * org.osid.agent.AgentException#UNIMPLEMENTED UNIMPLEMENTED}
  35. *
  36. * @access public
  37. */
  38. function getDisplayName ();
  39.  
  40. /**
  41. /**
  42. * Get the id of this Agent.
  43. *
  44. * @return object Id
  45. *
  46. * @throws object AgentException An exception with one of the
  47. * following messages defined in org.osid.agent.AgentException may
  48. * be thrown: {@link }
  49. * org.osid.agent.AgentException#OPERATION_FAILED
  50. * OPERATION_FAILED}, {@link }
  51. * org.osid.agent.AgentException#PERMISSION_DENIED
  52. * PERMISSION_DENIED}, {@link }
  53. * org.osid.agent.AgentException#CONFIGURATION_ERROR
  54. * CONFIGURATION_ERROR}, {@link }
  55. * org.osid.agent.AgentException#UNIMPLEMENTED UNIMPLEMENTED}
  56. *
  57. * @access public
  58. */
  59. function getId ();
  60.  
  61. /**
  62. /**
  63. * Get the type of this Agent.
  64. *
  65. * @return object Type
  66. *
  67. * @throws object AgentException An exception with one of the
  68. * following messages defined in org.osid.agent.AgentException may
  69. * be thrown: {@link }
  70. * org.osid.agent.AgentException#OPERATION_FAILED
  71. * OPERATION_FAILED}, {@link }
  72. * org.osid.agent.AgentException#PERMISSION_DENIED
  73. * PERMISSION_DENIED}, {@link }
  74. * org.osid.agent.AgentException#CONFIGURATION_ERROR
  75. * CONFIGURATION_ERROR}, {@link }
  76. * org.osid.agent.AgentException#UNIMPLEMENTED UNIMPLEMENTED}
  77. *
  78. * @access public
  79. */
  80. function getType ();
  81.  
  82. /**
  83. /**
  84. * Get the Properties of this Type associated with this Agent.
  85. *
  86. * @param object Type $propertiesType
  87. *
  88. * @return object Properties
  89. *
  90. * @throws object AgentException An exception with one of the
  91. * following messages defined in org.osid.agent.AgentException may
  92. * be thrown: {@link }
  93. * org.osid.agent.AgentException#OPERATION_FAILED
  94. * OPERATION_FAILED}, {@link }
  95. * org.osid.agent.AgentException#PERMISSION_DENIED
  96. * PERMISSION_DENIED}, {@link }
  97. * org.osid.agent.AgentException#CONFIGURATION_ERROR
  98. * CONFIGURATION_ERROR}, {@link }
  99. * org.osid.agent.AgentException#UNIMPLEMENTED UNIMPLEMENTED},
  100. * {@link org.osid.agent.AgentException#NULL_ARGUMENT}
  101. * NULL_ARGUMENT}, {@link }
  102. * org.osid.agent.AgentException#UNKNOWN_TYPE UNKNOWN_TYPE}
  103. *
  104. * @access public
  105. */
  106. function getPropertiesByType ( $propertiesType );
  107.  
  108. /**
  109. /**
  110. * Get the Properties Types supported by this Agent.
  111. *
  112. * @return object TypeIterator
  113. *
  114. * @throws object AgentException An exception with one of the
  115. * following messages defined in org.osid.agent.AgentException may
  116. * be thrown: {@link }
  117. * org.osid.agent.AgentException#OPERATION_FAILED
  118. * OPERATION_FAILED}, {@link }
  119. * org.osid.agent.AgentException#PERMISSION_DENIED
  120. * PERMISSION_DENIED}, {@link }
  121. * org.osid.agent.AgentException#CONFIGURATION_ERROR
  122. * CONFIGURATION_ERROR}, {@link }
  123. * org.osid.agent.AgentException#UNIMPLEMENTED UNIMPLEMENTED}
  124. *
  125. * @access public
  126. */
  127. function getPropertyTypes ();
  128.  
  129. /**
  130. /**
  131. * Get the Properties associated with this Agent.
  132. *
  133. * @return object PropertiesIterator
  134. *
  135. * @throws object AgentException An exception with one of the
  136. * following messages defined in org.osid.agent.AgentException may
  137. * be thrown: {@link }
  138. * org.osid.agent.AgentException#OPERATION_FAILED
  139. * OPERATION_FAILED}, {@link }
  140. * org.osid.agent.AgentException#PERMISSION_DENIED
  141. * PERMISSION_DENIED}, {@link }
  142. * org.osid.agent.AgentException#CONFIGURATION_ERROR
  143. * CONFIGURATION_ERROR}, {@link }
  144. * org.osid.agent.AgentException#UNIMPLEMENTED UNIMPLEMENTED}
  145. *
  146. * @access public
  147. */
  148. function getProperties ();
  149.  
  150.  
  151. ?>

Documentation generated on Wed, 19 Sep 2007 10:21:22 -0400 by phpDocumentor 1.3.0RC3