/// <summary> /// Grasshopper solveinstance /// </summary> /// <param name="DA"></param> protected override void SolveInstance(IGH_DataAccess DA) { DA.GetDataTree("InitialPop", out existingPopTree); // Make the DA global if (solveinstanceCounter == 0) { deej = DA; } // Output info if (populationNumbers != null) { myOutputData.SetPopulationData(populationNumbers); } if (historicNumbers != null) { myOutputData.SetHistoricData(historicNumbers); } if (clusterNumbers != null) { myOutputData.SetClusterData(clusterNumbers); } if (cSliders != null) { myOutputData.SetSliderData(cSliders); } if (cGenePools != null) { myOutputData.SetGenePoolData(cGenePools); } if (myOutputData.GetPopulationData() != null) { DA.SetDataList(0, myOutputData.GetGenoGUIDs()); } if (myOutputData.GetPopulationData() != null) { DA.SetDataTree(1, myOutputData.GetPopulationData()); } else { //this.AddRuntimeMessage(GH_RuntimeMessageLevel.Remark, "Data contains no population"); //return; } if (myOutputData.GetHistoricData() != null) { DA.SetDataTree(2, myOutputData.GetHistoricData()); } if (myOutputData.GetClusterData() != null) { DA.SetDataTree(3, myOutputData.GetClusterData()); } solveinstanceCounter++; }
/// <summary> /// Grasshopper solveinstance /// </summary> /// <param name="DA"></param> protected override void SolveInstance(IGH_DataAccess DA) { // Make the DA global if (solveinstanceCounter == 0) { deej = DA; } // Output info myOutputData.PopCount = popCount; if (historicNumbers != null) { myOutputData.SetHistoricData(historicNumbers); } if (genoGuids != null) { myOutputData.SetGenoGuids(genoGuids); } DA.SetData(0, new BiomorpherGoo(myOutputData)); solveinstanceCounter++; }