Ejemplo n.º 1
0
 public override bool Equals(object o)
 {
     if (this == o)
     {
         return(true);
     }
     if (!(o is Edu.Stanford.Nlp.IE.Machinereading.Structure.EventMention))
     {
         return(false);
     }
     if (!base.Equals(o))
     {
         return(false);
     }
     Edu.Stanford.Nlp.IE.Machinereading.Structure.EventMention that = (Edu.Stanford.Nlp.IE.Machinereading.Structure.EventMention)o;
     if (anchor != null ? !anchor.Equals(that.anchor) : that.anchor != null)
     {
         return(false);
     }
     if (eventModification != null ? !eventModification.Equals(that.eventModification) : that.eventModification != null)
     {
         return(false);
     }
     if (parents != null ? !parents.Equals(that.parents) : that.parents != null)
     {
         return(false);
     }
     return(true);
 }
 /// <summary>Verifies if the two sets of arguments match</summary>
 /// <param name="inputArgs">List of arguments</param>
 public virtual bool ArgsMatch(IList <ExtractionObject> inputArgs)
 {
     if (inputArgs.Count != this.args.Count)
     {
         return(false);
     }
     for (int ind = 0; ind < this.args.Count; ind++)
     {
         ExtractionObject a1 = this.args[ind];
         ExtractionObject a2 = inputArgs[ind];
         if (!a1.Equals(a2))
         {
             return(false);
         }
     }
     return(true);
 }