• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IQEvent类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IQEvent的典型用法代码示例。如果您正苦于以下问题:C# IQEvent类的具体用法?C# IQEvent怎么用?C# IQEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IQEvent类属于命名空间,在下文中一共展示了IQEvent类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: RaiseEventManagerDispatchException

 protected void RaiseEventManagerDispatchException(EventManagerDispatchExceptionHandler handler, IQEventManager eventManager, Exception ex, IQHsm hsm, IQEvent ev)
 {
     if (handler != null)
     {
         handler (eventManager, ex, hsm, ev);
     }
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:7,代码来源:QEventManagerEventsBase.cs


示例2: DoDispatchException

 protected virtual void DoDispatchException(IQHsm hsm, Exception ex, MethodInfo stateMethod, IQEvent ev)
 {
     if (OnDispatchException (hsm, ex, stateMethod, ev))
     {
         RaiseDispatchException (DispatchException, hsm, ex, stateMethod, ev);
     }
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:7,代码来源:QHsmLifeCycleManagerWithHsmEventsBase.cs


示例3: DoEventManagerDispatchException

 protected void DoEventManagerDispatchException(IQEventManager eventManager, Exception ex, IQHsm hsm, IQEvent ev)
 {
     if (OnEventManagerDispatchException (eventManager, ex, hsm, ev))
     {
         RaiseEventManagerDispatchException (EMDispatchException, eventManager, ex, hsm, ev);
     }
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:7,代码来源:QEventManagerEventsBase.cs


示例4: DoPolledEvent

 protected void DoPolledEvent(IQEventManager eventManager, IQHsm hsm, IQEvent ev, PollContext pollContext)
 {
     if (OnPolledEvent (eventManager, hsm, ev, pollContext))
     {
         RaisePolledEvent (eventManager, PolledEvent, hsm, ev, pollContext);
     }
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:7,代码来源:QHsmLifeCycleManagerWithHsmEventsBaseAndEventManagerBase.cs


示例5: DispatchExceptionFailureEventArgs

 public DispatchExceptionFailureEventArgs(Exception ex, IQHsm hsm, System.Reflection.MethodInfo stateMethod, IQEvent ev)
 {
     _Exception = ex;
     _Hsm = hsm;
     _StateMethod = stateMethod;
     _OriginalEvent = ev;
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:7,代码来源:DispatchExceptionFailureEventArgs.cs


示例6: DoUnhandledTransition

 protected void DoUnhandledTransition(IQHsm hsm, MethodInfo stateMethod, IQEvent qEvent)
 {
     if (OnUnhandledTransition (hsm, stateMethod, qEvent))
     {
         RaiseUnhandledTransition (UnhandledTransition, hsm, stateMethod, qEvent);
     }
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:7,代码来源:QHsmLifeCycleManagerWithHsmEventsBase.cs


示例7: HsmEventHolder

 public HsmEventHolder(QEventManagerBase eventManager, IQHsm hsm, IQEvent ev)
 {
     _EventManager = eventManager;
     _Hsm = hsm;
     _Event = ev;
     _Principal = System.Threading.Thread.CurrentPrincipal;
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:7,代码来源:HsmEventHolder.cs


示例8: s02

 protected override QState s02(IQEvent qEvent)
 {
     switch (qEvent.QSignal)
     {
         case (int)QSignals.Init:    CWrite("s02-INIT;");  InitializeState(m_s021); return null;
     }
     return base.s02(qEvent);
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:8,代码来源:QHsmDerived3.cs


示例9: s1

 protected override QState s1(IQEvent qEvent)
 {
     switch (qEvent.QSignal)
     {
         case (int)MyQSignals.B_Sig: Console.Write("s1-B-overriden;"); return null;
     }
     // Everything else we pass on to the state handler of the base class
     return base.s1(qEvent);
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:9,代码来源:QHsmTestDerived.cs


示例10: s021

 protected QState s021(IQEvent qEvent)
 {
     switch (qEvent.QSignal)
     {
         case (int)QSignals.Entry:   CWrite("s021-ENTRY;"); return null;
         case (int)QSignals.Exit:    CWrite("s021-EXIT;");  return null;
     }
     return m_s02;
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:9,代码来源:QHsmDerived3.cs


示例11: s02

 protected virtual QState s02(IQEvent qEvent)
 {
     switch (qEvent.QSignal)
     {
         case (int)QSignals.Entry:   Console.Write("s02-ENTRY;"); return null;
         case (int)QSignals.Exit:    Console.Write("s02-EXIT;");  return null;
         case (int)MyQSignals.Sig2:  Console.Write("s02-Sig2;");  TransitionTo(m_s01, ref s_Tran_s02_s01);   return null;
     }
     return m_s0;
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:10,代码来源:QHsmBase1.cs


示例12: s01

 protected QState s01(IQEvent qEvent)
 {
     switch (qEvent.QSignal)
     {
         case (int)QSignals.Entry:   Console.Write("s01-ENTRY;"); return null;
         case (int)QSignals.Exit:    Console.Write("s01-EXIT;");  return null;
         case (int)MyQSignals.Sig1:  Console.Write("s01-Sig1;");  TransitionTo(m_s02, ref s_Tran_s01_s02);   return null;
     }
     return m_s0;
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:10,代码来源:QHsmBase1.cs


示例13: s0

 protected QState s0(IQEvent qEvent)
 {
     switch (qEvent.QSignal)
     {
         case (int)QSignals.Entry:   Console.Write("s0-ENTRY;"); return null;
         case (int)QSignals.Exit:    Console.Write("s0-EXIT;");  return null;
         case (int)QSignals.Init:    Console.Write("s0-INIT;");  InitializeState(m_s01); return null;
     }
     return this.TopState;
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:10,代码来源:QHsmBase1.cs


示例14: AsyncDispatchFront

 public void AsyncDispatchFront(IQHsm hsm, IQEvent ev)
 {
     lock (_QLock)
     {
     #warning Using a stack will alway push the most recent event to the front - thus reversing instead of maintaining "insert" order
         HsmEventHolder holder = new HsmEventHolder (this, hsm, ev);
         _FrontStack.Push (holder);
     }
     _WaitHandle.Set ();
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:10,代码来源:QEventManagerBase.cs


示例15: Send

 public void Send(IQEvent ev)
 {
     if (OnQEvents (ev))
     {
         if (QEvents != null)
         {
             QEvents (this, ev);
         }
     }
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:10,代码来源:QPort.cs


示例16: s0

 protected QState s0(IQEvent qEvent)
 {
     switch (qEvent.QSignal)
     {
         case (int)QSignals.Entry:   Console.Write("s0-ENTRY;"); return null;
         case (int)QSignals.Exit:    Console.Write("s0-EXIT;");  return null;
         case (int)QSignals.Init:    Console.Write("s0-INIT;");  InitializeState(m_s1); return null;
         case (int)MyQSignals.E_Sig: Console.Write("s0-E;");     TransitionTo(m_s211, ref s_Tran_s0_s211); return null;
     }
     return this.TopState;
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:11,代码来源:QHsmTest.cs


示例17: CatchAll

		private QState CatchAll(IQEvent qEvent)
		{
			LogEvent(MethodBase.GetCurrentMethod().Name, qEvent);
			switch (qEvent.QSignal)
			{
				case (int)QSignals.Init:
					InitializeState(this.InitializeBoard);
					return null;
				case (int)ControllerSignal.Reset:
					TransitionTo(this.InitializeBoard);
					return null;
			}
			return this.TopState;
		}
开发者ID:eldb2,项目名称:robotic-tic-tac-toe-lynxmotion,代码行数:14,代码来源:ControllerHsm.cs


示例18: s1

 protected virtual QState s1(IQEvent qEvent)
 {
     switch (qEvent.QSignal)
     {
         case (int)QSignals.Entry:   Console.Write("s1-ENTRY;"); return null;
         case (int)QSignals.Exit:    Console.Write("s1-EXIT;");  return null;
         case (int)QSignals.Init:    Console.Write("s1-INIT;");  InitializeState(m_s11); return null;
         case (int)MyQSignals.A_Sig: Console.Write("s1-A;");     TransitionTo(m_s1,   ref s_Tran_s1_s1);   return null;
         case (int)MyQSignals.B_Sig: Console.Write("s1-B;");     TransitionTo(m_s11,  ref s_Tran_s1_s11);  return null;
         case (int)MyQSignals.C_Sig: Console.Write("s1-C;");     TransitionTo(m_s2,   ref s_Tran_s1_s2);   return null;
         case (int)MyQSignals.D_Sig: Console.Write("s1-D;");     TransitionTo(m_s0,   ref s_Tran_s1_s0);   return null;
         case (int)MyQSignals.F_Sig: Console.Write("s1-F;");     TransitionTo(m_s211, ref s_Tran_s1_s211); return null;
     }
     return m_s0;
 }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:15,代码来源:QHsmTest.cs


示例19: InitializeBoard

		private QState InitializeBoard(IQEvent qEvent)
		{
			LogEvent(MethodBase.GetCurrentMethod().Name, qEvent);
			switch (qEvent.QSignal)
			{
				case (int)ControllerSignal.ProcessFrame:
					m_MainModel.ImageProcessor.DetectedBlobsImage = null;
					DetectBoardRectangles();
					return null;
				case (int)ControllerSignal.BoardInitialized:
					TransitionTo(this.Initialized);
					return null;
			}
			return this.CatchAll;
		}
开发者ID:eldb2,项目名称:robotic-tic-tac-toe-lynxmotion,代码行数:15,代码来源:ControllerHsm.cs


示例20: Eating

        private QState Eating(IQEvent qEvent)
        {
            switch (qEvent.QSignal)
            {
                case (int)QSignals.Entry:
                    LogMessage(String.Format("Philosopher {0} is eating.", m_PhilosopherId));
                    m_Timer.FireIn(c_EatTime, new PhilosopherEvent(DPPSignal.Timeout));
                    return null;

                case (int)DPPSignal.Timeout:
                    TransitionTo(m_StateThinking, ref s_Tran_Eating_Thinking);
                    return null;

                case (int)QSignals.Exit:
                    LogMessage(String.Format("Philosopher {0} is exiting eating state.", m_PhilosopherId));
                    TableEvent tableEvent = new TableEvent(DPPSignal.Done, m_PhilosopherId);
                    LogMessage(String.Format("Philosopher {0} publishes Done event.", m_PhilosopherId));
                    QF.Instance.Publish(tableEvent);
                    return null;
            }
            return this.TopState;
        }
开发者ID:poobalan-arumugam,项目名称:stateproto,代码行数:22,代码来源:Philosopher.cs



注:本文中的IQEvent类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IQGraphicsItem类代码示例发布时间:2022-05-24
下一篇:
C# IQ类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap