<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<MyMove> iterator() {<br>
return new Iterator<MyMove>() {<br>
public MyMove next() {<br>
Cloud a = ...; // random entity<br>
Process b = ...; // random value<br>
return new MyMove(a, b);<br>
}<br>
};<br>
<br>
}<br>
<br>
<div class="moz-cite-prefix">Op 12-12-12 13:36, 软件0907黄泓 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<Move>. 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 I don't quite understand 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>