ECJ-INTEREST-L Archives

March 2014

ECJ-INTEREST-L@LISTSERV.GMU.EDU

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

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

Print Reply
Sender:
ECJ Evolutionary Computation Toolkit <[log in to unmask]>
Date:
Thu, 6 Mar 2014 21:00:17 -0500
MIME-version:
1.0 (Mac OS X Mail 7.2 \(1874\))
Reply-To:
ECJ Evolutionary Computation Toolkit <[log in to unmask]>
Content-type:
text/plain; charset=iso-8859-1
Subject:
From:
Sean Luke <[log in to unmask]>
In-Reply-To:
Content-transfer-encoding:
7bit
Parts/Attachments:
text/plain (26 lines)
Obviously I should have said

int[] vals = new int[root.numNodes(...)];

Sean

On Mar 6, 2014, at 8:58 PM, Raymond Shpeley <[log in to unmask]> wrote:

>> 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