예제 #1
0
 /// <summary>Returns the logical or of this and the other value.</summary>
 /// <param name="other">The value to or this value with.</param>
 public virtual Edu.Stanford.Nlp.Util.Trilean Or(Edu.Stanford.Nlp.Util.Trilean other)
 {
     if (this.value == 1 || other.value == 1)
     {
         return(True);
     }
     else
     {
         if (this.value == 2 || other.value == 2)
         {
             return(Unknown);
         }
         else
         {
             return(False);
         }
     }
 }
예제 #2
0
 /// <summary>The copy constructor.</summary>
 /// <param name="other">The value to copy from.</param>
 public Trilean(Edu.Stanford.Nlp.Util.Trilean other)
 {
     this.value = other.value;
 }