Source for file HarmoniAgentCommitmentIterator.class.php

Documentation is available at HarmoniAgentCommitmentIterator.class.php

  1. <?php
  2. require_once(OKI2."/osid/scheduling/AgentCommitmentIterator.php");
  3. require_once(HARMONI."oki2/shared/HarmoniIterator.class.php");
  4.  
  5. /**
  6. * AgentCommitmentIterator provides access to these objects sequentially, one
  7. * at a time. The purpose of all Iterators is to to offer a way for OSID
  8. * methods to return multiple values of a common type and not use an array.
  9. * Returning an array may not be appropriate if the number of values returned
  10. * is large or is fetched remotely. Iterators do not allow access to values
  11. * by index, rather you must access values in sequence. Similarly, there is no
  12. * way to go backwards through the sequence unless you place the values in a
  13. * data structure, such as an array, that allows for access by index.
  14. *
  15. * <p>
  16. * OSID Version: 2.0
  17. * </p>
  18. *
  19. * <p>
  20. * Licensed under the {@link org.osid.SidImplementationLicenseMIT MIT}
  21. * O.K.I&#46; OSID Definition License}.
  22. * </p>
  23. *
  24. * @package org.osid.scheduling
  25. */
  26. class HarmoniAgentCommitmentIterator
  27. extends HarmoniIterator
  28. {
  29. /**
  30. * Return true if there is an additional AgentCommitment ; false
  31. * otherwise.
  32. *
  33. * @return boolean
  34. *
  35. * @throws object SchedulingException An exception with one of
  36. * the following messages defined in
  37. * org.osid.scheduling.SchedulingException may be thrown: {@link }
  38. * org.osid.scheduling.SchedulingException#OPERATION_FAILED
  39. * OPERATION_FAILED}, {@link }
  40. * org.osid.scheduling.SchedulingException#PERMISSION_DENIED
  41. * PERMISSION_DENIED}, {@link }
  42. * org.osid.scheduling.SchedulingException#CONFIGURATION_ERROR
  43. * CONFIGURATION_ERROR}, {@link }
  44. * org.osid.scheduling.SchedulingException#UNIMPLEMENTED
  45. * UNIMPLEMENTED}
  46. *
  47. * @access public
  48. */
  49. function hasNextAgentCommitment () {
  50. return $this->hasNext();
  51. }
  52.  
  53. /**
  54. * Return the next AgentCommitment.
  55. *
  56. * @return object AgentCommitment
  57. *
  58. * @throws object SchedulingException An exception with one of
  59. * the following messages defined in
  60. * org.osid.scheduling.SchedulingException may be thrown: {@link }
  61. * org.osid.scheduling.SchedulingException#OPERATION_FAILED
  62. * OPERATION_FAILED}, {@link }
  63. * org.osid.scheduling.SchedulingException#PERMISSION_DENIED
  64. * PERMISSION_DENIED}, {@link }
  65. * org.osid.scheduling.SchedulingException#CONFIGURATION_ERROR
  66. * CONFIGURATION_ERROR}, {@link }
  67. * org.osid.scheduling.SchedulingException#UNIMPLEMENTED
  68. * UNIMPLEMENTED}, {@link }
  69. * org.osid.scheduling.SchedulingException#NO_MORE_ITERATOR_ELEMENTS
  70. * NO_MORE_ITERATOR_ELEMENTS}
  71. *
  72. * @access public
  73. */
  74. function nextAgentCommitment () {
  75. return $this->next();
  76. }
  77. }
  78.  
  79. ?>

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