net.clackrouter.topology.core
Class TopoSerializer
java.lang.Object
net.clackrouter.topology.core.TopoSerializer
public class TopoSerializer
- extends java.lang.Object
Static class used to save an enitirely new topology file.
Note: At this point, it will only save what routers are loaded
(either visible or invisible routers). Currently, we have a clack router
load every router in a topology, which means this is fine.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TopoSerializer
public TopoSerializer()
serializeTopology
public static void serializeTopology(ClackFramework graphpad,
int topo_num,
java.io.File file_to_save,
boolean saveTransient)
throws java.lang.Exception
- Throws:
java.lang.Exception
cloneTopologyElement
public static org.w3c.dom.Element cloneTopologyElement(org.w3c.dom.Document doc,
org.w3c.dom.Element old_topo_elem)
buildTopolayoutElement
public static org.w3c.dom.Element buildTopolayoutElement(org.w3c.dom.Document doc,
TopoGraph graph)