Example #1
0
 public override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     return true;
 }
Example #2
0
 public override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     CapitalizeReq o = (CapitalizeReq)other;
     if (message_ != o.message_)
     {
         return false;
     }
     return true;
 }
Example #3
0
 public override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     HeartbeatEvent o = (HeartbeatEvent)other;
     if (timestamp_ != o.timestamp_)
     {
         return false;
     }
     return true;
 }
Example #4
0
 public override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     SampleCell1 o = (SampleCell1)other;
     if (foo != o.foo)
     {
         return false;
     }
     if (bar != o.bar)
     {
         return false;
     }
     return true;
 }
Example #5
0
 /// <summary>
 /// Determines whether the specified Cell object is equivalent to this
 /// one.
 /// </summary>
 /// A Cell is said to be equivalent to the other if its fingerprint is
 /// equivalent to the other's, and all the fingerprinted properties of
 /// the other exactly matches with their counterparts.
 /// <remarks>
 /// Given two Cell objects x and y, x.Equivalent(y) returns true if:
 ///   <list type="bullet">
 ///     <item>x.fingerprint.Equivalent(y.fingerprint) returns true.
 ///     </item>
 ///     <item>All the fingerprinted properties in x are equal to those
 ///     in y.</item>
 ///   </list>
 /// </remarks>
 public bool Equivalent(Cell other)
 {
     return Equivalent(other, fingerprint);
 }
Example #6
0
 protected override bool IsEquivalent(Cell other, Fingerprint fingerprint)
 {
     if (!base.IsEquivalent(other, fingerprint))
     {
         return false;
     }
     HelloResp o = (HelloResp)other;
     var touched = new Capo<bool>(fingerprint, tag.Offset);
     if (touched[0])
     {
         if (result_ != o.result_)
         {
             return false;
         }
     }
     return true;
 }
Example #7
0
 public override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     SampleEvent3 o = (SampleEvent3)other;
     if (qux != o.qux)
     {
         return false;
     }
     return true;
 }
Example #8
0
 public override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     LinkSessionRecovered o = (LinkSessionRecovered)other;
     if (linkName_ != o.linkName_)
     {
         return false;
     }
     if (handle_ != o.handle_)
     {
         return false;
     }
     if (context_ != o.context_)
     {
         return false;
     }
     return true;
 }
Example #9
0
 protected override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     HelloResp o = (HelloResp)other;
     if (result_ != o.result_)
     {
         return false;
     }
     return true;
 }
Example #10
0
 public override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     SampleCell4 o = (SampleCell4)other;
     if (quux_ != o.quux_)
     {
         return false;
     }
     return true;
 }
Example #11
0
 public override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     SampleEvent1 o = (SampleEvent1)other;
     if (foo_ != o.foo_)
     {
         return false;
     }
     if (bar_ != o.bar_)
     {
         return false;
     }
     return true;
 }
Example #12
0
 public override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     CapitalizeResp o = (CapitalizeResp)other;
     if (result_ != o.result_)
     {
         return false;
     }
     return true;
 }
Example #13
0
 public override bool IsEquivalent(Cell other)
 {
     if (!base.IsEquivalent(other))
     {
         return false;
     }
     LinkSessionRecovered o = (LinkSessionRecovered)other;
     var touched = new Capo<bool>(fingerprint, tag.Offset);
     if (touched[0])
     {
         if (linkName_ != o.linkName_)
         {
             return false;
         }
     }
     if (touched[1])
     {
         if (handle_ != o.handle_)
         {
             return false;
         }
     }
     if (touched[2])
     {
         if (context_ != o.context_)
         {
             return false;
         }
     }
     return true;
 }
Example #14
0
 protected override bool IsEquivalent(Cell other, Fingerprint fingerprint)
 {
     if (!base.IsEquivalent(other, fingerprint))
     {
         return false;
     }
     TimeoutEvent o = (TimeoutEvent)other;
     var touched = new Capo<bool>(fingerprint, tag.Offset);
     if (touched[0])
     {
         if (key_ != o.key_)
         {
             return false;
         }
     }
     if (touched[1])
     {
         if (intParam_ != o.intParam_)
         {
             return false;
         }
     }
     return true;
 }
Example #15
0
 public override bool IsEquivalent(Cell other)
 {
     if (!base.IsEquivalent(other))
     {
         return false;
     }
     HeartbeatEvent o = (HeartbeatEvent)other;
     var touched = new Capo<bool>(fingerprint, tag.Offset);
     if (touched[0])
     {
         if (timestamp_ != o.timestamp_)
         {
             return false;
         }
     }
     return true;
 }
