edu.iastate.metnet.graphmodel
Class VersionEncoder

java.lang.Object
  extended by edu.iastate.metnet.graphmodel.VersionEncoder

public class VersionEncoder
extends java.lang.Object

create Dot format file to describe the graph data in memory. Attach id for receovering

Author:
Jie Li

Field Summary
(package private) static java.util.Hashtable hash
           
(package private) static org.apache.log4j.Logger logger
          log4j facility
 
Constructor Summary
VersionEncoder()
           
 
Method Summary
static java.lang.String encode(org.jgraph.JGraph graph, java.lang.Object[] cells)
          encode the graph by encoding vertices and edges
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static org.apache.log4j.Logger logger
log4j facility


hash

static transient java.util.Hashtable hash
Constructor Detail

VersionEncoder

public VersionEncoder()
Method Detail

encode

public static java.lang.String encode(org.jgraph.JGraph graph,
                                      java.lang.Object[] cells)
encode the graph by encoding vertices and edges

Parameters:
graph - the graph to be encoded
cells - the cells
Returns:
the encoded bitstream