|
||||||||||
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
public abstract class AbstractNode
Provides base functionality for a node in genetic programming.
Constructor Summary | |
---|---|
AbstractNode()
Construct this object. |
|
AbstractNode(String name)
Construct this object with the given parameter. |
Method Summary | |
---|---|
INode |
createNewInstance()
Create a new instance, using this as an exemplar. |
protected String |
dotLabel()
Return a dot label of this node. |
protected String |
dotLinkDesc()
Return a dot description of this node. |
boolean |
equals(Object object)
Return true if the given object is equal to this. |
String |
getName()
|
int |
hashCode()
Returns a hash code value for the object. |
void |
setName(String name)
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.vizzini.ai.geneticprogramming.INode |
---|
evaluate, getReturnType |
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 |
Constructor Detail |
---|
public AbstractNode()
public AbstractNode(String name)
name
- Name.Method Detail |
---|
public INode createNewInstance()
createNewInstance
in interface INode
public boolean equals(Object object)
equals
in class AbstractTreeNode
object
- The object to compare.public String getName()
getName
in interface INode
public int hashCode()
hashCode
in class AbstractTreeNode
public void setName(String name)
setName
in interface INode
name
- the name to setprotected String dotLabel()
dotLabel
in class AbstractTreeNode
protected String dotLinkDesc()
dotLinkDesc
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 |