Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: d857e25ae9
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (35 sloc) 1.847 kB
digraph finite_state_machine {
size="8.3,5"
rankdir = "LR"
/* Execution Contexts */
node [shape=Mrecord, fillcolor=beige, style=filled];
top [label="<__proto__>[ Scope ]|<Rectangle>Rectangle|<rect>rect|<Square>Square|<sqr>sqr"];
/* Normal Objects */
node [shape = Mrecord, fillcolor=lightskyblue, style=filled];
ob_Rectangle [label = "<__proto__>[ Object ]|<name>name=\"Rectangle\"|<getArea>getArea|<getPerimeter>getPerimeter|<toString>toString"];
ob_Square [label = "<__proto__>[ Object ]|<name>name=\"Square\"|<getArea>getArea|<getPerimeter>getPerimeter"];
ob_rect [label = "<__proto__>[ Object ]|<width>width=6|<height>height=4"];
ob_sqr [label = "<__proto__>[ Object ]|<width>width=5"];
/* Function Objects */
node [shape = Mrecord, fillcolor=orange, style=filled];
fn_getArea [label="<__proto__>[getArea()]|\{return this.width * this.height\}"];
fn_getPerimeter [label="<__proto__>[getPerimeter()]|\{return 2 * (this.width + this.height)\}"];
fn_toString [label="<__proto__>[toString()]|\{return this.name + \" a=\" + …\}"];
fn_getArea2 [label="<__proto__>[getArea()]|\{return this.width * this.width\}"];
fn_getPerimeter2 [label="<__proto__>[getPerimeter()]|\{return 4 * this.width\}"];
/* References */
top:Rectangle -> ob_Rectangle:__proto__;
top:Square -> ob_Square:__proto__;
top:rect -> ob_rect:__proto__;
top:sqr -> ob_sqr:__proto__;
ob_Rectangle:getArea -> fn_getArea:__proto__;
ob_Rectangle:getPerimeter -> fn_getPerimeter:__proto__;
ob_Rectangle:toString -> fn_toString:__proto__;
ob_Square:getArea -> fn_getArea2:__proto__;
ob_Square:getPerimeter -> fn_getPerimeter2:__proto__;
/* Inheritance Chains */
edge [style=dashed]
ob_rect:__proto__ -> ob_Rectangle:__proto__;
ob_sqr:__proto__ -> ob_Square:__proto__;
ob_Square:__proto__ -> ob_Rectangle:__proto__;
}
Jump to Line
Something went wrong with that request. Please try again.