org.primordion.xholon.io
Class SnapshotYAML

java.lang.Object
  extended byorg.primordion.xholon.io.Snapshot
      extended byorg.primordion.xholon.io.SnapshotYAML
All Implemented Interfaces:
ISnapshot

public class SnapshotYAML
extends Snapshot
implements ISnapshot

Take a shapshot of an entire Xholon tree. It saves the snapshot in YAML "key: value" format. The resulting file is intended to be used for debugging, and as a quick global view of the structure. It is NOT intended as a formal serialization. For each node it includes the node name as the YAML key, and the result of calling toString() as the YAML value.

Since:
0.5 (Created on February 19, 2007)
Author:
Ken Webb
See Also:
http://www.yaml.org/

Constructor Summary
SnapshotYAML()
          Constructor.
 
Method Summary
 void saveSnapshot(IXholon snRoot, java.lang.String modelName)
          Save a timestamped snapshot to an XML file.
 
Methods inherited from class org.primordion.xholon.io.Snapshot
getPathName, getSnapshotTostring, setPathName, setSnapshotTostring
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnapshotYAML

public SnapshotYAML()
Constructor.

Method Detail

saveSnapshot

public void saveSnapshot(IXholon snRoot,
                         java.lang.String modelName)
Save a timestamped snapshot to an XML file.

Specified by:
saveSnapshot in interface ISnapshot
Parameters:
snRoot - Root of the tree to be saved in the snapshot file.
modelName - Name of the model.