Exemple #1
0
        protected RunCollection(RunCollection original, Cloner cloner)
            : base(original, cloner)
        {
            updateOfRunsInProgress = false;
            optimizerName          = original.optimizerName;

            resultNames    = new List <string>(original.resultNames);
            parameterNames = new List <string>(original.parameterNames);
            dataTypes      = new Dictionary <string, HashSet <Type> >();
            foreach (string s in original.dataTypes.Keys)
            {
                dataTypes[s] = new HashSet <Type>(original.dataTypes[s]);
            }

            constraints = new RunCollectionConstraintCollection(original.constraints.Select(x => cloner.Clone(x)));
            modifiers   = new CheckedItemList <IRunCollectionModifier>(original.modifiers.Select(cloner.Clone));
            foreach (IRunCollectionConstraint constraint in constraints)
            {
                constraint.ConstrainedValue = this;
            }
            RegisterConstraintsEvents();
            RegisterConstraintEvents(constraints);

            foreach (var run in this)
            {
                RegisterRunParametersEvents(run);
                RegisterRunResultsEvents(run);
            }

            UpdateFiltering(true);
        }
Exemple #2
0
 private void Initialize()
 {
     updateOfRunsInProgress = false;
     parameterNames         = new List <string>();
     resultNames            = new List <string>();
     dataTypes   = new Dictionary <string, HashSet <Type> >();
     constraints = new RunCollectionConstraintCollection();
     modifiers   = new CheckedItemList <IRunCollectionModifier>();
     RegisterConstraintsEvents();
 }
Exemple #3
0
        private void AfterDeserialization()
        {
            if (constraints == null)
            {
                constraints = new RunCollectionConstraintCollection();
            }
            if (modifiers == null)
            {
                modifiers = new CheckedItemList <IRunCollectionModifier>();
            }
            RegisterConstraintsEvents();
            RegisterConstraintEvents(constraints);

            foreach (var run in this)
            {
                RegisterRunParametersEvents(run);
                RegisterRunResultsEvents(run);
            }
            UpdateFiltering(true);
        }
 protected RunCollectionConstraintCollection(RunCollectionConstraintCollection original, Cloner cloner)
     : base(original, cloner)
 {
 }