public ConstantsApp.ProcessState GetNext(ConstantsApp.Command command)
 {            
     StateMachineTransition transition = new StateMachineTransition(CurrentState, command);
     ConstantsApp.ProcessState nextState;
     _smTransitions.TryGetValue(transition, out nextState);
     return nextState;
 }
        public ConstantsApp.ProcessState GetNext(ConstantsApp.Command command)
        {
            StateMachineTransition transition = new StateMachineTransition(CurrentState, command);

            ConstantsApp.ProcessState nextState;
            _smTransitions.TryGetValue(transition, out nextState);
            return(nextState);
        }
Exemple #3
0
        public override bool Equals(object obj)
        {
            StateMachineTransition other = obj as StateMachineTransition;

            return(other != null && this.CurrentState == other.CurrentState && this.Command == other.Command);
        }