Exemplo n.º 1
0
        /// <summary>
        /// MU挿入要求処理
        /// </summary>
        public void InsertPointProc()
        {
            switch (this._insertPointNotifyCtrl.notifyStatus)
            {
            case InsertPointNotifyCtrl.eStatus.Init:
                // 初期処理
                this._insertPointNotifyCtrl.notifyStatus = InsertPointNotifyCtrl.eStatus.SendInsertPoint;
                break;

            case InsertPointNotifyCtrl.eStatus.SendInsertPoint:
                // MU挿入要求
                this._insertPointNotifyCtrl.insertMsg         = new CellMonTabMsgGetInsert();
                this._insertPointNotifyCtrl.insertMsg.MuId    = this._insertPointNotifyCtrl.MuId;
                this._insertPointNotifyCtrl.insertMsg.PointId = this._insertPointNotifyCtrl.PointId;

                Console.WriteLine("MU挿入要求送信");
                // MU挿入要求メッセージ送信
                if (true == this._cellMonTabMsgCtrl.SendMessage(this._insertPointNotifyCtrl.insertMsg))
                {
                    this._insertPointNotifyCtrl.notifyStatus = InsertPointNotifyCtrl.eStatus.WaitResponse;
                }
                break;

            case InsertPointNotifyCtrl.eStatus.WaitResponse:
                // MU挿入要求応答待ち
                if (this._insertPointNotifyCtrl.insertMsg.SendStatus == CellMonTabMessage.eSendStatus.SendNg)
                {
                    // 送信失敗
                    this._insertPointNotifyCtrl.insertMsg    = null;
                    this._insertPointNotifyCtrl.notifyStatus = InsertPointNotifyCtrl.eStatus.Error;
                }
                else if (this._insertPointNotifyCtrl.ResError != CellMonTabMsgError.eCmdError.None)
                {
                    // 異常応答
                    this._insertPointNotifyCtrl.insertMsg    = null;
                    this._insertPointNotifyCtrl.notifyStatus = InsertPointNotifyCtrl.eStatus.Error;
                }
                else if (this._insertPointNotifyCtrl.insertMsg.SendStatus == CellMonTabMessage.eSendStatus.RecvRes)
                {
                    // 応答受信
                    this._insertPointNotifyCtrl.insertMsg    = null;
                    this._insertPointNotifyCtrl.notifyStatus = InsertPointNotifyCtrl.eStatus.Complete;
                }
                break;

            case InsertPointNotifyCtrl.eStatus.Complete:
                // MU挿入要求完了
                this._insertPointNotifyCtrl = null;
                break;

            case InsertPointNotifyCtrl.eStatus.Error:
                // MU挿入要求異常
                this._insertPointNotifyCtrl = null;
                break;

            default:
                break;
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// MU挿入要求
        /// </summary>
        /// <param name="muId"></param>
        /// <param name="pointId"></param>
        /// <returns></returns>
        public bool ReqInsertPoint(UInt32 muId, UInt32 pointId)
        {
            bool ret = false;

            if (this._insertPointNotifyCtrl == null)
            {
                this._insertPointNotifyCtrl         = new InsertPointNotifyCtrl();
                this._insertPointNotifyCtrl.MuId    = muId;
                this._insertPointNotifyCtrl.PointId = pointId;

                ret = true;
            }

            return(ret);
        }