|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.persist.EncogPersistedCollection
public class 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.
| Field Summary | |
|---|---|
static java.lang.String |
ATTRIBUTE_DESCRIPTION
The description attribute. |
static java.lang.String |
ATTRIBUTE_NAME
The name attribute. |
static java.lang.String |
GENERAL_ERROR
Generic error message for bad XML. |
static java.lang.String |
TYPE_BASIC_LAYER
The type is BasicLayer. |
static java.lang.String |
TYPE_BASIC_NET
The type is BasicNetwork. |
static java.lang.String |
TYPE_CONTEXT_LAYER
The type is ContextLayer. |
static java.lang.String |
TYPE_DIRECT_SYNAPSE
The type is DirectSynapse. |
static java.lang.String |
TYPE_NORMALIZATION
The type is ParseTemplate. |
static java.lang.String |
TYPE_ONE2ONE_SYNAPSE
The type is OneToOneSynapse. |
static java.lang.String |
TYPE_PROPERTY
The type is PropertyData. |
static java.lang.String |
TYPE_RADIAL_BASIS_LAYER
The type is RadialBasisFunctionLayer. |
static java.lang.String |
TYPE_TEXT
The type is TextData. |
static java.lang.String |
TYPE_TRAINING
The type is TrainingData. |
static java.lang.String |
TYPE_TRAINING_CONTINUATION
For training continuation. |
static java.lang.String |
TYPE_WEIGHTED_SYNAPSE
The type is WeightedSynapse. |
static java.lang.String |
TYPE_WEIGHTLESS_SYNAPSE
The type is WeightlessSynapse. |
| Constructor Summary | |
|---|---|
EncogPersistedCollection(java.io.File file)
Create a persistance collection for the specified file. |
|
EncogPersistedCollection(PersistenceLocation location)
Create an object based on the specified location. |
|
EncogPersistedCollection(java.lang.String filename)
Construct an object with the specified filename. |
|
| Method Summary | |
|---|---|
void |
add(java.lang.String name,
EncogPersistedObject obj)
Add an EncogPersistedObject to the collection. |
void |
buildDirectory()
Build a directory of objects. |
void |
clear()
Clear the collection. |
void |
create()
Create the file. |
void |
delete(DirectoryEntry d)
Delete the specified object, use a directory entry. |
void |
delete(EncogPersistedObject obj)
Delete the specified object. |
void |
delete(java.lang.String name)
Delete the specified object. |
EncogPersistedObject |
find(DirectoryEntry d)
Find the specified object, using a DirectoryEntry. |
EncogPersistedObject |
find(java.lang.String name)
Called to search all Encog objects in this collection for one with a name that passes what was passed in. |
java.util.Set<DirectoryEntry> |
getDirectory()
|
java.lang.String |
getEncogVersion()
|
int |
getFileVersion()
|
java.lang.String |
getPlatform()
|
void |
mergeTemp()
Merge the temp file with the main one, call this to make any changes permanent. |
static void |
throwError(java.lang.String tag)
Throw and log an error. |
void |
updateProperties(java.lang.String name,
java.lang.String newName,
java.lang.String newDesc)
Update any header properties for an Encog object, for example, a rename. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String GENERAL_ERROR
public static final java.lang.String TYPE_TEXT
public static final java.lang.String TYPE_PROPERTY
public static final java.lang.String TYPE_BASIC_NET
public static final java.lang.String TYPE_BASIC_LAYER
public static final java.lang.String TYPE_CONTEXT_LAYER
public static final java.lang.String TYPE_RADIAL_BASIS_LAYER
public static final java.lang.String TYPE_TRAINING
public static final java.lang.String TYPE_WEIGHTED_SYNAPSE
public static final java.lang.String TYPE_WEIGHTLESS_SYNAPSE
public static final java.lang.String TYPE_DIRECT_SYNAPSE
public static final java.lang.String TYPE_ONE2ONE_SYNAPSE
public static final java.lang.String TYPE_NORMALIZATION
public static final java.lang.String ATTRIBUTE_NAME
public static final java.lang.String ATTRIBUTE_DESCRIPTION
public static final java.lang.String TYPE_TRAINING_CONTINUATION
| Constructor Detail |
|---|
public EncogPersistedCollection(java.io.File file)
file - The file to load/save.public EncogPersistedCollection(PersistenceLocation location)
location - The location to load/save from.public EncogPersistedCollection(java.lang.String filename)
filename - The filename to load/save from.| Method Detail |
|---|
public static void throwError(java.lang.String tag)
tag - The tag this error is for.
public void add(java.lang.String name,
EncogPersistedObject obj)
name - The name of the object to load.obj - The object to add.public void buildDirectory()
public void clear()
public void create()
public void delete(DirectoryEntry d)
d - The object to delete.public void delete(EncogPersistedObject obj)
obj - The object to delete.public void delete(java.lang.String name)
name - the object name.public EncogPersistedObject find(DirectoryEntry d)
d - The directory entry to find.
public EncogPersistedObject find(java.lang.String name)
name - The name we are searching for.
public java.util.Set<DirectoryEntry> getDirectory()
public java.lang.String getEncogVersion()
public int getFileVersion()
public java.lang.String getPlatform()
public void mergeTemp()
public void updateProperties(java.lang.String name,
java.lang.String newName,
java.lang.String newDesc)
name - The name of the object to change.newName - The new name of this object.newDesc - The description for this object.
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||