|
||||||||||
| 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.terminal.AbstractTerminal
org.vizzini.ai.geneticprogramming.terminal.ConstantIntTerminal
public class ConstantIntTerminal
Provides an integer ephemeral random constant terminal in genetic programming.
| Constructor Summary | |
|---|---|
ConstantIntTerminal(int lowRange,
int highRange)
Construct this object with the given parameter. |
|
| Method Summary | |
|---|---|
INode |
createNewInstance()
Create a new instance, using this as an exemplar. |
Object |
evaluate(IContext context)
Evaluate this function. |
protected int |
getHighRange()
|
protected int |
getLowRange()
|
String |
getName()
|
Class |
getReturnType()
Return the type of the return value. |
protected void |
reinit()
Re-initialize. |
protected void |
setHighRange(int highRange)
|
protected void |
setLowRange(int lowRange)
|
protected void |
setValue(Integer value)
|
String |
toString()
Return a string representation of this object. |
| Methods inherited from class org.vizzini.ai.geneticprogramming.AbstractNode |
|---|
dotLabel, dotLinkDesc, equals, hashCode, setName |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.vizzini.ai.geneticprogramming.INode |
|---|
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 |
|---|
public ConstantIntTerminal(int lowRange,
int highRange)
lowRange - Low range.highRange - High range.| Method Detail |
|---|
public INode createNewInstance()
createNewInstance in interface INodecreateNewInstance in class AbstractNodepublic Object evaluate(IContext context)
context - Context in which to evaluate.public String getName()
getName in interface INodegetName in class AbstractNodepublic Class getReturnType()
public String toString()
toString in interface ITreeNodetoString in class AbstractTerminalprotected int getHighRange()
protected int getLowRange()
protected void reinit()
protected void setHighRange(int highRange)
highRange - the highRange to setprotected void setLowRange(int lowRange)
lowRange - the lowRange to setprotected void setValue(Integer value)
value - the value to set
|
||||||||||
| 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 |