org.encog.persist
Class EncogMemoryCollection
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EncogMemoryCollection
public EncogMemoryCollection()
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.