org.encog.neural.networks
Class PersistBasicNetwork

java.lang.Object
  extended by org.encog.neural.networks.PersistBasicNetwork
All Implemented Interfaces:
EncogPersistor

public class PersistBasicNetwork
extends Object
implements EncogPersistor

Persist a basic network.


Constructor Summary
PersistBasicNetwork()
           
 
Method Summary
 int getFileVersion()
          
 String getPersistClassString()
          
 Object read(InputStream is)
          Read the object from an input stream.
 void save(OutputStream os, Object obj)
          Save the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistBasicNetwork

public PersistBasicNetwork()
Method Detail

getFileVersion

public final int getFileVersion()

Specified by:
getFileVersion in interface EncogPersistor
Returns:
Get the file version used by this persistor.

getPersistClassString

public final String getPersistClassString()

Specified by:
getPersistClassString in interface EncogPersistor
Returns:
Get the class string for the object.

read

public final Object read(InputStream is)
Read the object from an input stream.

Specified by:
read in interface EncogPersistor
Parameters:
is - The input stream.
Returns:
The object.

save

public final void save(OutputStream os,
                       Object obj)
Save the object.

Specified by:
save in interface EncogPersistor
Parameters:
os - The output stream to save to.
obj - The object to save.


Copyright © 2012. All Rights Reserved.