Permalink
Browse files

UML: remove lua, and improve dot

  • Loading branch information...
1 parent d7de75a commit 14b93483f15062a3ac3ff2b096561a744a7ac1f2 @fperrad fperrad committed Oct 19, 2010
Showing with 7 additions and 39 deletions.
  1. +1 −5 uml/Makefile
  2. +6 −5 uml/api.dot
  3. +0 −29 uml/api.lua
  4. BIN uml/api.png
View
@@ -2,9 +2,5 @@
api.png: api.dot
dot -T png -o api.png api.dot
-api.dot: api.lua
- coat2dot api > api.dot
- perl -i.bak -pe "s/_method/method/g" api.dot
-
clean:
- rm *.bak *.dot *.png
+ rm *.png
View
@@ -2,12 +2,13 @@ digraph {
node [shape=record];
- "Method"
- [label="{\N|authentication : boolean\lbase_url : string\ldescription : string\lexpected_status : table<number>\lformats : table<string>\lmethod : string\loptional_params : table<string>\lpath : string\lrequired_params : table<string>\l}"];
-
"API"
- [label="{\N|authentication : boolean\lauthority : string\lbase_url : string\ldescription : string\lformats : table<string>\lmeta : table<string,string>\lmethods : table<string,Method>\lname : string\lversion : string\l}"];
- "API" -> "Method" // attr isa table<string,Method>
+ [label="{\N|methods : map&lt;string,Method&gt;\lname : string\l\lauthentication : boolean\lauthority : string\lbase_url : string\ldescription : string\lformats : array&lt;string&gt;\lmeta : map&lt;string,string&gt;\lversion : string\l}"];
+
+ "API" -> "Method"
[label = "methods", arrowhead = none, arrowtail = odiamond];
+ "Method"
+ [label="{\N|method : string\lpath : string\l\lauthentication : boolean\lbase_url : string\ldescription : string\lexpected_status : array&lt;number&gt;\lformats : array&lt;string&gt;\loptional_params : array&lt;string&gt;\lrequired_params : array&lt;string&gt;\l}"];
+
}
View
@@ -1,29 +0,0 @@
-
-require 'Coat'
-require 'Coat.Types'
-
-class 'Method'
-
-has._method = { is = 'ro', isa = 'string', required = true }
-has.path = { is = 'ro', isa = 'string', required = true }
-has.expected_status = { is = 'ro', isa = 'table<number>' }
-has.required_params = { is = 'ro', isa = 'table<string>' }
-has.optional_params = { is = 'ro', isa = 'table<string>' }
-has.base_url = { is = 'ro', isa = 'string' }
-has.description = { is = 'ro', isa = 'string' }
-has.authentication = { is = 'ro', isa = 'boolean' }
-has.formats = { is = 'ro', isa = 'table<string>' }
-
-
-class 'API'
-
-has.name = { is = 'ro', isa = 'string', required = true }
-has.methods = { is = 'ro', isa = 'table<string,Method>', required = true }
-has.base_url = { is = 'ro', isa = 'string' }
-has.description = { is = 'ro', isa = 'string' }
-has.authentication = { is = 'ro', isa = 'boolean' }
-has.formats = { is = 'ro', isa = 'table<string>' }
-has.version = { is = 'ro', isa = 'string' }
-has.authority = { is = 'ro', isa = 'string' }
-has.meta = { is = 'ro', isa = 'table<string,string>' }
-
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 14b9348

Please sign in to comment.