ECJ-INTEREST-L Archives

November 2012

ECJ-INTEREST-L@LISTSERV.GMU.EDU

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

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

Print Reply
Mime-Version:
1.0
Sender:
ECJ Evolutionary Computation Toolkit <[log in to unmask]>
Subject:
From:
SUBSCRIBE ECJ-INTEREST-L Anonymous <[log in to unmask]>
Date:
Sun, 11 Nov 2012 15:09:30 -0500
Content-Transfer-Encoding:
8bit
Content-Type:
text/plain; charset="ISO-8859-1"
Reply-To:
ECJ Evolutionary Computation Toolkit <[log in to unmask]>
Parts/Attachments:
text/plain (22 lines)
Sean, thanks. That worked. 

Please correct me, the printIndividual( ) is a method in Individual class. So I 
need to create a class that extends the Individual class so that I could use 
printIndividual( )? In the owner's manual it stated that genotypeToString( ) 
should be overridden instead.

public class Encoder{
   public static void main(String[] args){
      System.out.println(ParsingIndividual.genotypeToString());
   }
}

class ParsingIndividual extends Individual{
   @Override
   public String genotypeToString(float f){
      return Code.encode(f);
   }
}

Rui

ATOM RSS1 RSS2