Beispiel #1
0
        /// <summary>
        /// 監視モニタータブレット通信メッセージ送信完了イベント処理
        /// </summary>
        /// <param name="sntMsg">送信メッセージ</param>
        /// <param name="resMsg">受信応答メッセージ</param>
        private void CellMonTabComSentMessageEventProc(CellMonTabMessage sntMsg, CellMonTabMessage resMsg)
        {
            lock (lockObjExecAndCom)
            {
                // Cell運転操作要求
                if (resMsg.GetType() == typeof(CellMonTabMsgGetOperationResponse))
                {
                    Console.WriteLine("Cell運転操作要求応答受信");
                }
                // テーブル更新通知
                else if (resMsg.GetType() == typeof(CellMonTabMsgPutUpdateTableResponse))
                {
                    Console.WriteLine("テーブル更新通知応答受信");
                }
                // データベース更新要求
                else if (resMsg.GetType() == typeof(CellMonTabMsgGetUpdateDbResponse))
                {
                    Console.WriteLine("データベース更新要求応答受信");
                }
                // MU挿入要求
                else if (resMsg.GetType() == typeof(CellMonTabMsgGetInsertResponse))
                {
                    Console.WriteLine("MU挿入要求応答受信");
                }
                // MU解除要求
                else if (resMsg.GetType() == typeof(CellMonTabMsgGetEjectResponse))
                {
                    Console.WriteLine("MU解除要求応答受信");
                }

//				this.IsMsgConnected = true;
            }
        }
Beispiel #2
0
        /// <summary>
        /// コマンドメッセージから応答メッセージを取得(監視モニタ、タブレットシミュレーション用)
        /// </summary>
        /// <param name="cmdMsg"></param>
        /// <param name="msg"></param>
        /// <returns></returns>
        private bool GetResMessageMonTabSim(CellMonTabMessage cmdMsg, out CellMonTabMessage msg)
        {
            bool ret = false;

            msg = null;

            /// Cell運転操作要求メッセージ
            if (cmdMsg.GetType() == typeof(CellMonTabMsgGetOperation))
            {
                msg = new CellMonTabMsgGetOperationResponse();
                ret = true;
            }
            /// テーブル更新通知メッセージ
            else if (cmdMsg.GetType() == typeof(CellMonTabMsgPutUpdateTable))
            {
                msg = new CellMonTabMsgPutUpdateTableResponse();
                ret = true;
            }

            /// データベース更新要求メッセージ
            else if (cmdMsg.GetType() == typeof(CellMonTabMsgGetUpdateDb))
            {
                msg = new CellMonTabMsgGetUpdateDbResponse();
                ret = true;
            }
            /// MU挿入要求メッセージ
            else if (cmdMsg.GetType() == typeof(CellMonTabMsgGetInsert))
            {
                msg = new CellMonTabMsgGetInsertResponse();
                ret = true;
            }
            /// MU解除要求メッセージ
            else if (cmdMsg.GetType() == typeof(CellMonTabMsgGetEject))
            {
                msg = new CellMonTabMsgGetEjectResponse();
                ret = true;
            }

            return(ret);
        }
Beispiel #3
0
        /// <summary>
        /// コマンドメッセージから応答メッセージを取得
        /// </summary>
        /// <param name="cmdMsg"></param>
        /// <param name="msg"></param>
        /// <returns></returns>
        private bool GetResMessage(CellMonTabMessage cmdMsg, out CellMonTabMessage msg)
        {
            bool ret = false;

            msg = null;

            /// データベース更新結果通知メッセージ
            if (cmdMsg.GetType() == typeof(CellMonTabMsgPutUpdateDbResult))
            {
                msg = new CellMonTabMsgPutUpdateDbResultResponse();
                ret = true;
            }

            return(ret);
        }