public OutgoingTransition( TElementDistribution elementDistribution, Weight weight, WeightedStateSet destinations) { this.ElementDistribution = elementDistribution; this.Weight = weight; this.Destinations = destinations; }
/// <summary> /// Checks whether this object is equal to a given one. /// </summary> /// <param name="that">The object to compare this object with.</param> /// <returns> /// <see langword="true"/> if the objects are equal, /// <see langword="false"/> otherwise. /// </returns> public bool Equals(WeightedStateSet that) { if (this.Count != that.Count) { return(false); } for (var i = 0; i < this.Count; ++i) { var state1 = this[i]; var state2 = that[i]; if (state1.Index != state2.Index || state1.WeightHighBits != state2.WeightHighBits) { return(false); } } return(true); }