public AssemblyCandidate(candidate c) { activeRuleSetIndex = c.activeRuleSetIndex; graph = c.graph; foreach (var d in c.prevStates) { prevStates.Add(d); } foreach (var opt in c.recipe) { recipe.Add(opt); } foreach (var f in c.performanceParams) { performanceParams.Add(f); } foreach (var f in c.designParameters) { designParameters.Add(f); } foreach (var a in c.GenerationStatus) { GenerationStatus.Add(a); } Sequence = new AssemblySequence(); }
/// <summary> /// Initializes a new instance of the <see cref = "candidate" /> class. /// </summary> /// <param name = "_graph">The _graph.</param> /// <param name = "numRuleSets">The num rule sets.</param> public candidate(designGraph _graph, int numRuleSets) { graph = _graph; for (var i = 0; i != numRuleSets; i++) { GenerationStatus.Add(GenerationStatuses.Unspecified); } }