|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.app.generate.program.EncogTreeNode
org.encog.app.generate.program.EncogProgramNode
public class EncogProgramNode
A node that holds a program.
Constructor Summary | |
---|---|
EncogProgramNode(EncogGenProgram theProgram,
EncogTreeNode theParent,
NodeType theNodeType,
String theName)
Construct the program node. |
Method Summary | |
---|---|
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()
|
Methods inherited from class org.encog.app.generate.program.EncogTreeNode |
---|
addComment, getChildren, getParent, getProgram, setProgram |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |