public void Remove(PairwiseSubModel childModel) { if (childModel == null) { throw new ArgumentNullException("childModel"); } InnerList.Remove(childModel); }
public void Insert(int index, PairwiseSubModel childModel) { if (childModel == null) { throw new ArgumentNullException("childModel"); } InnerList.Insert(index, childModel); }
public int IndexOf(PairwiseSubModel childModel) { if (childModel == null) { throw new ArgumentNullException("childModel"); } return(InnerList.IndexOf(childModel)); }
public bool Contains(PairwiseSubModel childModel) { if (childModel == null) { throw new ArgumentNullException("childModel"); } return(InnerList.Contains(childModel)); }
protected override void OnValidate(object value) { base.OnValidate(value); PairwiseSubModel childModel = value as PairwiseSubModel; if (childModel == null) { throw new ArgumentException("PairwiseSubModel"); } }
public override object Visit(PairwiseSubModel childModel) { if (childModel.SubModelParameters.Count <= 0) { throw new InvalidOperationException("Cluster doesn't have more than one parameter: " + childModel.SubModelParameters.Count); } string s = "{"; foreach (PairwiseParameter pp in childModel.SubModelParameters) { s += pp.Name; s += context.Settings.SetValueSeparator; } s = s.Remove(s.Length - context.Settings.SetValueSeparator.Length, context.Settings.SetValueSeparator.Length); s += "}"; s += " @ " + childModel.SubModelOrder; return(GetComment(childModel) + s); }
public void Add(PairwiseSubModel model) { this.submodels.Add(model); }
public abstract object Visit(PairwiseSubModel childModel);