The Encog Project

org.encog.persist.persistors
Class BasicLayerPersistor

java.lang.Object
  extended by org.encog.persist.persistors.BasicLayerPersistor
All Implemented Interfaces:
Persistor

public class BasicLayerPersistor
extends java.lang.Object
implements Persistor

Provides basic functions that many of the persistors will need.

Author:
jheaton

Field Summary
static java.lang.String PROPERTY_NEURONS
          The neurons property.
static java.lang.String PROPERTY_THRESHOLD
          The threshold property.
static java.lang.String PROPERTY_X
          The x-coordinate to place this object at.
static java.lang.String PROPERTY_Y
          The y-coordinate to place this object at.
static java.lang.String TAG_ACTIVATION
          The activation function tag.
 
Constructor Summary
BasicLayerPersistor()
           
 
Method Summary
 EncogPersistedObject load(ReadXML in)
          Load the specified Encog object from an XML reader.
 void save(EncogPersistedObject obj, WriteXML out)
          Save the specified Encog object to an XML writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_ACTIVATION

public static final java.lang.String TAG_ACTIVATION
The activation function tag.

See Also:
Constant Field Values

PROPERTY_NEURONS

public static final java.lang.String PROPERTY_NEURONS
The neurons property.

See Also:
Constant Field Values

PROPERTY_THRESHOLD

public static final java.lang.String PROPERTY_THRESHOLD
The threshold property.

See Also:
Constant Field Values

PROPERTY_X

public static final java.lang.String PROPERTY_X
The x-coordinate to place this object at.

See Also:
Constant Field Values

PROPERTY_Y

public static final java.lang.String PROPERTY_Y
The y-coordinate to place this object at.

See Also:
Constant Field Values
Constructor Detail

BasicLayerPersistor

public BasicLayerPersistor()
Method Detail

load

public EncogPersistedObject load(ReadXML in)
Load the specified Encog object from an XML reader.

Specified by:
load in interface Persistor
Parameters:
in - The XML reader to use.
Returns:
The loaded object.

save

public void save(EncogPersistedObject obj,
                 WriteXML out)
Save the specified Encog object to an XML writer.

Specified by:
save in interface Persistor
Parameters:
obj - The object to save.
out - The XML writer to save to.

The Encog Project