コード例 #1
0
        public void Remove(PairwiseSubModel childModel)
        {
            if (childModel == null)
            {
                throw new ArgumentNullException("childModel");
            }

            InnerList.Remove(childModel);
        }
コード例 #2
0
        public void Insert(int index, PairwiseSubModel childModel)
        {
            if (childModel == null)
            {
                throw new ArgumentNullException("childModel");
            }

            InnerList.Insert(index, childModel);
        }
コード例 #3
0
        public int IndexOf(PairwiseSubModel childModel)
        {
            if (childModel == null)
            {
                throw new ArgumentNullException("childModel");
            }

            return(InnerList.IndexOf(childModel));
        }
コード例 #4
0
        public bool Contains(PairwiseSubModel childModel)
        {
            if (childModel == null)
            {
                throw new ArgumentNullException("childModel");
            }

            return(InnerList.Contains(childModel));
        }
コード例 #5
0
        protected override void OnValidate(object value)
        {
            base.OnValidate(value);

            PairwiseSubModel childModel = value as PairwiseSubModel;

            if (childModel == null)
            {
                throw new ArgumentException("PairwiseSubModel");
            }
        }
コード例 #6
0
        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);
        }
コード例 #7
0
ファイル: PairwiseModel.cs プロジェクト: dotnet/wpf-test
 public void Add(PairwiseSubModel model)
 {
     this.submodels.Add(model);
 }
コード例 #8
0
 public abstract object Visit(PairwiseSubModel childModel);