public class SharedData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static AbstractPlayer |
automatedAgent
the best automated agent
|
static java.lang.String |
BEST_AGENT_NAME
The name of a the best agent with some human error
|
static RuleGenerator |
constGen |
static double |
CROSSOVER_PROB
Crossover probability
|
static double |
DELETE_PARAM_PROB
The probability to delete a parameter from an exisiting rule
|
static double |
DELETION_PROB
the probability of performing a deletion an exisiting rule
|
static java.lang.String |
DO_NOTHING_AGENT_NAME
The name of the do nothing agent
|
static AbstractPlayer |
doNothingAgent
the do nothing automated agent
|
static int |
ELITISM_NUMBER
number of the best chromosomes that are transfered from one generation to another
|
static int |
EVALUATION_STEP_COUNT
How many steps the best agent gets to evaluate a game
|
static long |
EVALUATION_STEP_TIME
The amount of time given for each time step
|
static long |
EVALUATION_TIME
the amount of time to evaluate a single level
|
static double |
INIT_CONSTRUCT_PERCENT
The percentage of the initial population that is constructively generated
|
static double |
INIT_MUT_PERCENT
The percentage of the initial population that is mutationally generated based
off what already exists (random and constructive) in the population
|
static int |
INIT_MUTATION_AMOUNT
the initial amount of mutations in the init pop
|
static double |
INIT_RANDOM_PERCENT
The percentage of the initial population that is randomly generated
|
static double |
INSERT_PARAM_PROB
The probability to insert a new parameter into an existing rule
|
static double |
INSERTION_PROB
the probability of inserting a new rule
|
static java.lang.String[] |
interactionParams
Array contains all possible interaction parameter types
|
static java.lang.String[] |
interactions
Array contains all interactions we want to mutate over
|
static LevelAnalyzer |
la
the analyzer of this level
|
static double |
MODIFY_PARAM_PROB
the probablity of changing a parameter of an existing rule
|
static double |
MODIFY_RULE_PROB
the probability of performing a modify on an existing rule
|
static int |
MUTATION_AMOUNT
The amount of times we perform a mutation on a set
|
static double |
MUTATION_PROB
Mutation probability
|
static java.lang.String |
NAIVE_AGENT_NAME
The name of a naive agent
|
static AbstractPlayer |
naiveAgent
the naive automated agent
|
static int |
NUMERICAL_VALUE_PARAM
The upper bound on a numerical value for a parameter insertion
|
static double |
PARAM_NUM_OR_SPRITE_PROB
The probability of putting a number or a sprite as the value of a parameter insertion
|
static int |
POPULATION_SIZE
The size of the Genetic Algorithm Population
|
static int |
PROTECTION_COUNTER
Protects the fitness function from looping forever
|
static java.util.Random |
random
random object to help in choosing random stuff
|
static java.lang.String |
RANDOM_AGENT_NAME
The name of the random agent
|
static AbstractPlayer |
randomAgent
the random agent
|
static int |
REPETITION_AMOUNT
The amount of times used to run each agent
|
static int |
TERMINATION_LIMIT_PARAM
The upper bound on a numerical value for a termination limit parameter insertion
|
static java.lang.String[] |
terminationParams |
static java.lang.String[] |
terminations
Array contains all terminations
|
static java.util.ArrayList<java.lang.String> |
usefulSprites
useful sprites in the game
|
static double |
WIN_PARAM_PROB
The probability of a termination rule being a "win"
|
Constructor and Description |
---|
SharedData() |
public static final int POPULATION_SIZE
public static java.util.ArrayList<java.lang.String> usefulSprites
public static LevelAnalyzer la
public static final long EVALUATION_TIME
public static final int ELITISM_NUMBER
public static final double CROSSOVER_PROB
public static final double MUTATION_PROB
public static final double INIT_RANDOM_PERCENT
public static final double INIT_CONSTRUCT_PERCENT
public static final double INIT_MUT_PERCENT
public static final int INIT_MUTATION_AMOUNT
public static java.util.Random random
public static final java.lang.String BEST_AGENT_NAME
public static final java.lang.String NAIVE_AGENT_NAME
public static final java.lang.String RANDOM_AGENT_NAME
public static final java.lang.String DO_NOTHING_AGENT_NAME
public static final int EVALUATION_STEP_COUNT
public static final int REPETITION_AMOUNT
public static final long EVALUATION_STEP_TIME
public static final int MUTATION_AMOUNT
public static final double INSERTION_PROB
public static final double DELETION_PROB
public static final double MODIFY_RULE_PROB
public static final double MODIFY_PARAM_PROB
public static final double INSERT_PARAM_PROB
public static final double DELETE_PARAM_PROB
public static final double PARAM_NUM_OR_SPRITE_PROB
public static final double WIN_PARAM_PROB
public static final int NUMERICAL_VALUE_PARAM
public static final int TERMINATION_LIMIT_PARAM
public static final int PROTECTION_COUNTER
public static AbstractPlayer automatedAgent
public static AbstractPlayer naiveAgent
public static AbstractPlayer doNothingAgent
public static AbstractPlayer randomAgent
public static RuleGenerator constGen
public static java.lang.String[] interactions
public static java.lang.String[] terminations
public static java.lang.String[] interactionParams
public static java.lang.String[] terminationParams