Ejemplo n.º 1
0
            public override bool Equals(Event other)
            {
                if (!(other is StateEvent))
                {
                    return(false);
                }
                StateEvent otherStateEvent = (StateEvent)other;

                return(state.Equals(otherStateEvent.state) && action == otherStateEvent.action);
            }
Ejemplo n.º 2
0
            public override bool Equals(Event other)
            {
                if (!(other is TransitionEvent))
                {
                    return(false);
                }
                TransitionEvent otherTransitionEvent = (TransitionEvent)other;

                return(from.Equals(otherTransitionEvent.from) &&
                       to.Equals(otherTransitionEvent.to) &&
                       action == otherTransitionEvent.action);
            }