Skip to content

Commit

Permalink
Updated the UML diagrams to represent our code
Browse files Browse the repository at this point in the history
  • Loading branch information
CJ Miller committed Jan 5, 2016
1 parent def7a46 commit 073c612
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 44 deletions.
Binary file modified docs/ASM_UML.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
113 changes: 71 additions & 42 deletions docs/ASM_UML.uxf
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<element>
<id>UMLClass</id>
<coordinates>
<x>900</x>
<y>280</y>
<x>1400</x>
<y>200</y>
<w>650</w>
<h>140</h>
</coordinates>
Expand All @@ -25,8 +25,8 @@
<element>
<id>UMLClass</id>
<coordinates>
<x>600</x>
<y>80</y>
<x>1100</x>
<y>0</y>
<w>440</w>
<h>190</h>
</coordinates>
Expand All @@ -48,8 +48,8 @@
<element>
<id>UMLClass</id>
<coordinates>
<x>900</x>
<y>430</y>
<x>1400</x>
<y>350</y>
<w>650</w>
<h>150</h>
</coordinates>
Expand All @@ -69,8 +69,8 @@
<element>
<id>UMLClass</id>
<coordinates>
<x>900</x>
<y>590</y>
<x>1400</x>
<y>510</y>
<w>580</w>
<h>90</h>
</coordinates>
Expand All @@ -87,60 +87,58 @@
<element>
<id>UMLClass</id>
<coordinates>
<x>0</x>
<y>410</y>
<w>630</w>
<h>110</h>
<x>250</x>
<y>360</y>
<w>180</w>
<h>80</h>
</coordinates>
<panel_attributes>Main
--
+ CLASSES : String[]
--
+main(String[] args) : void
-writeChildParrentRelations(Map&lt;String, String&gt; childParrentRelations, OutputStream out) : void
-writeInterfaceRelations(List&lt;String[]&gt; interfaces, OutputStream out) : void
--
</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>620</x>
<y>320</y>
<w>300</w>
<x>1090</x>
<y>240</y>
<w>330</w>
<h>150</h>
</coordinates>
<panel_attributes>lt=&lt;-</panel_attributes>
<additional_attributes>280.0;10.0;200.0;10.0;200.0;130.0;10.0;130.0</additional_attributes>
<additional_attributes>310.0;10.0;230.0;10.0;230.0;130.0;10.0;130.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>620</x>
<y>470</y>
<w>300</w>
<x>1090</x>
<y>390</y>
<w>330</w>
<h>30</h>
</coordinates>
<panel_attributes>lt=&lt;-</panel_attributes>
<additional_attributes>280.0;10.0;10.0;10.0</additional_attributes>
<additional_attributes>310.0;10.0;10.0;10.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>620</x>
<y>490</y>
<w>300</w>
<x>1090</x>
<y>410</y>
<w>330</w>
<h>160</h>
</coordinates>
<panel_attributes>lt=&lt;-</panel_attributes>
<additional_attributes>280.0;140.0;200.0;140.0;200.0;10.0;10.0;10.0</additional_attributes>
<additional_attributes>310.0;140.0;230.0;140.0;230.0;10.0;10.0;10.0</additional_attributes>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>450</x>
<y>190</y>
<x>950</x>
<y>110</y>
<w>170</w>
<h>240</h>
</coordinates>
Expand All @@ -150,8 +148,8 @@
<element>
<id>Relation</id>
<coordinates>
<x>690</x>
<y>260</y>
<x>1190</x>
<y>180</y>
<w>230</w>
<h>140</h>
</coordinates>
Expand All @@ -161,8 +159,8 @@
<element>
<id>Relation</id>
<coordinates>
<x>690</x>
<y>370</y>
<x>1190</x>
<y>290</y>
<w>230</w>
<h>200</h>
</coordinates>
Expand All @@ -172,8 +170,8 @@
<element>
<id>Relation</id>
<coordinates>
<x>690</x>
<y>540</y>
<x>1190</x>
<y>460</y>
<w>230</w>
<h>130</h>
</coordinates>
Expand All @@ -183,8 +181,8 @@
<element>
<id>UMLClass</id>
<coordinates>
<x>1770</x>
<y>450</y>
<x>2270</x>
<y>370</y>
<w>100</w>
<h>40</h>
</coordinates>
Expand All @@ -194,8 +192,8 @@
<element>
<id>Relation</id>
<coordinates>
<x>1540</x>
<y>330</y>
<x>2040</x>
<y>250</y>
<w>250</w>
<h>140</h>
</coordinates>
Expand All @@ -205,8 +203,8 @@
<element>
<id>Relation</id>
<coordinates>
<x>1540</x>
<y>460</y>
<x>2040</x>
<y>380</y>
<w>250</w>
<h>30</h>
</coordinates>
Expand All @@ -216,12 +214,43 @@
<element>
<id>Relation</id>
<coordinates>
<x>1470</x>
<y>480</y>
<x>1970</x>
<y>400</y>
<w>320</w>
<h>160</h>
</coordinates>
<panel_attributes>lt=&lt;&lt;-</panel_attributes>
<additional_attributes>300.0;10.0;210.0;10.0;210.0;140.0;10.0;140.0</additional_attributes>
</element>
<element>
<id>UMLClass</id>
<coordinates>
<x>480</x>
<y>330</y>
<w>620</w>
<h>130</h>
</coordinates>
<panel_attributes>edu.rosehulman.cjjb::UMLClassVisitor
--
+classes: String[]
+out: OutputStream
--
+buildUML(): void
-writeChildParrentRelations(Map&lt;String, String&gt; childParrentRelations, OutputStream out): void
-writeInterfaceRelations(List&lt;String[]&gt; interfaces, OutputStream out): void
--
</panel_attributes>
<additional_attributes/>
</element>
<element>
<id>Relation</id>
<coordinates>
<x>420</x>
<y>390</y>
<w>80</w>
<h>30</h>
</coordinates>
<panel_attributes>lt=&lt;-</panel_attributes>
<additional_attributes>60.0;10.0;10.0;10.0</additional_attributes>
</element>
</diagram>
Binary file modified docs/ASM_UML_Generated.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion output.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
digraph G { fontname = "Bitstream Vera Sans" fontsize = 8 node [ fontname = "Bitstream Vera Sans" fontsize = 8 shape = "record" ] edge [ fontname = "Bitstream Vera Sans" fontsize = 8 ]Main [
label = "{Main|+ CLASSES : java.lang.String[]\l+ boilerPlate : java.lang.String\l|+ main(java.lang.String[]) : void\l- writeChildParrentRelations(java.util.Map, java.io.OutputStream) : void\l- writeInterfaceRelations(java.util.List, java.io.OutputStream) : void\l}"
label = "{Main|+ CLASSES : java.lang.String[]\l+ boilerPlate : java.lang.String\l|+ main(java.lang.String[]) : void\l}"
]ClassDeclarationVisitor [
label = "{ClassDeclarationVisitor|- out : java.io.OutputStream\l- relations : edu.rosehulman.cjjb.asm.Relations\l|+ visit(int, int, java.lang.String, java.lang.String, java.lang.String, java.lang.String[]) : void\l- addInterfaceName(java.lang.String, java.lang.String[]) : void\l- addSuperName(java.lang.String, java.lang.String) : void\l+ getCleanName(java.lang.String) : java.lang.String\l}"
]ClassFieldVisitor [
Expand All @@ -10,4 +10,6 @@ digraph G { fontname = "Bitstream Vera Sans" fontsize = 8 node [ fontname = "Bit
label = "{Relations| includedELements : java.util.List\l childParrent : java.util.Map\l interfaces : java.util.List\l|+ addElement(java.lang.String) : void\l+ addChildParrentRelation(java.lang.String, java.lang.String) : void\l+ addInterfaceRelation(java.lang.String, java.lang.String) : void\l+ getChildParentIncludedRelations() : java.util.Map\l+ getIncludedInterfaceRelations() : java.util.List\l}"
]ClassVisitor [
label = "{ClassVisitor|# api : int\l# cv : org.objectweb.asm.ClassVisitor\l|+ visit(int, int, java.lang.String, java.lang.String, java.lang.String, java.lang.String[]) : void\l+ visitSource(java.lang.String, java.lang.String) : void\l+ visitOuterClass(java.lang.String, java.lang.String, java.lang.String) : void\l+ visitAnnotation(java.lang.String, boolean) : org.objectweb.asm.AnnotationVisitor\l+ visitTypeAnnotation(int, org.objectweb.asm.TypePath, java.lang.String, boolean) : org.objectweb.asm.AnnotationVisitor\l+ visitAttribute(org.objectweb.asm.Attribute) : void\l+ visitInnerClass(java.lang.String, java.lang.String, java.lang.String, int) : void\l+ visitField(int, java.lang.String, java.lang.String, java.lang.String, java.lang.Object) : org.objectweb.asm.FieldVisitor\l+ visitMethod(int, java.lang.String, java.lang.String, java.lang.String, java.lang.String[]) : org.objectweb.asm.MethodVisitor\l+ visitEnd() : void\l}"
]UMLClassVisitor [
label = "{UMLClassVisitor|+ classes : java.lang.String[]\l+ out : java.io.OutputStream\l+ boilerPlate : java.lang.String\l|+ buildUML() : void\l- writeChildParrentRelations(java.util.Map, java.io.OutputStream) : void\l- writeInterfaceRelations(java.util.List, java.io.OutputStream) : void\l}"
]ClassFieldVisitor -> ClassVisitor [arrowhead="onormal", style="filled"]ClassMethodVisitor -> ClassVisitor [arrowhead="onormal", style="filled"]ClassDeclarationVisitor -> ClassVisitor [arrowhead="onormal", style="filled"]}
3 changes: 2 additions & 1 deletion src/edu/rosehulman/cjjb/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ public class Main {
"edu.rosehulman.cjjb.asm.ClassFieldVisitor",
"edu.rosehulman.cjjb.asm.ClassMethodVisitor",
"edu.rosehulman.cjjb.asm.Relations",
"org.objectweb.asm.ClassVisitor"
"org.objectweb.asm.ClassVisitor",
"edu.rosehulman.cjjb.UMLClassVisitor"
/*"problem.AppLauncher",
"problem.HtmlWatcher",
"problem.JarWatcher",
Expand Down

0 comments on commit 073c612

Please sign in to comment.