org.encog.app.generate.program
public class EncogProgramNode extends EncogTreeNode
Constructor and Description |
---|
EncogProgramNode(EncogGenProgram theProgram,
EncogTreeNode theParent,
NodeType theNodeType,
String theName)
Construct the program node.
|
Modifier and Type | Method and Description |
---|---|
void |
addArg(double argValue)
Add a double argument.
|
void |
addArg(int argValue)
Add an int argument.
|
void |
addArg(Object argValue)
Add an object argument.
|
void |
addArg(String argValue)
Add a string argument.
|
EncogProgramNode |
createArray(String name,
double[] a)
Create an array.
|
EncogProgramNode |
createFunction(String theName)
Create a function.
|
EncogProgramNode |
createFunctionCall(EncogProgramNode funct,
String returnType,
String returnVariable)
Create a function call.
|
EncogProgramNode |
createFunctionCall(String name,
String returnType,
String returnVariable)
Create a function call.
|
EncogProgramNode |
createMainFunction()
Create a new main function.
|
EncogProgramNode |
createNetworkFunction(String name,
File method)
Create a new network function.
|
void |
defineConst(EncogArgType type,
String name,
String value)
Define a const.
|
EncogProgramNode |
embedTraining(File data)
Embed training data.
|
EncogProgramNode |
generateLoadTraining(File data)
Load the training data.
|
List<EncogProgramArg> |
getArgs() |
String |
getName() |
NodeType |
getType() |
addComment, getChildren, getParent, getProgram, setProgram
public EncogProgramNode(EncogGenProgram theProgram, EncogTreeNode theParent, NodeType theNodeType, String theName)
theProgram
- THe program.theParent
- The parent.theNodeType
- The node type.theName
- The name of the node.public void addArg(double argValue)
argValue
- The argument value.public void addArg(int argValue)
argValue
- The argument value.public void addArg(Object argValue)
argValue
- The argument value.public void addArg(String argValue)
argValue
- The argument value.public EncogProgramNode createArray(String name, double[] a)
name
- THe name of the array.a
- The value to init the array to.public EncogProgramNode createFunction(String theName)
theName
- The name of the function.public EncogProgramNode createFunctionCall(EncogProgramNode funct, String returnType, String returnVariable)
funct
- The function to call.returnType
- The type returned.returnVariable
- The value to assigne the function call to.public EncogProgramNode createFunctionCall(String name, String returnType, String returnVariable)
name
- The name of the function to call.returnType
- The return type.returnVariable
- The variable to assign the function to.public EncogProgramNode createMainFunction()
public EncogProgramNode createNetworkFunction(String name, File method)
name
- The name of the network function.method
- The method to call.public void defineConst(EncogArgType type, String name, String value)
type
- The type of const.name
- The name of the const.value
- The value of the const.public EncogProgramNode embedTraining(File data)
data
- The training data to embed.public EncogProgramNode generateLoadTraining(File data)
data
- The data.public List<EncogProgramArg> getArgs()
public String getName()
public NodeType getType()
Copyright © 2014. All Rights Reserved.