org.encog.ml.prg
public class ProgramNode extends BasicTreeNode implements Serializable
Constructor and Description |
---|
ProgramNode(EncogProgram theOwner,
ProgramExtensionTemplate theTemplate,
ProgramNode[] theArgs)
Construct the program node.
|
Modifier and Type | Method and Description |
---|---|
boolean |
allConstChildren() |
boolean |
allConstDescendants() |
ExpressionValue |
evaluate() |
ProgramNode |
getChildNode(int index)
Get the specified child node.
|
ExpressionValue[] |
getData() |
String |
getName() |
EncogProgram |
getOwner() |
ProgramExtensionTemplate |
getTemplate() |
boolean |
isVariable() |
String |
toString() |
addChildNodes, allLeafChildren, getChildNodes, isLeaf, size
public ProgramNode(EncogProgram theOwner, ProgramExtensionTemplate theTemplate, ProgramNode[] theArgs)
theOwner
- The owner of the node.theTemplate
- The opcode that this node is based on.theArgs
- The child nodes to this node.public boolean allConstChildren()
public boolean allConstDescendants()
public ExpressionValue evaluate()
public ProgramNode getChildNode(int index)
index
- The index of this node.public ExpressionValue[] getData()
public String getName()
public EncogProgram getOwner()
public ProgramExtensionTemplate getTemplate()
public boolean isVariable()
Copyright © 2014. All Rights Reserved.