[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] Update the datamodel class diagram, and use neato rather than dot, which gives



# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1175790142 -3600
# Node ID 7cce8838abe0b00bf9d52194cdcf7aa2ce8905da
# Parent  83ce6f4da2120231698a9db80b499ed3f6240a33
Update the datamodel class diagram, and use neato rather than dot, which gives
a much better result.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 docs/Docs.mk                            |    1 
 docs/xen-api/Makefile                   |    3 ++
 docs/xen-api/xenapi-datamodel-graph.dot |   47 ++++++++++++++++++++------------
 3 files changed, 34 insertions(+), 17 deletions(-)

diff -r 83ce6f4da212 -r 7cce8838abe0 docs/Docs.mk
--- a/docs/Docs.mk      Thu Apr 05 15:47:03 2007 +0100
+++ b/docs/Docs.mk      Thu Apr 05 17:22:22 2007 +0100
@@ -6,6 +6,7 @@ DOXYGEN         := doxygen
 DOXYGEN                := doxygen
 POD2MAN                := pod2man
 DOT            := dot
+NEATO          := neato
 
 pkgdocdir      := /usr/share/doc/xen
 mandir         := /usr/share/man
diff -r 83ce6f4da212 -r 7cce8838abe0 docs/xen-api/Makefile
--- a/docs/xen-api/Makefile     Thu Apr 05 15:47:03 2007 +0100
+++ b/docs/xen-api/Makefile     Thu Apr 05 17:22:22 2007 +0100
@@ -37,6 +37,9 @@ xenapi.dvi: $(TEX) $(EPS) $(EPSDOT)
 %.eps: %.dot
        $(DOT) -Tps $< >$@
 
+xenapi-datamodel-graph.eps: xenapi-datamodel-graph.dot
+       $(NEATO) -Goverlap=false -Tps $< >$@
+
 .PHONY: clean
 clean:
        rm -f *.pdf *.ps *.dvi *.aux *.log $(EPSDOT)
diff -r 83ce6f4da212 -r 7cce8838abe0 docs/xen-api/xenapi-datamodel-graph.dot
--- a/docs/xen-api/xenapi-datamodel-graph.dot   Thu Apr 05 15:47:03 2007 +0100
+++ b/docs/xen-api/xenapi-datamodel-graph.dot   Thu Apr 05 17:22:22 2007 +0100
@@ -1,18 +1,31 @@ digraph g{
-digraph g{
-node [ shape=box ]; session [ URL="session.html" ] task [ URL="task.html" ] VM 
[ URL="VM.html" ] host [ URL="host.html" ] host_cpu [ URL="host_cpu.html" ] 
network [ URL="network.html" ] VIF [ URL="VIF.html" ] PIF [ URL="PIF.html" ] SR 
[ URL="SR.html" ] VDI [ URL="VDI.html" ] VBD [ URL="VBD.html" ] VTPM [ 
URL="VTPM.html" ] console [ URL="console.html" ] user [ URL="user.html" ] debug 
[ URL="debug.html" ];
-session -> host [ label="this_host(1)" ]
-session -> user [ label="this_user(1)" ]
-host -> VM [ color="blue", arrowhead="crow", arrowtail="none" ]
-host -> host_cpu [ color="blue", arrowhead="crow", arrowtail="none" ]
-VIF -> VM [ color="blue", arrowhead="none", arrowtail="crow" ]
-VIF -> network [ color="blue", arrowhead="none", arrowtail="crow" ]
-PIF -> host [ color="blue", arrowhead="none", arrowtail="crow" ]
-PIF -> network [ color="blue", arrowhead="none", arrowtail="crow" ]
-SR -> VDI [ color="blue", arrowhead="crow", arrowtail="none" ]
-VDI -> VBD [ color="blue", arrowhead="crow", arrowtail="none" ]
-VDI -> VDI [ color="blue", arrowhead="none", arrowtail="crow" ]
-VBD -> VM [ color="blue", arrowhead="none", arrowtail="crow" ]
-VTPM -> VM [ label="backend(1)" ]
-VTPM -> VM [ color="blue", arrowhead="none", arrowtail="crow" ]
-console -> VM [ color="blue", arrowhead="none", arrowtail="crow" ]
+# Hand edited class diagram for the SDK -- HTML version
+# this one mentions all the classes so the imagemap works
+
+digraph "Xen-API Class Diagram" {
+fontname="Verdana";
+
+node [ shape=box ]; session VM host network VIF PIF SR VDI VBD PBD user;
+node [shape=ellipse]; PIF_metrics VIF_metrics VM_metrics VBD_metrics 
PBD_metrics VM_guest_metrics host_metrics;
+node [shape=box]; host_cpu console
+session -> host [ arrowhead="none" ]
+session -> user [ arrowhead="none" ]
+VM -> VM_metrics [ arrowhead="none" ]
+VM -> VM_guest_metrics [ arrowhead="none" ]
+VM -> console [ arrowhead="crow" ]
+host -> PBD [ arrowhead="crow", arrowtail="none" ]
+host -> host_metrics [ arrowhead="none" ]
+host -> host_cpu [ arrowhead="none" ]
+VIF -> VM [ arrowhead="none", arrowtail="crow" ]
+VIF -> network [ arrowhead="none", arrowtail="crow" ]
+VIF -> VIF_metrics [ arrowhead="none" ]
+PIF -> host [ arrowhead="none", arrowtail="crow" ]
+PIF -> network [ arrowhead="none", arrowtail="crow" ]
+PIF -> PIF_metrics [ arrowhead="none" ]
+SR -> PBD [ arrowhead="crow", arrowtail="none" ]
+PBD -> PBD_metrics [ arrowhead="none" ]
+SR -> VDI [ arrowhead="crow", arrowtail="none" ]
+VDI -> VBD [ arrowhead="crow", arrowtail="none" ]
+VBD -> VM [ arrowhead="none", arrowtail="crow" ]
+VTPM -> VM [ arrowhead="none", arrowtail="crow" ]
+VBD -> VBD_metrics [ arrowhead="none" ]
 }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.