Java 2 Platform
v1.3

edu.umich.visualsoar.operatorwindow
Class TreeFileWriter

java.lang.Object
  |
  +--edu.umich.visualsoar.operatorwindow.TreeFileWriter

public class TreeFileWriter
extends java.lang.Object


Constructor Summary
TreeFileWriter()
           
 
Method Summary
static void write(java.io.Writer treeWriter, javax.swing.tree.DefaultTreeModel tree)
          Traverses the tree and writes out the data in the VSA file format Format of vsa file is: nodeId parentId NodeType name filename nextId
static void write5(java.io.Writer treeWriter, javax.swing.tree.DefaultTreeModel tree)
          Traverses the tree and writes out the data in the VSA file format Format of vsa file is:
nodeId -- parentId -- NodeType -- name -- filename -- nextId The difference from the standard write method is this version 5 method writes each node with a unique id based on its path in the tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeFileWriter

public TreeFileWriter()
Method Detail

write

public static void write(java.io.Writer treeWriter,
                         javax.swing.tree.DefaultTreeModel tree)
                  throws java.io.IOException
Traverses the tree and writes out the data in the VSA file format Format of vsa file is: nodeId parentId NodeType name filename nextId

Parameters:
treeWriter - the writer for the vsa file
tree - the operator hierarchy tree that is being read.
java.io.IOException
See Also:
DefaultTreeModel

write5

public static void write5(java.io.Writer treeWriter,
                          javax.swing.tree.DefaultTreeModel tree)
                   throws java.io.IOException
Traverses the tree and writes out the data in the VSA file format Format of vsa file is:
nodeId -- parentId -- NodeType -- name -- filename -- nextId The difference from the standard write method is this version 5 method writes each node with a unique id based on its path in the tree. This enables copies of the project to be individually modified by different users and merged together later. This version five method is not currently implemented in Visual Soar 4.0

Parameters:
treeWriter - the writer for the vsa file
tree - the operator hierarchy tree that is being read.
java.io.IOException
See Also:
DefaultTreeModel

Java 2 Platform
v1.3