edu.iastate.metnet.graphmodel
Class InputEncoder

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

public class InputEncoder
extends java.lang.Object

input graph encoder

Author:
Jie Li

Field Summary
(package private) static java.util.Hashtable hash
          unique identifier for every graph element
(package private) static org.apache.log4j.Logger logger
          log4j facility
 
Constructor Summary
InputEncoder()
           
 
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
unique identifier for every graph element

Constructor Detail

InputEncoder

public InputEncoder()
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