|
||||||||||
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.function.AbstractFunction
public abstract class AbstractFunction
Provides base functionality for a function in genetic programming.
Constructor Summary | |
---|---|
AbstractFunction()
Construct this object with the given parameter. |
|
AbstractFunction(String name)
Construct this object with the given parameter. |
Method Summary | |
---|---|
void |
add(ITreeNode treeNode)
Add the given child. |
protected void |
checkState()
Check the current state of this function for legality. |
protected ITreeNodeCollection |
createTreeNodeCollection()
Create a new tree node collection of the appropriate type. |
static boolean |
isCheckingState()
|
static void |
setCheckingState(boolean isCheckingState)
|
String |
toString()
Return a string representation of this object. |
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.IFunction |
---|
getArgCount, getArgType |
Methods inherited from interface org.vizzini.ai.geneticprogramming.INode |
---|
createNewInstance, evaluate, getName, getReturnType, setName |
Methods inherited from interface org.vizzini.util.tree.ITreeNode |
---|
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 |
Constructor Detail |
---|
public AbstractFunction()
public AbstractFunction(String name)
name
- Name.Method Detail |
---|
public static boolean isCheckingState()
public static void setCheckingState(boolean isCheckingState)
isCheckingState
- the isCheckingState to setpublic void add(ITreeNode treeNode)
add
in interface ITreeNode
add
in class AbstractTreeNode
public String toString()
toString
in interface ITreeNode
toString
in class AbstractTreeNode
protected void checkState()
protected ITreeNodeCollection createTreeNodeCollection()
createTreeNodeCollection
in class AbstractTreeNode
|
||||||||||
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 |