Exemple #1
0
 protected void PerformTransition(MachineTransition transition)
 {
     if (FState > 0 && OnTransition != null)
     {
         OnTransition(this, new TransitionEventArgs(transition));
     }
     State = transition.To;
 }
Exemple #2
0
 public TransitionEventArgs(MachineTransition transition)
     : base()
 {
     Transition = transition;
 }
Exemple #3
0
 public void AddTransition(MachineTransition transition)
 {
     Transitions[FindState(transition.From)].Add(transition);
 }