org.vizzini.ai.geneticprogramming.terminal
Class AbstractTerminal

java.lang.Object
  extended by org.vizzini.util.tree.AbstractTreeNode
      extended by org.vizzini.ai.geneticprogramming.AbstractNode
          extended by org.vizzini.ai.geneticprogramming.terminal.AbstractTerminal
All Implemented Interfaces:
Cloneable, INode, ITerminal, ITreeNode, IVisitable
Direct Known Subclasses:
AbstractAntTerminal, ConstantDoubleTerminal, ConstantIntTerminal, DefaultTerminal, GridBoardEvaluatorTerminal, InputTerminal, StateVariableTerminal

public abstract class AbstractTerminal
extends AbstractNode
implements ITerminal

Provides base functionality for a terminal in genetic programming.

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

Constructor Summary
AbstractTerminal()
          Construct this object.
AbstractTerminal(String name)
          Construct this object with the given parameter.
 
Method Summary
 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 org.vizzini.util.tree.AbstractTreeNode
acceptBreadthFirst, acceptDepthFirst, add, breadthFirstIterator, children, clone, createTreeNodeCollection, depthFirstIterator, dotDesc, fillCollectionBreadthFirst, fillCollectionChildren, fillCollectionDepthFirst, getBreadthFirstList, getChildAt, getChildCount, getChildren, getDepth, getDepthFirstList, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLevel, getNextSibling, getNodeCount, getParent, getPath, getRoot, getTreeNodeCollectionClass, getUserObject, insert, isChildAllowed, isLeaf, isRoot, remove, remove, removeAllChildren, removeFromParent, setChildAllowed, setChildren, setParent, setTreeNodeCollectionClass, setUserObject
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
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
 
Methods inherited from interface org.vizzini.util.tree.IVisitable
acceptBreadthFirst, acceptDepthFirst
 

Constructor Detail

AbstractTerminal

public AbstractTerminal()
Construct this object.

Since:
v0.3

AbstractTerminal

public AbstractTerminal(String name)
Construct this object with the given parameter.

Parameters:
name - Name.
Since:
v0.3
Method Detail

toString

public String toString()
Return a string representation of this object.

Specified by:
toString in interface ITreeNode
Overrides:
toString in class AbstractTreeNode
Since:
v0.3


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02