|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eviline.ai.Context
public class Context
A decision context. Contains the original Field
, a copy
of the field with impossible areas marked, and some book-keeping info.
There is one Context
at each node in the decision tree.
Field Summary | |
---|---|
AIKernel |
ai
|
DecisionModifier |
decisionModifier
The decision modifier in use for this context. |
ShapeType |
omit
The ShapeType to omit from the decision. |
Field |
original
The original Field based on which a decision is to be made |
Field |
paintedImpossible
The original Field (see original ) but painted impossible. |
int |
remainingDepth
The remaining decision depth at this context in the decision tree. |
Constructor Summary | |
---|---|
Context(AIKernel ai,
DecisionModifier decisionModifier,
Field original,
int remainingDepth)
Create a new Context . |
Method Summary | |
---|---|
Context |
deeper(Field deeperOriginal)
Construct a Context that is a copy of this one, but for use at one level
deeper in the decision tree. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public AIKernel ai
public DecisionModifier decisionModifier
public Field original
Field
based on which a decision is to be made
public Field paintedImpossible
Field
(see original
) but painted impossible.
(see AbstractFitness.paintImpossibles(Field)
)
public int remainingDepth
public ShapeType omit
ShapeType
to omit from the decision.
Constructor Detail |
---|
public Context(AIKernel ai, DecisionModifier decisionModifier, Field original, int remainingDepth)
Context
.
decisionModifier
- original
- remainingDepth
- Method Detail |
---|
public Context deeper(Field deeperOriginal)
Context
that is a copy of this one, but for use at one level
deeper in the decision tree.
deeperOriginal
-
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |