public static FuzzyBool Not(FuzzyBool A) { if (A == FuzzyBool.False) return FuzzyBool.True; if (A == FuzzyBool.True) return FuzzyBool.False; return FuzzyBool.Undetermined; }
public static FuzzyBool Or(FuzzyBool A, FuzzyBool B) { if (A == FuzzyBool.True || B == FuzzyBool.True) return FuzzyBool.True; if (A == FuzzyBool.False && B == FuzzyBool.False) return FuzzyBool.False; return FuzzyBool.Undetermined; }
// Done! #region .Ctor // Done! public HardwareActionStatus(TimeSpan span, FuzzyBool complete, string message = "") { this.TimeSpan = span; this.Complete = complete; this.Message = message; }