/// <summary>
 ///     If the proposed value contains this in its MergedStateMachines, it is accepted as the new UnifiedStateMachine
 /// </summary>
 /// <param name="newValue"></param>
 public void ResetUnifiedStateMachine(UnifiedStateMachine newValue)
 {
     if (newValue.MergedStateMachines.Contains(this))
     {
         UnifiedStateMachine = newValue;
     }
 }
Example #2
0
 /// <summary>
 ///     Checks that the unified state machine includes the state machine and, in that case,
 ///     indicates that the types match
 /// </summary>
 /// <param name="stateMachineType"></param>
 /// <param name="unifiedstateMachineType"></param>
 /// <returns></returns>
 private bool MatchStateMachines(StateMachine stateMachineType, UnifiedStateMachine unifiedstateMachineType)
 {
     bool retVal = false;
     if (stateMachineType != null && unifiedstateMachineType != null)
     {
         retVal = unifiedstateMachineType.MergedStateMachines.Contains(stateMachineType);
     }
     return retVal;
 }