The Encog Project

org.encog.persist
Class EncogMemoryCollection

java.lang.Object
  extended by org.encog.persist.EncogMemoryCollection

public class EncogMemoryCollection
extends java.lang.Object

A memory based collection of Encog objects. Does not use the more complex temp file structure like EncogPersistedCollection, but also can't handle gigantic files. This class can load and save from/to Encog EG files.


Constructor Summary
EncogMemoryCollection()
           
 
Method Summary
 java.util.Map<java.lang.String,EncogPersistedObject> getContents()
           
 java.lang.String getEncogVersion()
           
 int getFileVersion()
           
 java.lang.String getPlatform()
           
 void load(PersistenceLocation location)
          Load the contents of a location.
 void save(PersistenceLocation location)
          Save the contents of this collection to a location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncogMemoryCollection

public EncogMemoryCollection()
Method Detail

getContents

public java.util.Map<java.lang.String,EncogPersistedObject> getContents()
Returns:
The objects that were loaded from this file.

getEncogVersion

public java.lang.String getEncogVersion()
Returns:
The version of Encog that this file was created with.

getFileVersion

public int getFileVersion()
Returns:
The Encog file version.

getPlatform

public java.lang.String getPlatform()
Returns:
The platform that this file was created on.

load

public void load(PersistenceLocation location)
Load the contents of a location.

Parameters:
location - The location to load from.

save

public void save(PersistenceLocation location)
Save the contents of this collection to a location.

Parameters:
location - The location to save to.

The Encog Project