Class GeneticGraph
java.lang.Object
GeneticGraph
public class GeneticGraph
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
GeneticGraph
public GeneticGraph()
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)