ECJ-INTEREST-L Archives

March 2014

ECJ-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Raymond Shpeley <[log in to unmask]>
Reply To:
ECJ Evolutionary Computation Toolkit <[log in to unmask]>
Date:
Thu, 6 Mar 2014 20:58:57 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (18 lines)
>Why can't you just say:
>
>int[] vals = root.numNodes(GPNode.NODESEARCH_TERMINALS);
>int count = 0;
>Iterator it = root.iterator(GPNode.NODESEARCH_TERMINALS);
>while(it.hasNext())
>	{
>	TsERC erc = (TSERC)(it.next());
>	vals[count++] = erc.theInteger;  // or wherever you stored it
>	}
>
>Sean

Indeed...
That is exactly what I needed. Thanks again!

-- ray

ATOM RSS1 RSS2