/// <summary> /// Initializes a new instance of the <see cref="Base" /> class. /// </summary> /// <param name='nodeA'> /// Node a. /// </param> /// <param name='nodeB'> /// Node b. /// </param> /// <param name='weight'> /// Initial Weight. /// </param> public Base(Node.Base nodeA, Node.Base nodeB, Double weight) { NodeA = nodeA; NodeB = nodeB; Weight = weight; _InitialValue = weight; _PendingWeightChange = 0; _PendingWeightChangeCount = 0; _PastWeightChange = 0; }
public virtual void Dispose() { NodeA = null; NodeB = null; }
/// <summary> /// Initializes a new instance of the <see cref="Base" /> class. Used by the Serializer /// </summary> /// <param name='info'> /// Info. /// </param> /// <param name='context'> /// Context. /// </param> public Base(SerializationInfo info, StreamingContext context) { NodeA = (Node.Base) info.GetValue("NodeA", typeof (Node.Base)); NodeB = (Node.Base) info.GetValue("NodeB", typeof (Node.Base)); Weight = info.GetDouble("Weight"); _InitialValue = info.GetDouble("_InitialValue"); _PendingWeightChange = info.GetDouble("_PendingWeightChange"); _PendingWeightChangeCount = info.GetDouble("_PendingWeightChangeCount"); _PastWeightChange = info.GetDouble("_PastWeightChange"); }