Example #16
0
 protected override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     TimeoutEvent o = (TimeoutEvent)other;
     if (key_ != o.key_)
     {
         return false;
     }
     if (intParam_ != o.intParam_)
     {
         return false;
     }
     return true;
 }
Example #17
0
 protected override bool IsEquivalent(Cell other, Fingerprint fingerprint)
 {
     if (!base.IsEquivalent(other, fingerprint))
     {
         return false;
     }
     return true;
 }
Example #18
0
 public override bool IsEquivalent(Cell other)
 {
     if (!base.IsEquivalent(other))
     {
         return false;
     }
     SessionResp o = (SessionResp)other;
     var touched = new Capo<bool>(fingerprint, tag.Offset);
     if (touched[0])
     {
         if (value_ != o.value_)
         {
             return false;
         }
     }
     return true;
 }
Example #19
0
 public override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     SessionResp o = (SessionResp)other;
     if (value_ != o.value_)
     {
         return false;
     }
     return true;
 }
Example #20
0
 public override bool IsEquivalent(Cell other)
 {
     if (!base.IsEquivalent(other))
     {
         return false;
     }
     return true;
 }
Example #21
0
 /// <summary>
 /// Determines whether the specified Cell object is equivalent to this
 /// one based on the given fingerprint.
 /// </summary>
 public bool Equivalent(Cell other, Fingerprint fingerprint)
 {
     if (!other.IsKindOf(this))
     {
         return false;
     }
     if (!fingerprint.Equivalent(other.fingerprint))
     {
         return false;
     }
     return IsEquivalent(other, fingerprint);
 }
Example #22
0
 /// <summary>
 /// Determines whether this Cell object is a kind of the specified Cell
 /// in the custom type hierarchy.
 /// </summary>
 public bool IsKindOf(Cell other)
 {
     Tag tag = GetTypeTag();
     Tag otherTag = other.GetTypeTag();
     while (tag != null)
     {
         if (tag == otherTag)
         {
             return true;
         }
         tag = tag.Base;
     }
     return false;
 }
Example #23
0
 public override bool IsEquivalent(Cell other)
 {
     if (!base.IsEquivalent(other))
     {
         return false;
     }
     CapitalizeResp o = (CapitalizeResp)other;
     var touched = new Capo<bool>(fingerprint, tag.Offset);
     if (touched[0])
     {
         if (result_ != o.result_)
         {
             return false;
         }
     }
     return true;
 }
Example #24
0
 /// <summary>
 /// Overridden by subclasses to build an equality test chain.
 /// </summary>
 protected virtual bool EqualsTo(Cell other)
 {
     if (GetType() != other.GetType())
     {
         return false;
     }
     return true;
 }
Example #25
0
 public override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     SampleCell2 o = (SampleCell2)other;
     if (baz_ != o.baz_)
     {
         return false;
     }
     return true;
 }
Example #26
0
 /// <summary>
 /// Overridden by subclasses to build an equivalence test chain.
 /// </summary>
 protected virtual bool IsEquivalent(Cell other, Fingerprint fingerprint)
 {
     return true;
 }
Example #27
0
 public override bool IsEquivalent(Cell other)
 {
     if (!base.IsEquivalent(other))
     {
         return false;
     }
     SampleCell4 o = (SampleCell4)other;
     var touched = new Capo<bool>(fingerprint, tag.Offset);
     if (touched[0])
     {
         if (quux_ != o.quux_)
         {
             return false;
         }
     }
     return true;
 }
Example #28
0
 protected override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     HelloReq o = (HelloReq)other;
     if (name_ != o.name_)
     {
         return false;
     }
     return true;
 }
Example #29
0
 public override bool IsEquivalent(Cell other)
 {
     if (!base.IsEquivalent(other))
     {
         return false;
     }
     SampleEvent1 o = (SampleEvent1)other;
     var touched = new Capo<bool>(fingerprint, tag.Offset);
     if (touched[0])
     {
         if (foo_ != o.foo_)
         {
             return false;
         }
     }
     if (touched[1])
     {
         if (bar_ != o.bar_)
         {
             return false;
         }
     }
     return true;
 }
Example #30
0
 protected override bool EqualsTo(Cell other)
 {
     if (!base.EqualsTo(other))
     {
         return false;
     }
     TestResp o = (TestResp)other;
     if (serial_ != o.serial_)
     {
         return false;
     }
     return true;
 }