net.openai.ai.nn.persistence
Class Persistence

java.lang.Object
  |
  +--net.openai.ai.nn.persistence.Persistence

public class Persistence
extends java.lang.Object

Class declaration

Version:
%I%, %G%
Author:
Andre Sobotovych

Constructor Summary
Persistence()
          Constructor declaration
 
Method Summary
static java.lang.Object deserialize(java.lang.String inputFile)
          Method declaration
static void networkMarshaller(Network nt, java.lang.String networkFile, java.lang.String mapFile)
          Marshalls network object into XML file
static Network networkUnmarshaller(java.lang.String networkFile, java.lang.String mapFile)
          Unmarshalls network object from XML file
static void objectMarshaller(java.lang.Object object, java.lang.String mapFile, java.lang.String outFile)
          This method will marshall an object into a file given mapping structure and class object
static java.lang.Object objectUnmarshaller(java.lang.Class classObj, java.lang.String inputFile, java.lang.String mapFile)
          This method will unmarshall an object from a file given mapping structure and class object
static void serialize(java.lang.Object object, java.lang.String outputFile)
          Method declaration
static void trainingSetMarshaller(TrainingSet ts, java.lang.String outputFile, java.lang.String mapFile)
          Marshalls TrainingSet object into XML file
static TrainingSet trainingSetUnmarshaller(java.lang.String inputFile, java.lang.String mapFile)
          Unmarshalls TrainingSet object from XML file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Persistence

public Persistence()
Constructor declaration

Method Detail

networkMarshaller

public static void networkMarshaller(Network nt,
                                     java.lang.String networkFile,
                                     java.lang.String mapFile)
Marshalls network object into XML file

Parameters:
nt - Network object
networkFile - name of the output file
mapFile - name and path of the castor mapping file

networkUnmarshaller

public static Network networkUnmarshaller(java.lang.String networkFile,
                                          java.lang.String mapFile)
Unmarshalls network object from XML file

Parameters:
networkFile - name of the input file
mapFile - name and path of the castor mapping file
Returns:
Network object

trainingSetMarshaller

public static void trainingSetMarshaller(TrainingSet ts,
                                         java.lang.String outputFile,
                                         java.lang.String mapFile)
Marshalls TrainingSet object into XML file

Parameters:
ts - TrainingSet object
outputFile - name of the output file
mapFile - name and path of the castor mapping file

trainingSetUnmarshaller

public static TrainingSet trainingSetUnmarshaller(java.lang.String inputFile,
                                                  java.lang.String mapFile)
Unmarshalls TrainingSet object from XML file

Parameters:
inputFile - name of the input file
mapFile - name and path of the castor mapping file
Returns:
TrainingSet object

objectMarshaller

public static void objectMarshaller(java.lang.Object object,
                                    java.lang.String mapFile,
                                    java.lang.String outFile)
This method will marshall an object into a file given mapping structure and class object


objectUnmarshaller

public static java.lang.Object objectUnmarshaller(java.lang.Class classObj,
                                                  java.lang.String inputFile,
                                                  java.lang.String mapFile)
This method will unmarshall an object from a file given mapping structure and class object

Parameters:
classObj - class object
inputFile - name of the input file
mapFile - name and path of the castor mapping file
Returns:
class object

serialize

public static void serialize(java.lang.Object object,
                             java.lang.String outputFile)
Method declaration

Parameters:
object -
outputFile -
See Also:

deserialize

public static java.lang.Object deserialize(java.lang.String inputFile)
Method declaration

Parameters:
inputFile -
Returns:
See Also:


Copyright - 2001 OpenAI Labs. All Rights Reserved.