public Code(Network network) { System.Collections.IList constraints = network.Constraints; conditions = new Condition[constraints.Count]; for (var i = 0; i < conditions.Length; i++) { var c = network.GetConstraint(i); conditions[i] = c.ExtractCondition(); } }
public Code(Network network) { System.Collections.IList constraints = network.Constraints; Conditions = new Condition[constraints.Count]; for (int i = 0; i < Conditions.Length; i++) { Constraint c = network.GetConstraint(i); Conditions[i] = c.ExtractCondition(); } }
public override void ApplyTo(Network network) { var s = (Serialized)network.GetConstraint(index); int t = s.order[i]; s.order[i] = s.order[j]; s.order[j] = t; }
public override void ApplyTo(Network network) { var s = (Serialized) network.GetConstraint(_index); int t = s._order[_i]; s._order[_i] = s._order[_j]; s._order[_j] = t; }