de.webdings.jannis.neuralnet.nnml

Class NNMLToNet

Known Direct Subclasses:
NNMLToBiNet

public abstract class NNMLToNet
extends java.lang.Object

NNMLToNet is used to construct a neural net from a NNML representation. NNMLToNet is abstract, so a concrete subclass has to be used.

Version:
0.1 11.08.2005

Author:
Stefan Thesing
Website: http://www.webdings.de

Method Summary

Neuron[][]
convertToNet(String s)
This is an abstract method to be overwritten by concrete subclasses.
Neuron[][]
convertToNet(StringBuffer s)
This method is concrete, yet it doesn't do anything on it's own.
Neuron[][]
convertToNet(char[] c)
This method is concrete, yet it doesn't do anything on it's own.

Method Details

convertToNet

public Neuron[][] convertToNet(String s)
            throws Exception
This is an abstract method to be overwritten by concrete subclasses.

Parameters:
s - NNML representation of a neural net

Returns:
array containing layers of Neurons


convertToNet

public Neuron[][] convertToNet(StringBuffer s)
            throws Exception
This method is concrete, yet it doesn't do anything on it's own. It simply calls the abstract method of the same name.
The implementation is:
public Neuron[][] convertToNet(StringBuffer s) throws Exception {
return convertToNet(new String(s));
}
So this method calls the method of a concrete subclass of NNMLToNet.

Parameters:
s - NNML representation of a neural net

Returns:
array containing layers of Neurons


convertToNet

public Neuron[][] convertToNet(char[] c)
            throws Exception
This method is concrete, yet it doesn't do anything on it's own. It simply calls the abstract method of the same name.
The implementation is:
public Neuron[][] convertToNet(char[] c) throws Exception {
return convertToNet(new String(c));
}
So this method calls the method of a concrete subclass of NNMLToNet.

Parameters:
c - NNML representation of a neural net

Returns:
array containing layers of Neurons


NNMLToNet.java - Copyright (c) 2005 by Stefan Thesing

This file is part of Jannis.

Jannis is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Jannis is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Jannis; if not, write to the
Free Software Foundation, Inc.,
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA



© 2005 by Stefan Thesing;
Verbatim copying and redistribution of this entire page are permitted provided this notice is preserved.