internal void AddTransitionCondition(SignalCondition <S, T, G> condition, Transition <S, T, G> transition) { if (condition == null || transition == null || !SignalTo.Exists(t => t.Name.Equals(transition.Name))) { return; } SignalTransitionConditions.Add(condition, transition); }
internal bool AddTransition(Transition <S, T, G> transition) { if (SignalTo.Exists(t => t.Name.Equals(transition.Name))) { return(false); } SignalTo.Add(transition); return(true); }