Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        internal bool AddTransition(Transition <S, T, G> transition)
        {
            if (SignalTo.Exists(t => t.Name.Equals(transition.Name)))
            {
                return(false);
            }

            SignalTo.Add(transition);
            return(true);
        }