示例#1
0
文件: LQHsm.cs 项目: klhurley/qf4net
        public void LogStateEvent(StateLogType logType, QState state)
        {
            LogStateEventArgs logEvent = new LogStateEventArgs();

            logEvent.LogType = logType;
            logEvent.State   = state;
            DoStateChange(logEvent);
        }
示例#2
0
文件: LQHsm.cs 项目: klhurley/qf4net
        public void LogStateEvent(StateLogType logType, QState state, string action)
        {
            LogStateEventArgs logEvent = new LogStateEventArgs();

            logEvent.LogType = logType;
            logEvent.State   = state;
            logEvent.LogText = action;
            DoStateChange(logEvent);
        }
示例#3
0
文件: LQHsm.cs 项目: klhurley/qf4net
        public void LogStateEvent(StateLogType logType, QState state, QState initState)
        {
            System.Diagnostics.Debug.Assert(logType == StateLogType.Init);
            LogStateEventArgs logEvent = new LogStateEventArgs();

            logEvent.LogType   = logType;
            logEvent.State     = state;
            logEvent.NextState = initState;
            DoStateChange(logEvent);
        }
示例#4
0
文件: LQHsm.cs 项目: klhurley/qf4net
        public void LogStateEvent(StateLogType logType, QState state, QState toState, string eventName, string eventDescription)
        {
            LogStateEventArgs logEvent = new LogStateEventArgs();

            logEvent.LogType          = logType;
            logEvent.State            = state;
            logEvent.NextState        = toState;
            logEvent.EventName        = eventName;
            logEvent.EventDescription = eventDescription;
            DoStateChange(logEvent);
        }
示例#5
0
 protected void LogStateEvent(StateLogType logType, QState state, QState toState, string eventName, string eventDescription)
 {
     LogStateEventArgs logEvent = new LogStateEventArgs ();
     logEvent.LogType = logType;
     logEvent.State = state;
     logEvent.NextState = toState;
     logEvent.EventName = eventName;
     logEvent.EventDescription = eventDescription;
     DoStateChange (logEvent);
 }
示例#6
0
 protected void LogStateEvent(StateLogType logType, QState state, string action)
 {
     LogStateEventArgs logEvent = new LogStateEventArgs ();
     logEvent.LogType = logType;
     logEvent.State = state;
     logEvent.LogText = action;
     DoStateChange (logEvent);
 }
示例#7
0
 protected void LogStateEvent(StateLogType logType, QState state)
 {
     LogStateEventArgs logEvent = new LogStateEventArgs ();
     logEvent.LogType = logType;
     logEvent.State = state;
     DoStateChange (logEvent);
 }
示例#8
0
 protected void LogStateEvent(StateLogType logType, QState state, QState initState)
 {
     System.Diagnostics.Debug.Assert (logType == StateLogType.Init);
     LogStateEventArgs logEvent = new LogStateEventArgs ();
     logEvent.LogType = logType;
     logEvent.State = state;
     logEvent.NextState = initState;
     DoStateChange (logEvent);
 }
 protected void WriteLog(StateLogType logType, IStateGlyph state)
 {
     if (CanInstrument (state))
     {
         string action = null;
         switch (logType)
         {
             case StateLogType.Entry:
             {
                 action = NormalisedActionDisplayText (state.EntryAction);
             } break;
             case StateLogType.Exit:
             {
                 action = NormalisedActionDisplayText (state.ExitAction);
             } break;
         }
         if (action == null)
         {
             WriteLine ("LogStateEvent (StateLogType.{0}, s_{1});", logType, StateNameFrom (state));
         }
         else
         {
             WriteLine ("LogStateEvent (StateLogType.{0}, s_{1}, \"{2}\");", logType, StateNameFrom (state), action);
         }
     }
 }
 protected void WriteLog(StateLogType logType, IStateGlyph state, IStateGlyph initState)
 {
     if (CanInstrument (state))
     {
         WriteLine ("LogStateEvent (StateLogType.{0}, s_{1}, s_{2});", logType, StateNameFrom (state), StateNameFrom (initState));
     }
 }
 protected void WriteLog(StateLogType logType, IStateGlyph state, TransitionInfo transitionInfo, string transitionFieldNamePrefix)
 {
     if (CanInstrument (state))
     {
         string text = NormalisedTransitionDisplayText (transitionInfo);
         WriteLine ("LogStateEvent (StateLogType.{0}, s_{1}, {5}_{2}, \"{3}\", \"{4}\");", logType, StateNameFrom (state), transitionInfo.ToStateName, transitionInfo.Transition.QualifiedEvent, text, transitionFieldNamePrefix);
     }
 }
 protected void WriteLog(StateLogType logType, IStateGlyph state, TransitionInfo transitionInfo)
 {
     WriteLog(logType, state, transitionInfo, "s");
 }