org.neuroph.util.io
Class JDBCInputAdapter

java.lang.Object
  extended by org.neuroph.util.io.JDBCInputAdapter
All Implemented Interfaces:
InputAdapter

public class JDBCInputAdapter
extends Object
implements InputAdapter

Implementation of InputAdapter interface for reading neural network inputs from database.

Author:
Zoran Sevarac
See Also:
InputAdapter

Constructor Summary
JDBCInputAdapter(Connection connection, String sql)
           
 
Method Summary
 void close()
          Closes result set used as data source.
 double[] readInput()
          Reads next row from result set and returns input for neural network as array of doubles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCInputAdapter

public JDBCInputAdapter(Connection connection,
                        String sql)
Method Detail

readInput

public double[] readInput()
Reads next row from result set and returns input for neural network as array of doubles.

Specified by:
readInput in interface InputAdapter
Returns:
neural network input as array of doubles

close

public void close()
Closes result set used as data source.

Specified by:
close in interface InputAdapter


Copyright © 2012. All Rights Reserved.