|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Gav.CBiot | +--Gav.CBiomorph
CBiomorph : defines a Biomorph as a Biot
Field Summary | |
(package private) long |
BiomGenome
|
(package private) java.util.Vector |
BiomPhenotype
points Vector. |
(package private) long |
DefaultGenome
|
(package private) int |
Delta
|
(package private) double |
Fitness
|
(package private) static int |
GeneBitLength
|
(package private) int |
GenomeScale
|
(package private) JPGraphTools |
GT
Pointer to App GraphTools |
(package private) long |
MaskGenome
|
(package private) static int |
MaxBranch
|
(package private) static int |
MinBranch
|
(package private) CGavUniverse |
MyUniverse
|
(package private) static int |
NbGene
|
(package private) int |
Place
Position on Grid |
(package private) float |
XMax
|
(package private) float |
XMin
|
(package private) int[] |
XOffsets
|
(package private) float |
YMax
|
(package private) float |
YMin
|
(package private) int[] |
YOffsets
|
Fields inherited from class Gav.CBiot |
Direction,
EnergyLevel,
MyType,
MyUniverse,
Position,
Selected |
Constructor Summary | |
CBiomorph(CBiomorph father,
CBiomorph mother,
int place)
Creates an offspring |
|
CBiomorph(CBiomorph father,
int nummutant)
Creates a descendant with a mutation on gene nummutant |
|
CBiomorph(CGavUniverse univ)
Create a Biom in Universe |
|
CBiomorph(CGavUniverse univ,
boolean rnd,
int place)
Randomly creates Biomorph at Place |
Method Summary | |
(package private) void |
CalcBiomSize()
|
(package private) void |
CalcBiomSize(float X,
float Y,
int Length,
int Direction,
int[] XOffsets,
int[] YOffsets)
Determines the global size of the Biom |
(package private) void |
CalcXOffset()
Calculate X and Y Offsets from the genes |
java.lang.String |
DispGenome()
return Genome as String |
(package private) void |
Draw(java.awt.Graphics g,
float X,
float Y,
int Length,
int Direction,
int[] XOffsets,
int[] YOffsets)
Recursive Drawing algorithm |
(package private) void |
GenPhenotype()
Generate Vector Phenotype |
(package private) java.lang.String |
GetBitGenomeString(long g)
Creates a binary string representation of genome |
(package private) int |
GetGene(int GeneNum)
Return the nth Gene as Integer |
void |
Live(JPView v)
Live function : Draw |
(package private) void |
MutateBiom()
Mutate a Biom |
(package private) void |
SetDefaultGenes()
Set Biom genome to default values |
void |
SetGene(int GeneNum,
int GeneValue)
Gene setter |
Methods inherited from class Gav.CBiot |
GetEnergyLevel,
GetMyType,
GetMyUniverse,
SetBiotType |
Methods inherited from class java.lang.Object |
|
Field Detail |
static final int MaxBranch
static final int MinBranch
static final int GeneBitLength
static final int NbGene
final int GenomeScale
final long DefaultGenome
final long MaskGenome
final int Delta
float XMax
float XMin
float YMax
float YMin
int[] XOffsets
int[] YOffsets
CGavUniverse MyUniverse
long BiomGenome
java.util.Vector BiomPhenotype
int Place
double Fitness
JPGraphTools GT
Constructor Detail |
public CBiomorph(CGavUniverse univ)
public CBiomorph(CGavUniverse univ, boolean rnd, int place)
public CBiomorph(CBiomorph father, int nummutant)
public CBiomorph(CBiomorph father, CBiomorph mother, int place)
Method Detail |
void MutateBiom()
void SetDefaultGenes()
public void SetGene(int GeneNum, int GeneValue)
int GetGene(int GeneNum)
void CalcXOffset()
public void Live(JPView v)
void GenPhenotype()
void CalcBiomSize()
void CalcBiomSize(float X, float Y, int Length, int Direction, int[] XOffsets, int[] YOffsets)
void Draw(java.awt.Graphics g, float X, float Y, int Length, int Direction, int[] XOffsets, int[] YOffsets)
public java.lang.String DispGenome()
java.lang.String GetBitGenomeString(long g)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |