Java Doc for IChromosome.java in  » Development » jgap » org » jgap » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Development » jgap » org.jgap 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.jgap.IChromosome

All known Subclasses:   org.jgap.BaseChromosome,
IChromosome
public interface IChromosome extends Comparable,ICloneable,Serializable(Code)
Interface for chromosomes. Normally, you would start using BaseChromosome which implements this interface to build your own chromosome classes.
author:
   Klaus Meffert
since:
   2.6


Field Summary
final static  StringCVS_REVISION
     String containing the CVS revision.
final public static  StringS_ALLELES
    
final public static  StringS_APPLICATION_DATA
    
final public static  StringS_FITNESS_VALUE
    
final public static  StringS_SIZE
    


Method Summary
 voidcleanup()
     Invoked when this Chromosome is no longer needed and should perform any necessary cleanup.
 intgetAge()
     0: Chromosome newly created in this generation.
 ObjectgetApplicationData()
     Retrieves the application-specific data that is attached to this Chromosome.
 ConfigurationgetConfiguration()
    
 doublegetFitnessValue()
     Retrieves the fitness value of this Chromosome, as determined by the active fitness function.
 doublegetFitnessValueDirectly()
    
 GenegetGene(int a_desiredLocus)
     Returns the Gene at the given index (locus) within the Chromosome.
 Gene[]getGenes()
     Retrieves the set of genes that make up this Chromosome.
 voidincreaseAge()
     Increases the number of evolutionary rounds of chromosome in which it has not been changed by one.
 voidincreaseOperatedOn()
     Increase information of number of genetic operations performed on chromosome in current evolution round.
 booleanisSelectedForNextGeneration()
     Retrieves whether this Chromosome has been selected by the natural selector to continue to the next generation.
 intoperatedOn()
    
 voidresetAge()
     Reset age of chromosome because it has been changed.
 voidresetOperatedOn()
     Resets the information of how many genetic operators have been performed on the chromosome in the current round of evolution.
 voidsetApplicationData(Object a_newData)
     This sets the application-specific data that is attached to this Chromosome.
 voidsetConstraintChecker(IGeneConstraintChecker a_constraintChecker)
     Sets the constraint checker to be used for this gene whenever method setAllele(Object) is called.
 voidsetFitnessValue(double a_newFitnessValue)
     Sets the fitness value of this Chromosome.
 voidsetFitnessValueDirectly(double a_newFitnessValue)
     Sets the fitness value of this Chromosome directly without any constraint checks, conversions or checks.
 voidsetGenes(Gene[] a_genes)
     Sets the genes for the chromosome.
 voidsetIsSelectedForNextGeneration(boolean a_isSelected)
     Sets whether this Chromosome has been selected by the natural selector to continue to the next generation or manually (e.g.
 intsize()
     Returns the size of this Chromosome (the number of genes it contains).

Field Detail
CVS_REVISION
final static String CVS_REVISION(Code)
String containing the CVS revision. Read out via reflection!



S_ALLELES
final public static String S_ALLELES(Code)



S_APPLICATION_DATA
final public static String S_APPLICATION_DATA(Code)



S_FITNESS_VALUE
final public static String S_FITNESS_VALUE(Code)
Constants for toString()



S_SIZE
final public static String S_SIZE(Code)





Method Detail
cleanup
void cleanup()(Code)
Invoked when this Chromosome is no longer needed and should perform any necessary cleanup. Note that this method will attempt to release this Chromosome instance to the active ChromosomePool, if any.
author:
   Neil Rotstan
author:
   Klaus Meffert
since:
   2.6



getAge
int getAge()(Code)
0: Chromosome newly created in this generation. This means itdoes not need being crossed over with another newly created one
author:
   Klaus Meffert
since:
   3.2



getApplicationData
Object getApplicationData()(Code)
Retrieves the application-specific data that is attached to this Chromosome. Attaching application-specific data may be useful for some applications when it comes time to evaluate this Chromosome in the fitness function. JGAP ignores this data functionally. the application-specific data previously attached to thisChromosome, or null if there is no data attached
author:
   Neil Rotstan
author:
   Klaus Meffert
since:
   2.6



getConfiguration
Configuration getConfiguration()(Code)
the configuration set
author:
   Klaus Meffert
since:
   3.0



getFitnessValue
double getFitnessValue()(Code)
Retrieves the fitness value of this Chromosome, as determined by the active fitness function. If a bulk fitness function is in use and has not yet assigned a fitness value to this Chromosome, then -1 is returned.

Attention: should not be called from toString() as the fitness value would be computed if it was initial! a positive double value representing the fitness of thisChromosome, or -1 if a bulk fitness function is in use and has not yetassigned a fitness value to this Chromosome
author:
   Neil Rotstan
author:
   Klaus Meffert
since:
   2.6




getFitnessValueDirectly
double getFitnessValueDirectly()(Code)
the lastly computed fitness value, or FitnessFunction.NO_FITNESS_VALUEin case no value has been computed yet.
author:
   Klaus Meffert
since:
   2.6



getGene
Gene getGene(int a_desiredLocus)(Code)
Returns the Gene at the given index (locus) within the Chromosome. The first gene is at index zero and the last gene is at the index equal to the size of this Chromosome - 1.
Parameters:
  a_desiredLocus - index of the gene value to be returned Gene at the given index
author:
   Neil Rotstan
author:
   Klaus Meffert
since:
   2.6



getGenes
Gene[] getGenes()(Code)
Retrieves the set of genes that make up this Chromosome. This method exists primarily for the benefit of GeneticOperators that require the ability to manipulate Chromosomes at a low level. an array of the Genes contained within this Chromosome
author:
   Neil Rotstan
author:
   Klaus Meffert
since:
   2.6



increaseAge
void increaseAge()(Code)
Increases the number of evolutionary rounds of chromosome in which it has not been changed by one.
author:
   Klaus Meffert
since:
   3.2



increaseOperatedOn
void increaseOperatedOn()(Code)
Increase information of number of genetic operations performed on chromosome in current evolution round.
author:
   Klaus Meffert
since:
   3.2



isSelectedForNextGeneration
boolean isSelectedForNextGeneration()(Code)
Retrieves whether this Chromosome has been selected by the natural selector to continue to the next generation. true if this Chromosome has been selected, false otherwise
author:
   Neil Rotstan
author:
   Klaus Meffert
since:
   2.6



operatedOn
int operatedOn()(Code)
number of genetic operations performed on chromosome in currentevolution round
author:
   Klaus Meffert
since:
   3.2



resetAge
void resetAge()(Code)
Reset age of chromosome because it has been changed.
author:
   Klaus Meffert
since:
   3.2



resetOperatedOn
void resetOperatedOn()(Code)
Resets the information of how many genetic operators have been performed on the chromosome in the current round of evolution.
author:
   Klaus Meffert
since:
   3.2



setApplicationData
void setApplicationData(Object a_newData)(Code)
This sets the application-specific data that is attached to this Chromosome. Attaching application-specific data may be useful for some applications when it comes time to evaluate this Chromosome in the fitness function.
Parameters:
  a_newData - the new application-specific data to attach to thisChromosome. Should be an instance of IApplicationData
author:
   Neil Rotstan
author:
   Klaus Meffert
since:
   2.6



setConstraintChecker
void setConstraintChecker(IGeneConstraintChecker a_constraintChecker) throws InvalidConfigurationException(Code)
Sets the constraint checker to be used for this gene whenever method setAllele(Object) is called.
Parameters:
  a_constraintChecker - the constraint checker to be set
throws:
  InvalidConfigurationException -
author:
   Klaus Meffert
since:
   2.6



setFitnessValue
void setFitnessValue(double a_newFitnessValue)(Code)
Sets the fitness value of this Chromosome. This method is for use by bulk fitness functions and should not be invokved from anything else (except test cases).
Parameters:
  a_newFitnessValue - a positive integer representing the fitnessof this Chromosome
author:
   Neil Rotstan
since:
   2.6



setFitnessValueDirectly
void setFitnessValueDirectly(double a_newFitnessValue)(Code)
Sets the fitness value of this Chromosome directly without any constraint checks, conversions or checks. Only use if you know what you do.
Parameters:
  a_newFitnessValue - a positive integer representing the fitnessof this Chromosome
author:
   Klaus Meffert
since:
   2.6



setGenes
void setGenes(Gene[] a_genes) throws InvalidConfigurationException(Code)
Sets the genes for the chromosome.
Parameters:
  a_genes - the genes to set for the chromosome
throws:
  InvalidConfigurationException - in case constraint checker isprovided
author:
   Klaus Meffert
since:
   2.6



setIsSelectedForNextGeneration
void setIsSelectedForNextGeneration(boolean a_isSelected)(Code)
Sets whether this Chromosome has been selected by the natural selector to continue to the next generation or manually (e.g. via an add-method).
Parameters:
  a_isSelected - true if this Chromosome has been selected, falseotherwise
author:
   Neil Rotstan
author:
   Klaus Meffert
since:
   2.6



size
int size()(Code)
Returns the size of this Chromosome (the number of genes it contains). A Chromosome's size is constant and will not change, until setGenes(...) is used. number of genes contained within this Chromosome instance
author:
   Klaus Meffert
author:
   Neil Rotstan
since:
   2.6



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.