|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.util.tree.AbstractTreeNode
org.vizzini.ai.geneticprogramming.AbstractNode
org.vizzini.ai.geneticprogramming.terminal.AbstractTerminal
org.vizzini.game.boardgame.GridBoardEvaluatorTerminal
public class GridBoardEvaluatorTerminal
Provides a genetic programming terminal to assist in evaluating a grid board.
Field Summary | |
---|---|
static String |
AGENT_PROPERTY
Agent property name. |
static String |
GRID_BOARD_PROPERTY
Grid board property name. |
Constructor Summary | |
---|---|
GridBoardEvaluatorTerminal()
Construct this object with the given parameter. |
|
GridBoardEvaluatorTerminal(IntegerPosition position)
Construct this object with the given parameter. |
Method Summary | |
---|---|
Object |
evaluate(IContext context)
Evaluate this function. |
IntegerPosition |
getPosition()
|
Class |
getReturnType()
Return the type of the return value. |
int |
getX()
|
int |
getY()
|
int |
getZ()
|
protected int |
multiplier(IToken token,
IAgent agent)
Return the multiplier for a token from the given agent's perspective. |
void |
setPosition(IntegerPosition position)
|
void |
setX(int x)
|
void |
setY(int y)
|
void |
setZ(int z)
|
Methods inherited from class org.vizzini.ai.geneticprogramming.terminal.AbstractTerminal |
---|
toString |
Methods inherited from class org.vizzini.ai.geneticprogramming.AbstractNode |
---|
createNewInstance, dotLabel, dotLinkDesc, equals, getName, hashCode, setName |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.vizzini.ai.geneticprogramming.INode |
---|
createNewInstance, getName, setName |
Methods inherited from interface org.vizzini.util.tree.ITreeNode |
---|
add, breadthFirstIterator, children, clone, depthFirstIterator, getBreadthFirstList, getChildAt, getChildCount, getDepth, getDepthFirstList, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLevel, getNextSibling, getNodeCount, getParent, getPath, getRoot, getUserObject, insert, isChildAllowed, isLeaf, isRoot, remove, remove, removeAllChildren, removeFromParent, setChildAllowed, setParent, setUserObject |
Methods inherited from interface org.vizzini.util.tree.IVisitable |
---|
acceptBreadthFirst, acceptDepthFirst |
Field Detail |
---|
public static final String GRID_BOARD_PROPERTY
public static final String AGENT_PROPERTY
Constructor Detail |
---|
public GridBoardEvaluatorTerminal()
public GridBoardEvaluatorTerminal(IntegerPosition position)
position
- Integer position.Method Detail |
---|
public Object evaluate(IContext context)
context
- Context in which to evaluate.public IntegerPosition getPosition()
public Class getReturnType()
public int getX()
public int getY()
public int getZ()
public void setPosition(IntegerPosition position)
position
- the position to setpublic void setX(int x)
x
- the x to setpublic void setY(int y)
y
- the y to setpublic void setZ(int z)
z
- the z to setprotected int multiplier(IToken token, IAgent agent)
token
- The token.agent
- The agent.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |