source: trunk/Jgraph/complex-examples/seq.jgr@ 433

Last change on this file since 433 was 419, checked in by Nicholas Riley, 17 years ago

Jgraph: Debian changes by pzn@…

File size: 1.1 KB
Line 
1(* This is a picture of the sequential checkpointing algorithm. *)
2
3newgraph
4xaxis min 0 max 3 size 2.5 nodraw
5yaxis min 0 max 2.0 size 2 nodraw
6
7
8newstring fontsize 7 hjc vjc x 0.25 y 0.3 : Code
9copystring y 1.3 : Globals,\
10Heap\
11&\
12Stack
13newstring fontsize 9 hjc vjt x 0.25 y -0.07 : Address\
14Space
15
16(* Draw the address space *)
17newcurve fill 1 marktype ellipse marksize 0.2 1.4 pts 0.5 1.3
18newcurve marktype box fill 1 marksize 0.5 2.0 pts 0.25 1
19newline pts 0.0 0.6 0.5 0.6
20
21(* Draw the registers *)
22shell : echo "0.7 0" | awk -f regs.awk
23shell : echo "1.1 0" | awk -f regs.awk
24shell : echo "1.5 0" | awk -f regs.awk
25shell : echo "2.1 0" | awk -f regs.awk
26newstring hjc vjc fontsize 7 x 1.95 y 0.3 : . . .
27newstring fontsize 9 hjc vjt x 1.55 y -0.07 : CPU\
28States
29
30(* Draw the disk *)
31shell : echo "2.1 1.6" | awk -f disk.awk
32
33(* Draw the arrows to the disk *)
34
35newline rarrow asize .07 .04 pts 0.6 1.3 2.0 1.8
36
37newline rarrow asize .07 .04 pts 1.45 0.9 2.15 1.57
38newline pts 1.0 0.6 1.45 0.9
39newline pts 1.4 0.6 1.45 0.9
40newline pts 1.5 0.6 1.45 0.9
41newline pts 2.1 0.6 1.45 0.9
Note: See TracBrowser for help on using the repository browser.