# HG changeset patch # User Shinji KONO # Date 1240529500 -32400 # Node ID 6d15c7d67941e00a9e18989aeda312a36148864f # Parent 74bad457cfc29884143fe06d4380c77efdbf335f fix diff -r 74bad457cfc2 -r 6d15c7d67941 presentation/rep-verify-sigos.ind --- a/presentation/rep-verify-sigos.ind Fri Apr 24 07:50:06 2009 +0900 +++ b/presentation/rep-verify-sigos.ind Fri Apr 24 08:31:40 2009 +0900 @@ -2,15 +2,18 @@ --author: 与儀健人, 宮城健太, 河野真治 ---はじめに - - ---Remote Editing Protocol の設計方針 +--Remote Editing Protocol って? 複数の「既存」のEditorを相互に接続する Emacs, Vim, Eclipse など +ずいぶん、ながくやってますが... + +まだ、動いてません。 + +--Remote Editing Protocol の設計方針 + Local Editing を阻害しない 接続されたEditorは同等 @@ -37,6 +40,12 @@ Session Manager +--Session Manager + +Editor はdefaultで、ローカルなSession Manager に接続する + +
Session Managerの導入
+ --Protocol の構成 Session Manager への接続 (sm_join) @@ -47,6 +56,24 @@ Editor Command の衝突の解消(Merge) +---Session managerの接続protocol + +
Session Manager同士の接続
+ +---Session 接続 protocol + +
join コマンド
+ +
Session Managerを介したエディタの接続
+ + +---Merge Protocol + +編集の衝突を解決する + +
Session Ring上のREPコマンドの送信
+ + --Merge をSession Manager 上で行なう 編集Sessionはring を構成する @@ -55,6 +82,29 @@ Command と Ack はringをそれぞれ一周する +---Merge のSession Managerへの移動 + +Merge 作業とEditor上の編集が衝突する場合もある + +
リマージ
+ +Editor側のlockが可能ならばlockしても良い。(optional) + +lock の実装が難しい場合もある。 + +--Editor 側で実装する必要がある機能 + + +
1 編集機能の user_insert,user_deteleへの分解 +
2 分解したEditor Command の送信 +
3 join,put Command のUI部分と、Command の送信 +
4 join_ack,put_ack の受け取りとsid,eidの設定 +
5 外部からのEditor Commandの非同期受け取りと実行 +
6 sync Command を受け取った場合の user_insert,user_deteleの生成 +
7 Merge 時のlock (optional) +
8 quit Command +
+ --Protocol はかなり複雑 2つでは大丈夫だが、3つでおかしくなる @@ -107,77 +157,13 @@ テストの正しさは終了時に判定するのが簡単 ----Session managerの導入 - -
Session Managerの導入
- ----Session managerの接続protocol - -
Session Manager同士の接続
- ----Session 接続 protocol - -
join コマンド
- -
Session Managerを介したエディタの接続
- ----Editor Command - ----Merge Protocol - - -
Session Ring上のREPコマンドの送信
- - ----Merge のSession Managerへの移動 - +--まとめ -
リマージ
- - ---Protocol の正しさ - - ---Protocol の実装 - +REPのSession Manager のプロトコルを設計し、実装した -Editor 側で実装する必要があるのは、表\ref{tb:sync}の機能である。 -\begin{table}[htdp] -\caption{Editor 側での実装} -\begin{center} -\begin{tabular}{|l|l|} -\hline -1 & 編集機能の{\tt user\_insert,user\_detele}への分解と、分解したEditor Command の送信 \\ -\hline -2 & {\tt join,put} Command のUI部分と、Command の送信 \\ -\hline -3 & {\tt join,put} Command のUI部分と、Command の送信 \\ -\hline -4 & {\tt join\_ack,put\_ack} の受け取りとsid,eidの設定 \\ -\hline -5 & 外部からのEditor Commandの非同期受け取りと実行 \\ -\hline -6 & {\tt sync} Command を受け取った場合の{\tt user\_insert,user\_detele}の生成 \\ -\hline -7 & Merge 時のlock (optional) \\ -\hline -7 & {\tt quit} Command \\ -\hline -\end{tabular} -\end{center} -\label{tb:sync} -\end{table}% +Java PathFinder で検証するためのSocket/Thread 互換通信ライブラリを実装した - ---Socket Simulator - - ---検証とデバッグ +Java PathFinder で検証するために、状態の数を下げる変更を検討中 - ---比較 - - ---最後に - +まだ、バグが残っているので...