org.encog.persist.persistors
Class BasicNetworkPersistor

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

public class BasicNetworkPersistor
extends Object
implements Persistor

The Encog persistor used to persist the BasicNetwork class.

Author:
jheaton

Field Summary
static String ATTRIBUTE_FROM
          The from attribute.
static String ATTRIBUTE_ID
          The id attribute.
static String ATTRIBUTE_LAYER
          The to attribute.
static String ATTRIBUTE_NAME
          The name attribute.
static String ATTRIBUTE_TO
          The to attribute.
static String ATTRIBUTE_TYPE
          The type attribute.
static String ATTRIBUTE_TYPE_BOTH
          The both layer type.
static String ATTRIBUTE_TYPE_HIDDEN
          The hidden layer type.
static String ATTRIBUTE_TYPE_INPUT
          The input layer type.
static String ATTRIBUTE_TYPE_OUTPUT
          The output layer type.
static String ATTRIBUTE_TYPE_UNKNOWN
          The unknown layer type.
static String ATTRIBUTE_VALUE
          The value attribute.
static String TAG_LAYER
          The layer synapse.
static String TAG_LAYERS
          The layers tag.
static String TAG_LOGIC
          The logic tag.
static String TAG_OUTPUT
           
static String TAG_PROPERTIES
          The properties tag.
static String TAG_PROPERTY
          The property tag.
static String TAG_SYNAPSE
          The synapse tag.
static String TAG_SYNAPSES
          The synapses tag.
static String TAG_TAG
          The tag tag.
static String TAG_TAGS
          The tags tag.
 
Constructor Summary
BasicNetworkPersistor()
           
 
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_LAYERS

public static final String TAG_LAYERS
The layers tag.

See Also:
Constant Field Values

TAG_SYNAPSES

public static final String TAG_SYNAPSES
The synapses tag.

See Also:
Constant Field Values

TAG_SYNAPSE

public static final String TAG_SYNAPSE
The synapse tag.

See Also:
Constant Field Values

TAG_PROPERTIES

public static final String TAG_PROPERTIES
The properties tag.

See Also:
Constant Field Values

TAG_OUTPUT

public static final String TAG_OUTPUT
See Also:
Constant Field Values

TAG_TAGS

public static final String TAG_TAGS
The tags tag.

See Also:
Constant Field Values

TAG_TAG

public static final String TAG_TAG
The tag tag.

See Also:
Constant Field Values

TAG_LOGIC

public static final String TAG_LOGIC
The logic tag.

See Also:
Constant Field Values

TAG_LAYER

public static final String TAG_LAYER
The layer synapse.

See Also:
Constant Field Values

TAG_PROPERTY

public static final String TAG_PROPERTY
The property tag.

See Also:
Constant Field Values

ATTRIBUTE_ID

public static final String ATTRIBUTE_ID
The id attribute.

See Also:
Constant Field Values

ATTRIBUTE_NAME

public static final String ATTRIBUTE_NAME
The name attribute.

See Also:
Constant Field Values

ATTRIBUTE_VALUE

public static final String ATTRIBUTE_VALUE
The value attribute.

See Also:
Constant Field Values

ATTRIBUTE_TYPE

public static final String ATTRIBUTE_TYPE
The type attribute.

See Also:
Constant Field Values

ATTRIBUTE_TYPE_INPUT

public static final String ATTRIBUTE_TYPE_INPUT
The input layer type.

See Also:
Constant Field Values

ATTRIBUTE_TYPE_OUTPUT

public static final String ATTRIBUTE_TYPE_OUTPUT
The output layer type.

See Also:
Constant Field Values

ATTRIBUTE_TYPE_HIDDEN

public static final String ATTRIBUTE_TYPE_HIDDEN
The hidden layer type.

See Also:
Constant Field Values

ATTRIBUTE_TYPE_BOTH

public static final String ATTRIBUTE_TYPE_BOTH
The both layer type.

See Also:
Constant Field Values

ATTRIBUTE_TYPE_UNKNOWN

public static final String ATTRIBUTE_TYPE_UNKNOWN
The unknown layer type.

See Also:
Constant Field Values

ATTRIBUTE_FROM

public static final String ATTRIBUTE_FROM
The from attribute.

See Also:
Constant Field Values

ATTRIBUTE_TO

public static final String ATTRIBUTE_TO
The to attribute.

See Also:
Constant Field Values

ATTRIBUTE_LAYER

public static final String ATTRIBUTE_LAYER
The to attribute.

See Also:
Constant Field Values
Constructor Detail

BasicNetworkPersistor

public BasicNetworkPersistor()
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.


Copyright © 2011. All Rights Reserved.