artefatos
Class Spot

java.lang.Object
  extended by org.jgap.BaseGene
      extended by artefatos.Spot
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable, org.jgap.Gene, org.jgap.IBusinessKey

public class Spot
extends org.jgap.BaseGene
implements org.jgap.Gene, java.io.Serializable

Classe que representa um gene do tipo SPOT

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jgap.BaseGene
DELTA, S_APPLICATION_DATA
 
Fields inherited from interface org.jgap.Gene
CVS_REVISION, PERSISTENT_FIELD_DELIMITER
 
Constructor Summary
Spot(org.jgap.Configuration aConfiguration, int xPassado, int yPassado, int diametro)
           Construtor da classe de Fitness, ultilizado para definir parametros maximos e minimos para os valores dos individuos de AG
 
Method Summary
 int getDiametro()
           
 int getX()
           
 int getY()
           
 org.jgap.Gene newGene()
           Metodo que cria um novo gene
 void setDiametro(int diametro)
           
 void setX(int x)
           
 void setY(int y)
           
 
Methods inherited from class org.jgap.BaseGene
cleanup, equals, getAllele, getApplicationData, getBusinessKey, getConfiguration, getConstraintChecker, getEnergy, hashCode, isCompareApplicationData, setApplicationData, setCompareApplicationData, setConstraintChecker, setEnergy, size, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jgap.Gene
applyMutation, cleanup, getAllele, getApplicationData, getConfiguration, getEnergy, getPersistentRepresentation, isCompareApplicationData, setAllele, setApplicationData, setCompareApplicationData, setConstraintChecker, setEnergy, setToRandomValue, setValueFromPersistentRepresentation, size, toString
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

Spot

public Spot(org.jgap.Configuration aConfiguration,
            int xPassado,
            int yPassado,
            int diametro)
     throws org.jgap.InvalidConfigurationException

Construtor da classe de Fitness, ultilizado para definir parametros maximos e minimos para os valores dos individuos de AG

Parameters:
aConfiguration -
xPassado -
yPassado -
larguraLocal -
Throws:
org.jgap.InvalidConfigurationException
Method Detail

newGene

public org.jgap.Gene newGene()

Metodo que cria um novo gene

Specified by:
newGene in interface org.jgap.Gene
Overrides:
newGene in class org.jgap.BaseGene

getX

public int getX()

setX

public void setX(int x)

getY

public int getY()

setY

public void setY(int y)

getDiametro

public int getDiametro()

setDiametro

public void setDiametro(int diametro)