version 1.6, 2000/11/13 00:16:34 |
version 1.11, 2002/09/03 02:15:35 |
|
|
@comment $OpenXM: OpenXM/src/asir-doc/parts/process.texi,v 1.5 2000/09/25 05:12:51 noro Exp $ |
@comment $OpenXM: OpenXM/src/asir-doc/parts/process.texi,v 1.10 2002/08/14 03:26:36 noro Exp $ |
\BJP |
\BJP |
@node $BJ,;67W;;(B,,, Top |
@node $BJ,;67W;;(B,,, Top |
@chapter $BJ,;67W;;(B |
@chapter $BJ,;67W;;(B |
|
|
@section OpenXM |
@section OpenXM |
|
|
\BJP |
\BJP |
@b{Asir} $B$O(B, $BJ,;67W;;$K$*$1$kDL?.%W%m%H%3%k$H$7$F(B, @b{OpenXM} |
@b{Asir} $B$O(B, $BJ,;67W;;$K$*$1$kDL?.%W%m%H%3%k$H$7$F(B, |
(Open message eXchange protocol for Mathematics) $B$r:NMQ$7$F$$$k(B. |
@b{OpenXM} |
@b{OpenXM} $B$O(B, $B<g$H$7$F?t3X%*%V%8%'%/%H$r%W%m%;%94V$G$d$j$H$j$9$k(B |
(Open message eXchange for Mathematics) $B%W%m%H%3%k$r:NMQ$7$F$$$k(B. |
|
@b{OpenXM} $B%W%m%8%'%/%H$K$D$$$F$O(B, |
|
@ifhtml |
|
<A HREF="http://www.math.sci.kobe-u.ac.jp/OpenXM/"> |
|
@end ifhtml |
|
@code{http://www.math.sci.kobe-u.ac.jp/OpenXM/} |
|
@ifhtml |
|
</A> |
|
@end ifhtml |
|
$B$r;2>H$7$F$[$7$$(B. |
|
|
|
@b{OpenXM} $B%W%m%H%3%k$O(B, $B<g$H$7$F?t3X%*%V%8%'%/%H$r%W%m%;%94V$G$d$j$H$j$9$k(B |
$B$?$a$N5,Ls$G$"$k(B. @b{OpenXM} $B$K$*$$$F$O(B |
$B$?$a$N5,Ls$G$"$k(B. @b{OpenXM} $B$K$*$$$F$O(B |
\E |
\E |
\BEG |
\BEG |
Line 38 On @b{Asir} distributed computations are done under @b |
|
Line 49 On @b{Asir} distributed computations are done under @b |
|
(Open message eXchange protocol for Mathematics), which |
(Open message eXchange protocol for Mathematics), which |
is a protocol for exchanging mainly mathematical objects |
is a protocol for exchanging mainly mathematical objects |
between processes. |
between processes. |
|
See |
|
@ifhtml |
|
<A HREF="http://www.math.sci.kobe-u.ac.jp/OpenXM/"> |
|
@end ifhtml |
|
@code{http://www.math.sci.kobe-u.ac.jp/OpenXM/} |
|
@ifhtml |
|
</A> |
|
@end ifhtml |
|
for the details of @b{OpenXM}. |
In @b{OpenXM} a distributed computation is done as follows: |
In @b{OpenXM} a distributed computation is done as follows: |
\E |
\E |
|
|
Line 506 input @code{quit}. |
|
Line 526 input @code{quit}. |
|
* ox_get_serverinfo:: |
* ox_get_serverinfo:: |
* generate_port try_bind_listen try_connect try_accept register_server:: |
* generate_port try_bind_listen try_connect try_accept register_server:: |
* ifplot conplot plot plotover:: |
* ifplot conplot plot plotover:: |
* open_canvas clear_canvas draw_obj:: |
* open_canvas clear_canvas draw_obj draw_string:: |
@end menu |
@end menu |
|
|
\JP @node ox_launch ox_launch_nox ox_shutdown,,, $BJ,;67W;;$K4X$9$k4X?t(B |
\JP @node ox_launch ox_launch_nox ox_shutdown,,, $BJ,;67W;;$K4X$9$k4X?t(B |
Line 1885 identifier @var{id} is returned. |
|
Line 1905 identifier @var{id} is returned. |
|
@item plot(@var{func} [,@var{geometry}] [,@var{xrange}] [,@var{id}] [,@var{name}]) |
@item plot(@var{func} [,@var{geometry}] [,@var{xrange}] [,@var{id}] [,@var{name}]) |
\JP :: 1 $BJQ?t4X?t$N%0%i%U$rI=<($9$k(B. |
\JP :: 1 $BJQ?t4X?t$N%0%i%U$rI=<($9$k(B. |
\EG :: Displays the graph of a univariate function. |
\EG :: Displays the graph of a univariate function. |
|
@item polarplot(@var{func} [,@var{geometry}] [,@var{thetarange}] [,@var{id}] [,@var{name}]) |
|
\JP :: $B6K7A<0$GM?$($i$l$?6J@~$rI=<($9$k(B. |
|
\EG :: Displays the graph of a curve given in polar form. |
@item plotover(@var{func},@var{id},@var{number}) |
@item plotover(@var{func},@var{id},@var{number}) |
\JP :: $B$9$G$KB8:_$7$F$$$k%&%#%s%I%&$XIA2h$9$k(B. |
\JP :: $B$9$G$KB8:_$7$F$$$k%&%#%s%I%&$XIA2h$9$k(B. |
\EG Plots on the existing window real zeros of a bivariate function. |
\EG Plots on the existing window real zeros of a bivariate function. |
Line 1913 identifier @var{id} is returned. |
|
Line 1936 identifier @var{id} is returned. |
|
@item |
@item |
@code{ifplot()} $B$O(B, 2 $BJQ?t4X?t(B @var{func} $B$N<B?t>e$G$NNmE@$N(B |
@code{ifplot()} $B$O(B, 2 $BJQ?t4X?t(B @var{func} $B$N<B?t>e$G$NNmE@$N(B |
$B%0%i%U$NI=<($r9T$&(B. @code{conplot()} $B$O(B, $BF1MM$N0z?t$KBP$7(B, |
$B%0%i%U$NI=<($r9T$&(B. @code{conplot()} $B$O(B, $BF1MM$N0z?t$KBP$7(B, |
$BEy9b@~$NI=<($r9T$&(B. @code{plot()} $B$O(B 1 $BJQ?t4X?t$N(B |
$BEy9b@~$NI=<($r9T$&(B. |
$B%0%i%U$NI=<($r9T$&(B. |
@code{plot()} $B$O(B 1 $BJQ?t4X?t$N%0%i%U$NI=<($r9T$&(B. |
|
@code{polarplot()} $B$O(B $B6K7A<0(B @var{r=f(theta)} $B$GI=$5$l$?6J@~$N%0%i%U$NI=<($r9T$&(B. |
|
|
@item |
@item |
$B$3$l$i$O(B OpenXM $B%5!<%P$H$7$F<B8=$5$l$F$$$k(B. UNIX $B>e$G$O(B |
$B$3$l$i$O(B OpenXM $B%5!<%P$H$7$F<B8=$5$l$F$$$k(B. UNIX $B>e$G$O(B |
@samp{ox_plot} $B$,(B, Windows $B>e$G$O(B @samp{engine} $B$,$3$l$i$N5!G=(B |
@samp{ox_plot} $B$,(B, Windows $B>e$G$O(B @samp{engine} $B$,$3$l$i$N5!G=(B |
$B$rDs6!$7$F$*$j(B, $B$3$l$i$O(B @b{Asir} $B$NI8=`%i%$%V%i%j%G%#%l%/%H%j$K$"$k(B. |
$B$rDs6!$7$F$*$j(B, $B$3$l$i$O(B @b{Asir} $B$NI8=`%i%$%V%i%j%G%#%l%/%H%j$K$"$k(B. |
$B$3$l$i$O(B @code{ox_launch()} $B$^$?$O(B @code{ox_launch_nox()} |
$B%"%/%F%#%V$J(B @samp{ox_plot} $B$N(B id $B$,(B @var{id} $B$H$7$F;XDj$5$l$?>l9g(B, |
$B$K$h$j5/F0$7$F$*$/I,MW$,$"$k(B. |
$B$=$N%5!<%P$,MQ$$$i$l$k(B. id $B$N;XDj$,$J$$>l9g$K$O(B, $B5/F0$5$l$F(B |
|
$B$$$k%5!<%P$N$&$A(B, @samp{ox_plot} $B$,$"$l$P$=$N%5!<%P$,MQ$$$i$l$k(B. |
|
@samp{ox_plot} $B$,5/F0$5$l$F$$$J$$>l9g$K$O(B, |
|
@code{ox_launch_nox()} $B$,<+F0E*$K<B9T$5$l$F(B, @samp{ox_plot} $B$,(B |
|
$BN)$A>e$,$j(B, $B$=$l$,MQ$$$i$l$k(B. |
|
|
@item |
@item |
$B0z?t$NFb(B, @var{func} $B$OI,?\$G$"$k(B. $B$=$NB>$N0z?t$O%*%W%7%g%s$G$"$k(B. |
$B0z?t$NFb(B, @var{func} $B$OI,?\$G$"$k(B. $B$=$NB>$N0z?t$O%*%W%7%g%s$G$"$k(B. |
Line 2029 Function @code{ifplot()} draws a graph of real zeros o |
|
Line 2057 Function @code{ifplot()} draws a graph of real zeros o |
|
function. |
function. |
Function @code{conplot()} plots the contour lines for a same argument. |
Function @code{conplot()} plots the contour lines for a same argument. |
Function @code{plot()} draws the graph of a uninivariate function. |
Function @code{plot()} draws the graph of a uninivariate function. |
|
Function @code{polarplot()} draws the graph of a curve given in polar form |
|
@var{r=f(theta)}. |
|
|
@item |
@item |
The plotting functions are realized by an OpenXM server. |
The plotting functions are realized by an OpenXM server. |
On UNIX it is @samp{ox_plot} in @b{Asir} root directory. |
On UNIX it is @samp{ox_plot} in @b{Asir} root directory. |
On Windows @samp{engine} acts as @samp{ox_plot}. |
On Windows @samp{engine} acts as @samp{ox_plot}. |
Of course, it must be activated by @code{ox_launch()} @code{ox_launch_nox()}. |
Of course, it must be activated by @code{ox_launch()} @code{ox_launch_nox()}. |
|
If the identifier of an active @samp{ox_plot} is specified as @var{id}, |
|
the server is used for drawing pictures. |
|
If @var{id} is not specified, an available @samp{ox_plot} server |
|
is used if it exists. If no @samp{ox_plot} server is available, |
|
then @code{ox_launch_nox()} is automatically executed to |
|
invoke @samp{ox_plot}. |
|
|
@item |
@item |
Argument @var{func} is indispensable. Other arguments are optional. |
Argument @var{func} is indispensable. Other arguments are optional. |
|
|
|
|
@item |
@item |
Several operations are available on the window: by button operations |
Several operations are available on the window: by button operations |
for UNIX version, and pull-down menus for Macintosh version. |
for UNIX version, and pull-down menus for Windows version. |
|
|
@table @code |
@table @code |
@item quit |
@item quit |
Line 2188 plot*form*ydone*background:white |
|
Line 2224 plot*form*ydone*background:white |
|
@fref{ox_launch ox_launch_nox ox_shutdown}, @fref{ox_reset ox_intr register_handler} |
@fref{ox_launch ox_launch_nox ox_shutdown}, @fref{ox_reset ox_intr register_handler} |
@end table |
@end table |
|
|
\JP @node open_canvas clear_canvas draw_obj,,, $BJ,;67W;;$K4X$9$k4X?t(B |
\JP @node open_canvas clear_canvas draw_obj draw_string,,, $BJ,;67W;;$K4X$9$k4X?t(B |
\EG @node open_canvas clear_canvas draw_obj,,, Functions for distributed computation |
\EG @node open_canvas clear_canvas draw_obj draw_string,,, Functions for distributed computation |
@subsection @code{open_canvas}, @code{clear_canvas}, @code{draw_obj} |
@subsection @code{open_canvas}, @code{clear_canvas}, @code{draw_obj}, @code{draw_string} |
@findex open_canvas |
@findex open_canvas |
@findex clear_canvas |
@findex clear_canvas |
@findex draw_obj |
@findex draw_obj |
|
@findex draw_string |
|
|
@table @t |
@table @t |
@item open_canvas(@var{id}[,@var{geometry}]) |
@item open_canvas(@var{id}[,@var{geometry}]) |
Line 2205 plot*form*ydone*background:white |
|
Line 2242 plot*form*ydone*background:white |
|
@item draw_obj(@var{id},@var{index},@var{pointorsegment} [,@var{color}]) |
@item draw_obj(@var{id},@var{index},@var{pointorsegment} [,@var{color}]) |
\JP :: $B%-%c%s%P%9>e$KE@$^$?$O@~J,$rIA2h$9$k(B. |
\JP :: $B%-%c%s%P%9>e$KE@$^$?$O@~J,$rIA2h$9$k(B. |
\EG :: Draws a point or a line segment on a canvas. |
\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 :: $B%-%c%s%P%9>e$KJ8;zNs$rIA2h$9$k(B. |
|
\EG :: Draws a character string on a canvas. |
@end table |
@end table |
|
|
@table @var |
@table @var |
@item return |
@item return |
0 |
0 |
@item id, index, color |
@item id, index, color, x, y |
\JP $B@0?t(B |
\JP $B@0?t(B |
\EG integer |
\EG integer |
@item pointorsegment |
@item pointorsegment |
\JP $B%j%9%H(B |
\JP $B%j%9%H(B |
\EG list |
\EG list |
|
@item string |
|
\JP $BJ8;zNs(B |
|
\EG character string |
@end table |
@end table |
|
|
@itemize @bullet |
@itemize @bullet |
Line 2269 and a canvas id @var{index}. |
|
Line 2312 and a canvas id @var{index}. |
|
$B$NCM(B ($B:GBg(B 255) $B$H$_$J$9(B. |
$B$NCM(B ($B:GBg(B 255) $B$H$_$J$9(B. |
\E |
\E |
\BEG |
\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}. |
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]}, it is regarded as a point. |
If @var{pointorsegment} is @var{[x,y,u,v]}, it is regarded |
If @var{pointorsegment} is @var{[x,y,u,v]}, it is regarded |
Line 2278 If @var{color} is specified, @var{color/65536} mod 256 |
|
Line 2321 If @var{color} is specified, @var{color/65536} mod 256 |
|
@var{color/256} mod 256, @var{color} mod 256 are regarded as the vaules |
@var{color/256} mod 256, @var{color} mod 256 are regarded as the vaules |
of Red, Green, Blue (Max. 255) respectively. |
of Red, Green, Blue (Max. 255) respectively. |
\E |
\E |
|
@item |
|
\BJP |
|
@code{draw_string} $B$O(B, $B%5!<%P(B id @var{id}, $B%-%c%s%P%9(B id @var{index} |
|
$B$G;XDj$5$l$k%-%c%s%P%9$KJ8;zNs$rIA2h$9$k(B. $B0LCV$O(B @var{[x,y]} $B$K$h$j;XDj$9$k(B. |
|
\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 |
@end itemize |
|
|
@example |
@example |
Line 2293 of Red, Green, Blue (Max. 255) respectively. |
|
Line 2346 of Red, Green, Blue (Max. 255) respectively. |
|
0 |
0 |
[187] draw_obj(Id,Ind,[10,10,50,50],0xff00ff); |
[187] draw_obj(Id,Ind,[10,10,50,50],0xff00ff); |
0 |
0 |
[188] clear_canvas(Id,Ind); |
[187] draw_string(Id,Ind,[100,50],"hello",0xffff00); |
|
0 |
|
[189] clear_canvas(Id,Ind); |
0 |
0 |
@end example |
@end example |
|
|