org.joone.helpers.templating
Class CodeGenerator
- java.lang.Object
-
- org.joone.helpers.templating.CodeGenerator
-
public class CodeGenerator extends java.lang.ObjectThis Class generates the source code to build the neural network passed as parameter to the getCode method. It searches the file containing the template either in the file system or in the classpath.
-
-
Constructor Summary
Constructors Constructor and Description CodeGenerator()Creates a new instance of CodeGeneratorCodeGenerator(java.util.Properties props)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetCode(NeuralNet nnet, java.lang.String templateName, java.lang.String packageName, java.lang.String className)static voidmain(java.lang.String[] args)
-
-
-
Constructor Detail
-
CodeGenerator
public CodeGenerator() throws java.lang.ExceptionCreates a new instance of CodeGenerator- Throws:
java.lang.Exception
-
CodeGenerator
public CodeGenerator(java.util.Properties props) throws java.lang.Exception- Throws:
java.lang.Exception
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception- Parameters:
args- the command line arguments- Throws:
java.lang.Exception
-
getCode
public java.lang.String getCode(NeuralNet nnet, java.lang.String templateName, java.lang.String packageName, java.lang.String className)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG