|
||||||||||
| 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 String |
ATTRIBUTE_DESCRIPTION
The description attribute. |
static String |
ATTRIBUTE_NAME
The name attribute. |
static String |
GENERAL_ERROR
Generic error message for bad XML. |
static String |
TYPE_BASIC_LAYER
The type is BasicLayer. |
static String |
TYPE_BASIC_NET
The type is BasicNetwork. |
static String |
TYPE_BINARY
|
static String |
TYPE_CONTEXT_LAYER
The type is ContextLayer. |
static String |
TYPE_DIRECT_SYNAPSE
The type is DirectSynapse. |
static String |
TYPE_NORMALIZATION
The type is ParseTemplate. |
static String |
TYPE_ONE2ONE_SYNAPSE
The type is OneToOneSynapse. |
static String |
TYPE_POPULATION
The basic population. |
static String |
TYPE_PROPERTY
The type is PropertyData. |
static String |
TYPE_RADIAL_BASIS_LAYER
The type is RadialBasisFunctionLayer. |
static String |
TYPE_SCRIPT
|
static String |
TYPE_SVM
|
static String |
TYPE_TEXT
The type is TextData. |
static String |
TYPE_TRAINING
The type is TrainingData. |
static String |
TYPE_TRAINING_CONTINUATION
For training continuation. |
static String |
TYPE_WEIGHTED_SYNAPSE
The type is WeightedSynapse. |
static String |
TYPE_WEIGHTLESS_SYNAPSE
The type is WeightlessSynapse. |
| Constructor Summary | |
|---|---|
EncogPersistedCollection(File file)
Create a persistance collection for the specified file. |
|
EncogPersistedCollection(PersistenceLocation location)
Create an object based on the specified location. |
|
EncogPersistedCollection(String filename)
Construct an object with the specified filename. |
|
| Method Summary | |
|---|---|
void |
add(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(String name)
Delete the specified object. |
boolean |
exists(String name)
Determine if the specified resource exists. |
EncogPersistedObject |
find(DirectoryEntry d)
Find the specified object, using a DirectoryEntry. |
EncogPersistedObject |
find(String name)
Called to search all Encog objects in this collection for one with a name that passes what was passed in. |
Collection<DirectoryEntry> |
getDirectory()
|
String |
getEncogVersion()
|
int |
getFileVersion()
|
PersistenceLocation |
getLocation()
|
String |
getPlatform()
|
void |
mergeTemp()
Merge the temp file with the main one, call this to make any changes permanent. |
static void |
throwError(String tag)
Throw and log an error. |
void |
updateProperties(String name,
String newName,
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 String GENERAL_ERROR
public static final String TYPE_TEXT
public static final String TYPE_PROPERTY
public static final String TYPE_BASIC_NET
public static final String TYPE_BASIC_LAYER
public static final String TYPE_CONTEXT_LAYER
public static final String TYPE_RADIAL_BASIS_LAYER
public static final String TYPE_TRAINING
public static final String TYPE_WEIGHTED_SYNAPSE
public static final String TYPE_WEIGHTLESS_SYNAPSE
public static final String TYPE_DIRECT_SYNAPSE
public static final String TYPE_ONE2ONE_SYNAPSE
public static final String TYPE_NORMALIZATION
public static final String ATTRIBUTE_NAME
public static final String ATTRIBUTE_DESCRIPTION
public static final String TYPE_TRAINING_CONTINUATION
public static final String TYPE_POPULATION
public static final String TYPE_SVM
public static final String TYPE_BINARY
public static final String TYPE_SCRIPT
| Constructor Detail |
|---|
public EncogPersistedCollection(File file)
file - The file to load/save.public EncogPersistedCollection(PersistenceLocation location)
location - The location to load/save from.public EncogPersistedCollection(String filename)
filename - The filename to load/save from.| Method Detail |
|---|
public static void throwError(String tag)
tag - The tag this error is for.
public void add(String name,
EncogPersistedObject obj)
add in interface EncogCollectionname - The name of the object to load.obj - The object to add.public void buildDirectory()
buildDirectory in interface EncogCollectionpublic void clear()
clear in interface EncogCollectionpublic void create()
public void delete(DirectoryEntry d)
delete in interface EncogCollectiond - The object to delete.public void delete(EncogPersistedObject obj)
obj - The object to delete.public void delete(String name)
delete in interface EncogCollectionname - the object name.public EncogPersistedObject find(DirectoryEntry d)
find in interface EncogCollectiond - The directory entry to find.
public EncogPersistedObject find(String name)
find in interface EncogCollectionname - The name we are searching for.
public Collection<DirectoryEntry> getDirectory()
getDirectory in interface EncogCollectionpublic String getEncogVersion()
getEncogVersion in interface EncogCollectionpublic int getFileVersion()
getFileVersion in interface EncogCollectionpublic String getPlatform()
getPlatform in interface EncogCollectionpublic void mergeTemp()
public void updateProperties(String name,
String newName,
String newDesc)
updateProperties in interface EncogCollectionname - The name of the object to change.newName - The new name of this object.newDesc - The description for this object.public boolean exists(String name)
exists in interface EncogCollectionname - The name of the resource to check.
public PersistenceLocation getLocation()
getLocation in interface EncogCollection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||