Class GeneticGraph

java.lang.Object
  extended by GeneticGraph

public class GeneticGraph
extends java.lang.Object


Field Summary
static int AGE_OF_IMPOTENCE
           
static int AVG
           
static int BREATH_AMOUNT
           
static int DEFAULT_HEALTH
           
static int DISEASE_RESISTANCE
           
static int ENERGY_GIVEN_TO_OFFSPRING
           
static int FERTILITY
           
 java.io.PrintStream fileOut
           
private  int[] graphed_genes
           
private  int[] graphed_types
           
static int HUNGER_FACTOR
           
private  int latestValue
           
static int LEG_LENGTH
           
static int LUNG_CAPACITY
           
static int MATURE_AGE
           
static int MAX
           
static int MAX_SIZE
           
static int METABOLISM
           
static int MIN
           
static int MOVE_ANGLE
           
static int MUTATE_PROBABILITY
           
static int NIGHT_VISION_FACTOR
           
static int num_genes
           
static int NUM_SEGMENTS
           
static int OUT_OF_BREATH_AT
           
static int OXYGEN_USED
           
static int PREFERRED_TEMPERATURE
           
static int PREGNANCY_PERIOD
           
static int PROB_OF_DYING
           
static int RADIUS_OF_SIGHT
           
static int SPEED
           
static int STRENGTH_FACTOR
           
static int TEMPERATURE_COMFORT_FACTOR
           
 
Constructor Summary
GeneticGraph()
           
 
Method Summary
static java.lang.String getGeneticString(int gene)
           
static double getGeneticValue(Organism o, int gene)
           
 java.lang.String getLine(Environment env, int[] genes, int[] types)
          USER_FRIENDLY_VERSION
 void update(Environment env)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileOut

public java.io.PrintStream fileOut

latestValue

private int latestValue

graphed_genes

private int[] graphed_genes

graphed_types

private int[] graphed_types

SPEED

public static final int SPEED
See Also:
Constant Field Values

PREGNANCY_PERIOD

public static final int PREGNANCY_PERIOD
See Also:
Constant Field Values

MOVE_ANGLE

public static final int MOVE_ANGLE
See Also:
Constant Field Values

LEG_LENGTH

public static final int LEG_LENGTH
See Also:
Constant Field Values

STRENGTH_FACTOR

public static final int STRENGTH_FACTOR
See Also:
Constant Field Values

DEFAULT_HEALTH

public static final int DEFAULT_HEALTH
See Also:
Constant Field Values

BREATH_AMOUNT

public static final int BREATH_AMOUNT
See Also:
Constant Field Values

OXYGEN_USED

public static final int OXYGEN_USED
See Also:
Constant Field Values

OUT_OF_BREATH_AT

public static final int OUT_OF_BREATH_AT
See Also:
Constant Field Values

LUNG_CAPACITY

public static final int LUNG_CAPACITY
See Also:
Constant Field Values

METABOLISM

public static final int METABOLISM
See Also:
Constant Field Values

PROB_OF_DYING

public static final int PROB_OF_DYING
See Also:
Constant Field Values

DISEASE_RESISTANCE

public static final int DISEASE_RESISTANCE
See Also:
Constant Field Values

RADIUS_OF_SIGHT

public static final int RADIUS_OF_SIGHT
See Also:
Constant Field Values

NIGHT_VISION_FACTOR

public static final int NIGHT_VISION_FACTOR
See Also:
Constant Field Values

FERTILITY

public static final int FERTILITY
See Also:
Constant Field Values

ENERGY_GIVEN_TO_OFFSPRING

public static final int ENERGY_GIVEN_TO_OFFSPRING
See Also:
Constant Field Values

HUNGER_FACTOR

public static final int HUNGER_FACTOR
See Also:
Constant Field Values

MATURE_AGE

public static final int MATURE_AGE
See Also:
Constant Field Values

AGE_OF_IMPOTENCE

public static final int AGE_OF_IMPOTENCE
See Also:
Constant Field Values

MAX_SIZE

public static final int MAX_SIZE
See Also:
Constant Field Values

NUM_SEGMENTS

public static final int NUM_SEGMENTS
See Also:
Constant Field Values

PREFERRED_TEMPERATURE

public static final int PREFERRED_TEMPERATURE
See Also:
Constant Field Values

TEMPERATURE_COMFORT_FACTOR

public static final int TEMPERATURE_COMFORT_FACTOR
See Also:
Constant Field Values

MUTATE_PROBABILITY

public static final int MUTATE_PROBABILITY
See Also:
Constant Field Values

num_genes

public static final int num_genes
See Also:
Constant Field Values

MIN

public static final int MIN
See Also:
Constant Field Values

AVG

public static final int AVG
See Also:
Constant Field Values

MAX

public static final int MAX
See Also:
Constant Field Values
Constructor Detail

GeneticGraph

public GeneticGraph()
Method Detail

update

public void update(Environment env)

getLine

public java.lang.String getLine(Environment env,
                                int[] genes,
                                int[] types)
USER_FRIENDLY_VERSION


getGeneticString

public static java.lang.String getGeneticString(int gene)

getGeneticValue

public static double getGeneticValue(Organism o,
                                     int gene)