public void LogStateEvent(StateLogType logType, QState state) { LogStateEventArgs logEvent = new LogStateEventArgs(); logEvent.LogType = logType; logEvent.State = state; DoStateChange(logEvent); }
public void LogStateEvent(StateLogType logType, QState state, string action) { LogStateEventArgs logEvent = new LogStateEventArgs(); logEvent.LogType = logType; logEvent.State = state; logEvent.LogText = action; DoStateChange(logEvent); }
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); }
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); }
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); }
protected void LogStateEvent(StateLogType logType, QState state, string action) { LogStateEventArgs logEvent = new LogStateEventArgs (); logEvent.LogType = logType; logEvent.State = state; logEvent.LogText = action; DoStateChange (logEvent); }
protected void LogStateEvent(StateLogType logType, QState state) { LogStateEventArgs logEvent = new LogStateEventArgs (); logEvent.LogType = logType; logEvent.State = state; DoStateChange (logEvent); }
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"); }