org.vizzini.ai.geneticprogramming
Interface IFunction

All Superinterfaces:
Cloneable, INode, ITreeNode, IVisitable
All Known Implementing Classes:
AbsoluteValue, AbstractArithmeticFunction, AbstractBooleanFunction, AbstractComparisonFunction, AbstractFunction, AbstractMathematicFunction, AbstractSequenceFunction, Add, And, Divide, GreaterThan, GreaterThanDouble, If, IfFoodAheadFunction, Multiply, Not, Or, Sequence1Function, Sequence2Function, Sequence3Function, Subtract

public interface IFunction
extends INode

Defines methods required by a function in genetic programming.

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

Method Summary
 int getArgCount()
          Return the number of arguments used by this function.
 Class getArgType(int index)
          Return the type of the argument at the given index.
 
Methods inherited from interface org.vizzini.ai.geneticprogramming.INode
createNewInstance, evaluate, getName, getReturnType, 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, toString
 
Methods inherited from interface org.vizzini.util.tree.IVisitable
acceptBreadthFirst, acceptDepthFirst
 

Method Detail

getArgCount

int getArgCount()
Return the number of arguments used by this function.

Since:
v0.3

getArgType

Class getArgType(int index)
Return the type of the argument at the given index.

Parameters:
index - Argument index.
Since:
v0.3


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