org.vizzini.ai.geneticprogramming
Interface INode

All Superinterfaces:
Cloneable, ITreeNode, IVisitable
All Known Subinterfaces:
IFunction, ITerminal
All Known Implementing Classes:
AbsoluteValue, AbstractAntTerminal, AbstractArithmeticFunction, AbstractBooleanFunction, AbstractComparisonFunction, AbstractFunction, AbstractMathematicFunction, AbstractNode, AbstractSequenceFunction, AbstractTerminal, Add, And, ConstantDoubleTerminal, ConstantIntTerminal, DefaultTerminal, Divide, GreaterThan, GreaterThanDouble, GridBoardEvaluatorTerminal, If, IfFoodAheadFunction, InputTerminal, LeftTerminal, MoveTerminal, Multiply, Not, Or, RightTerminal, Sequence1Function, Sequence2Function, Sequence3Function, StateVariableTerminal, Subtract

public interface INode
extends ITreeNode

Defines methods required by a node in genetic programming.

Since:
v0.3
Version:
v0.3
Author:
Jeffrey M. Thompson

Method Summary
 INode createNewInstance()
          Create a new instance, using this as an exemplar.
 Object evaluate(IContext context)
          Evaluate this function.
 String getName()
           
 Class getReturnType()
          Return the type of the return value.
 void setName(String name)
           
 
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, toString
 
Methods inherited from interface org.vizzini.util.tree.IVisitable
acceptBreadthFirst, acceptDepthFirst
 

Method Detail

evaluate

Object evaluate(IContext context)
Evaluate this function.

Parameters:
context - Context in which to evaluate.
Since:
v0.3

createNewInstance

INode createNewInstance()
Create a new instance, using this as an exemplar.

Since:
v0.3

getName

String getName()
Returns:
Return name.
Since:
v0.3

getReturnType

Class getReturnType()
Return the type of the return value.

Since:
v0.3

setName

void setName(String name)
Parameters:
name - the name to set
Since:
v0.3


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02