===================================================================
RCS file: /home/cvs/OpenXM/src/asir-doc/parts/process.texi,v
retrieving revision 1.7
retrieving revision 1.10
diff -u -p -r1.7 -r1.10
--- OpenXM/src/asir-doc/parts/process.texi 2001/03/16 05:18:04 1.7
+++ OpenXM/src/asir-doc/parts/process.texi 2002/08/14 03:26:36 1.10
@@ -1,4 +1,4 @@
-@comment $OpenXM: OpenXM/src/asir-doc/parts/process.texi,v 1.6 2000/11/13 00:16:34 noro Exp $
+@comment $OpenXM: OpenXM/src/asir-doc/parts/process.texi,v 1.9 2002/08/13 07:44:06 noro Exp $
\BJP
@node 分散計算,,, Top
@chapter 分散計算
@@ -28,9 +28,20 @@
@section OpenXM
\BJP
-@b{Asir} は, 分散計算における通信プロトコルとして, @b{OpenXM}
-(Open message eXchange protocol for Mathematics) を採用している.
-@b{OpenXM} は, 主として数学オブジェクトをプロセス間でやりとりする
+@b{Asir} は, 分散計算における通信プロトコルとして,
+@b{OpenXM}
+(Open message eXchange for Mathematics) プロトコルを採用している.
+@b{OpenXM} プロジェクトについては,
+@ifhtml
+
+@end ifhtml
+@code{http://www.math.sci.kobe-u.ac.jp/OpenXM/}
+@ifhtml
+
+@end ifhtml
+を参照してほしい.
+
+@b{OpenXM} プロトコルは, 主として数学オブジェクトをプロセス間でやりとりする
ための規約である. @b{OpenXM} においては
\E
\BEG
@@ -38,6 +49,15 @@ On @b{Asir} distributed computations are done under @b
(Open message eXchange protocol for Mathematics), which
is a protocol for exchanging mainly mathematical objects
between processes.
+See
+@ifhtml
+
+@end ifhtml
+@code{http://www.math.sci.kobe-u.ac.jp/OpenXM/}
+@ifhtml
+
+@end ifhtml
+for the details of @b{OpenXM}.
In @b{OpenXM} a distributed computation is done as follows:
\E
@@ -506,7 +526,7 @@ input @code{quit}.
* ox_get_serverinfo::
* generate_port try_bind_listen try_connect try_accept register_server::
* ifplot conplot plot plotover::
-* open_canvas clear_canvas draw_obj::
+* open_canvas clear_canvas draw_obj draw_string::
@end menu
\JP @node ox_launch ox_launch_nox ox_shutdown,,, 分散計算に関する関数
@@ -2188,12 +2208,13 @@ plot*form*ydone*background:white
@fref{ox_launch ox_launch_nox ox_shutdown}, @fref{ox_reset ox_intr register_handler}
@end table
-\JP @node open_canvas clear_canvas draw_obj,,, 分散計算に関する関数
-\EG @node open_canvas clear_canvas draw_obj,,, Functions for distributed computation
-@subsection @code{open_canvas}, @code{clear_canvas}, @code{draw_obj}
+\JP @node open_canvas clear_canvas draw_obj draw_string,,, 分散計算に関する関数
+\EG @node open_canvas clear_canvas draw_obj draw_string,,, Functions for distributed computation
+@subsection @code{open_canvas}, @code{clear_canvas}, @code{draw_obj}, @code{draw_string}
@findex open_canvas
@findex clear_canvas
@findex draw_obj
+@findex draw_string
@table @t
@item open_canvas(@var{id}[,@var{geometry}])
@@ -2205,17 +2226,23 @@ plot*form*ydone*background:white
@item draw_obj(@var{id},@var{index},@var{pointorsegment} [,@var{color}])
\JP :: キャンバス上に点または線分を描画する.
\EG :: Draws a point or a line segment on a canvas.
+@item draw_string(@var{id},@var{index},@var{[x,y]},@var{string} [,@var{color}])
+\JP :: キャンバス上に文字列を描画する.
+\EG :: Draws a character string on a canvas.
@end table
@table @var
@item return
0
-@item id, index, color
+@item id, index, color, x, y
\JP 整数
\EG integer
@item pointorsegment
\JP リスト
\EG list
+@item string
+\JP 文字列
+\EG character string
@end table
@itemize @bullet
@@ -2269,7 +2296,7 @@ and a canvas id @var{index}.
の値 (最大 255) とみなす.
\E
\BEG
-@code{draw_obj_canvas} draws a point or a line segment on
+@code{draw_obj} draws a point or a line segment on
a canvas specified by a server id @var{id} and a canvas id @var{index}.
If @var{pointorsegment} is @var{[x,y]}, it is regarded as a point.
If @var{pointorsegment} is @var{[x,y,u,v]}, it is regarded
@@ -2278,6 +2305,16 @@ If @var{color} is specified, @var{color/65536} mod 256
@var{color/256} mod 256, @var{color} mod 256 are regarded as the vaules
of Red, Green, Blue (Max. 255) respectively.
\E
+@item
+\BJP
+@code{draw_string} は, サーバ id @var{id}, キャンバス id @var{index}
+で指定されるキャンバスに文字列を描画する. 位置は @var{[x,y]} により指定する.
+\E
+\BEG
+@code{draw_string} draws a character string @var{string} on
+a canvas specified by a server id @var{id} and a canvas id @var{index}.
+The position of the string is specified by @var{[x,y]}.
+\E
@end itemize
@example
@@ -2293,7 +2330,9 @@ of Red, Green, Blue (Max. 255) respectively.
0
[187] draw_obj(Id,Ind,[10,10,50,50],0xff00ff);
0
-[188] clear_canvas(Id,Ind);
+[187] draw_string(Id,Ind,[100,50],"hello",0xffff00);
+0
+[189] clear_canvas(Id,Ind);
0
@end example