diff Implab/Automaton/AutomatonTransition.cs @ 205:8200ab154c8a v2

Added ResetState to RunnableComponent to reset in case of failure Added StateChanged event to IRunnable Renamed Promise.SUCCESS -> Promise.Success Added Promise.FromException Renamed Bundle -> PromiseAll in PromiseExtensions
author cin
date Tue, 25 Oct 2016 17:40:33 +0300
parents b84cdbe82e7f
children d6fe09f5592c
line wrap: on
line diff
--- a/Implab/Automaton/AutomatonTransition.cs	Tue Oct 18 17:49:54 2016 +0300
+++ b/Implab/Automaton/AutomatonTransition.cs	Tue Oct 25 17:40:33 2016 +0300
@@ -28,6 +28,14 @@
         public override int GetHashCode() {
             return s1 + s2 + edge;
         }
+
+        public static bool operator == (AutomatonTransition rv, AutomatonTransition lv) {
+            return rv.Equals(lv);
+        }
+
+        public static bool operator !=(AutomatonTransition rv, AutomatonTransition lv) {
+            return rv.Equals(lv);
+        }
     }
 }