public StepperComponentAttributes(IGH_Component component) : base(component) { MyComponent = (StepperComponent)component; this.Gradient = new List <List <double> >(); this.DifOne = new List <List <double> >(); this.DifTwo = new List <List <double> >(); this.DesignMapStepperOne = new List <List <double> >(); this.DesignMapStepperTwo = new List <List <double> >(); this.DesignMapStepperCombined = new List <List <double> >(); this.ObjValsOne = new List <List <double> >(); this.ObjValsTwo = new List <List <double> >(); this.IsoPerf = new List <double>(); }
//CONSTRUCTOR public StepperVM(StepperComponent stepper) { //StepperComponent this.MyComponent = stepper; //Set up list of lists to store the value evolution of each objective this.Objectives = new List <List <double> >(); for (int i = 0; i < this.MyComponent.ObjInput.Count; i++) { this.Objectives.Add(new List <double>()); } //Set up list of lists to store the value evolution of each variable this.Variables = new List <List <double> >(); foreach (DSEVariable var in this.MyComponent.VarsList) { this.Objectives.Add(new List <double>()); } }