C# Class Encog.Persist.Persistors.PersistorUtil

This class contains some utilities for persisting objects.
Exibir arquivo Open project: encog/encog-silverlight-core Class Usage Examples

Public Methods

Method Description
BeginEncogObject ( String objectType, WriteXML xmlOut, IEncogPersistedObject obj, bool top ) : void

Write the beginning XML for an Encog object.

CreatePersistor ( String className ) : IPersistor

Create a persistor object. These objects know how to persist certain types of classes.

LoadMatrix ( ReadXML xmlIn ) : Matrix

Load a matrix from the reader.

SaveMatrix ( Matrix matrix, WriteXML xmlOut ) : void

Save the specified matrix.

Private Methods

Method Description
PersistorUtil ( ) : System

Private constructor.

Method Details

BeginEncogObject() public static method

Write the beginning XML for an Encog object.
public static BeginEncogObject ( String objectType, WriteXML xmlOut, IEncogPersistedObject obj, bool top ) : void
objectType String The object type to persist.
xmlOut Encog.Parse.Tags.Write.WriteXML The object that is being persisted.
obj IEncogPersistedObject The XML writer.
top bool Is this a top-level object, that needs a name /// and description?
return void

CreatePersistor() public static method

Create a persistor object. These objects know how to persist certain types of classes.
public static CreatePersistor ( String className ) : IPersistor
className String The name of the class to create a persistor for.
return IPersistor

LoadMatrix() public static method

Load a matrix from the reader.
public static LoadMatrix ( ReadXML xmlIn ) : Matrix
xmlIn ReadXML The XML reader.
return Matrix

SaveMatrix() public static method

Save the specified matrix.
public static SaveMatrix ( Matrix matrix, WriteXML xmlOut ) : void
matrix Matrix The matrix to save.
xmlOut WriteXML The XML writer.
return void