C# 클래스 Encog.Persist.EncogPersistedCollection

An EncogPersistedCollection holds a collection of EncogPersistedObjects. This allows the various neural networks and some data sets to be persisted. They are persisted to an XML form. The EncogPersistedCollection does not load the object into memory at once. This allows it to manage large files.
상속: IEncogCollection
파일 보기 프로젝트 열기: encog/encog-silverlight-core

공개 메소드들

메소드 설명
Add ( String name, IEncogPersistedObject obj ) : void

Add an EncogPersistedObject to the collection.

BuildDirectory ( ) : void

Build a directory of objects.

Clear ( ) : void

Clear the collection.

Create ( ) : void

Create the file.

Delete ( DirectoryEntry d ) : void

Delete the specified object, use a directory entry.

Delete ( IEncogPersistedObject obj ) : void

Delete the specified object.

Delete ( String name ) : void

Delete the specified object.

EncogPersistedCollection ( IPersistenceLocation location, FileMode mode ) : System

Create an object based on the specified location.

EncogPersistedCollection ( String file, FileMode mode ) : System

Create a persistance collection for the specified file.

Exists ( String name ) : bool

Determine if the specified resource exists.

Find ( DirectoryEntry d ) : IEncogPersistedObject

Find the specified object, using a DirectoryEntry.

Find ( String name ) : IEncogPersistedObject

Called to search all Encog objects in this collection for one with a name that passes what was passed in.

MergeTemp ( ) : void

Merge the temp file with the main one, call this to make any changes permanent.

ThrowError ( String tag ) : void

Throw and log an error.

UpdateProperties ( String name, String newName, String newDesc ) : void

Update any header properties for an Encog object, for example, a rename.

메소드 상세

Add() 공개 메소드

Add an EncogPersistedObject to the collection.
public Add ( String name, IEncogPersistedObject obj ) : void
name String The name of the object to load.
obj IEncogPersistedObject The object to add.
리턴 void

BuildDirectory() 공개 메소드

Build a directory of objects.
public BuildDirectory ( ) : void
리턴 void

Clear() 공개 메소드

Clear the collection.
public Clear ( ) : void
리턴 void

Create() 공개 메소드

Create the file.
public Create ( ) : void
리턴 void

Delete() 공개 메소드

Delete the specified object, use a directory entry.
public Delete ( DirectoryEntry d ) : void
d DirectoryEntry The object to delete.
리턴 void

Delete() 공개 메소드

Delete the specified object.
public Delete ( IEncogPersistedObject obj ) : void
obj IEncogPersistedObject The object to delete.
리턴 void

Delete() 공개 메소드

Delete the specified object.
public Delete ( String name ) : void
name String The object name.
리턴 void

EncogPersistedCollection() 공개 메소드

Create an object based on the specified location.
public EncogPersistedCollection ( IPersistenceLocation location, FileMode mode ) : System
location IPersistenceLocation The location to load/save from.
mode FileMode The file mode.
리턴 System

EncogPersistedCollection() 공개 메소드

Create a persistance collection for the specified file.
public EncogPersistedCollection ( String file, FileMode mode ) : System
file String The file to load/save.
mode FileMode The file mode
리턴 System

Exists() 공개 메소드

Determine if the specified resource exists.
public Exists ( String name ) : bool
name String The name of the resource to check.
리턴 bool

Find() 공개 메소드

Find the specified object, using a DirectoryEntry.
public Find ( DirectoryEntry d ) : IEncogPersistedObject
d DirectoryEntry The directory entry to find.
리턴 IEncogPersistedObject

Find() 공개 메소드

Called to search all Encog objects in this collection for one with a name that passes what was passed in.
public Find ( String name ) : IEncogPersistedObject
name String The name we are searching for.
리턴 IEncogPersistedObject

MergeTemp() 공개 메소드

Merge the temp file with the main one, call this to make any changes permanent.
public MergeTemp ( ) : void
리턴 void

ThrowError() 공개 정적인 메소드

Throw and log an error.
public static ThrowError ( String tag ) : void
tag String The tag this error is for.
리턴 void

UpdateProperties() 공개 메소드

Update any header properties for an Encog object, for example, a rename.
public UpdateProperties ( String name, String newName, String newDesc ) : void
name String The name of the object to change.
newName String The new name of this object.
newDesc String The description for this object.
리턴 void