|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmegamek.client.bot.ga.GA
megamek.client.bot.GALance
public class GALance
| Field Summary | |
|---|---|
protected java.lang.Object[] |
enemy_array
|
protected java.util.ArrayList<MoveOption[]> |
moves
|
protected TestBot |
tb
|
| Fields inherited from class megamek.client.bot.ga.GA |
|---|
best, chromosomeDim, chromosomes, populationDim |
| Constructor Summary | |
|---|---|
GALance(TestBot tb,
java.util.ArrayList<MoveOption[]> moves,
int population,
int generations)
|
|
| Method Summary | |
|---|---|
protected void |
doRandomMutation(int iChromIndex)
|
protected double |
getFitness(int iChromIndex)
|
MoveOption |
getResult()
|
protected void |
initPopulation()
|
| Methods inherited from class megamek.client.bot.ga.GA |
|---|
doExhaustiveSearch, doHeuristicPass, evolve, getAvgFitness, getESquared, getFittestChromosomesFitness, selectTwoParents, shouldDoExhaustive |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.ArrayList<MoveOption[]> moves
protected TestBot tb
protected java.lang.Object[] enemy_array
| Constructor Detail |
|---|
public GALance(TestBot tb,
java.util.ArrayList<MoveOption[]> moves,
int population,
int generations)
| Method Detail |
|---|
protected void initPopulation()
initPopulation in class GAprotected double getFitness(int iChromIndex)
getFitness in class GApublic MoveOption getResult()
protected void doRandomMutation(int iChromIndex)
doRandomMutation in class GA
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||