|
||||||||||
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.ConstantDoubleTerminal
public class ConstantDoubleTerminal
Provides a double ephemeral random constant terminal in genetic programming.
Constructor Summary | |
---|---|
ConstantDoubleTerminal(double lowRange,
double 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 double |
getHighRange()
|
protected double |
getLowRange()
|
String |
getName()
|
Class |
getReturnType()
Return the type of the return value. |
protected void |
reinit()
Re-initialize. |
protected void |
setHighRange(double highRange)
|
protected void |
setLowRange(double lowRange)
|
protected void |
setValue(Double 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 ConstantDoubleTerminal(double lowRange, double highRange)
lowRange
- Low range.highRange
- High range.Method Detail |
---|
public INode createNewInstance()
createNewInstance
in interface INode
createNewInstance
in class AbstractNode
public Object evaluate(IContext context)
context
- Context in which to evaluate.public String getName()
getName
in interface INode
getName
in class AbstractNode
public Class getReturnType()
public String toString()
toString
in interface ITreeNode
toString
in class AbstractTerminal
protected double getHighRange()
protected double getLowRange()
protected void reinit()
protected void setHighRange(double highRange)
highRange
- the highRange to setprotected void setLowRange(double lowRange)
lowRange
- the lowRange to setprotected void setValue(Double 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 |