<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Do something like:<br>
    <br>
    public Iterator&lt;MyMove&gt; iterator() {<br>
    &nbsp;&nbsp;&nbsp; return new Iterator&lt;MyMove&gt;() {<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public MyMove next() {<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cloud a = ...; // random entity<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Process b = ...; // random value<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return new MyMove(a, b);<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
    &nbsp;&nbsp;&nbsp; };<br>
    <br>
    }<br>
    <br>
    <div class="moz-cite-prefix">Op 12-12-12 13:36, &#36719;&#20214;0907&#40644;&#27859; schreef:<br>
    </div>
    <blockquote cite="mid:tencent_432275444F11E46C696042A7@qq.com"
      type="cite">
      <div>Hi,</div>
      <div>I have to implement this interface to meet requirement on
        performance and to use Random and JUST_IN_TIME configuration in
        xml. However, all examples provided implement MoveListFactory
        instead of this interface,and I don't quite understand how to
        implement the MoveIteratorFactory interface. The reference
        mannual told me not to create a collection of moves when
        creating the Iterator&lt;Move&gt;. I don't understand what this
        means,and how to use the arguments ScoreDirector and Random for
        each method. How can you get an iterator of moves if you do not
        make a collection of moves?And&nbsp;I don't quite understand&nbsp; what
        the reference mannual means by saying "this interface gives you
        the ability to create a move just in time in the iterator's
        method next()".Does this mean I only have to provide a
        collection with only one move that was randomly chosen?Could you
        provide me an example on how to implement this interface on the
        curriculumcourse example?</div>
      <div>with kind regards<br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>