Modifier and Type | Class and Description |
---|---|
static class |
DefaultAIKernel.Best |
static interface |
DefaultAIKernel.BestAdjuster |
static class |
DefaultAIKernel.IdentityBestAdjuster |
Modifier and Type | Field and Description |
---|---|
protected DefaultAIKernel.BestAdjuster |
adjuster |
static Comparator<DefaultAIKernel.Best> |
BEST_ORDER |
protected boolean |
dropsOnly |
protected ActiveCompletor |
exec |
protected Fitness |
fitness |
protected int |
pruneTop |
static Comparator<DefaultAIKernel.Best> |
WORST_ORDER |
Constructor and Description |
---|
DefaultAIKernel() |
DefaultAIKernel(ActiveCompletor exec,
Fitness fitness) |
DefaultAIKernel(Executor exec,
Fitness fitness) |
DefaultAIKernel(Fitness fitness) |
Modifier and Type | Method and Description |
---|---|
ShapeType |
bestNext(Field field,
ShapeSource shapes,
ShapeType[] next,
int lookahead) |
DefaultAIKernel.Best |
bestPlacement(Field originalField,
Field currentField,
int currentShape,
ShapeType[] next,
int lookahead,
int depth) |
CommandGraph |
bestPlacement(Field field,
int current,
ShapeType[] next,
int lookahead) |
DefaultAIKernel.BestAdjuster |
getAdjuster() |
ActiveCompletor |
getExec() |
Fitness |
getFitness() |
int |
getPruneTop() |
protected CommandGraph |
graph(Field field,
int start,
boolean dropsOnly) |
boolean |
isDropsOnly() |
DefaultAIKernel.Best |
searchNext(Comparator<DefaultAIKernel.Best> order,
Field originalField,
Field currentField,
List<ShapeType> bag,
int lookahead,
ShapeType type) |
ShapeType |
searchNext(Comparator<DefaultAIKernel.Best> order,
Field field,
ShapeSource shapes,
ShapeType[] next,
int lookahead) |
void |
setAdjuster(DefaultAIKernel.BestAdjuster adjuster) |
void |
setDropsOnly(boolean dropsOnly) |
void |
setExec(ActiveCompletor exec) |
void |
setFitness(Fitness fitness) |
void |
setPruneTop(int pruneTop) |
protected int |
starter(Field field,
ShapeType type) |
protected int |
starter(Field field,
ShapeType[] next,
int lookahead) |
ShapeType |
worstNext(Field field,
ShapeSource shapes,
ShapeType[] next,
int lookahead) |
public static Comparator<DefaultAIKernel.Best> WORST_ORDER
public static Comparator<DefaultAIKernel.Best> BEST_ORDER
protected Fitness fitness
protected ActiveCompletor exec
protected boolean dropsOnly
protected int pruneTop
protected DefaultAIKernel.BestAdjuster adjuster
public DefaultAIKernel()
public DefaultAIKernel(Fitness fitness)
public DefaultAIKernel(ActiveCompletor exec, Fitness fitness)
protected CommandGraph graph(Field field, int start, boolean dropsOnly)
public CommandGraph bestPlacement(Field field, int current, ShapeType[] next, int lookahead)
bestPlacement
in interface AIKernel
public DefaultAIKernel.Best bestPlacement(Field originalField, Field currentField, int currentShape, ShapeType[] next, int lookahead, int depth)
public ShapeType bestNext(Field field, ShapeSource shapes, ShapeType[] next, int lookahead)
public ShapeType worstNext(Field field, ShapeSource shapes, ShapeType[] next, int lookahead)
public ShapeType searchNext(Comparator<DefaultAIKernel.Best> order, Field field, ShapeSource shapes, ShapeType[] next, int lookahead)
public DefaultAIKernel.Best searchNext(Comparator<DefaultAIKernel.Best> order, Field originalField, Field currentField, List<ShapeType> bag, int lookahead, ShapeType type)
public Fitness getFitness()
public void setFitness(Fitness fitness)
public boolean isDropsOnly()
public void setDropsOnly(boolean dropsOnly)
public int getPruneTop()
public void setPruneTop(int pruneTop)
public DefaultAIKernel.BestAdjuster getAdjuster()
public void setAdjuster(DefaultAIKernel.BestAdjuster adjuster)
public ActiveCompletor getExec()
public void setExec(ActiveCompletor exec)
Copyright © 2015. All rights reserved.