Changeset 40 for trunk/sources/HeuristicLab.Selection.OffspringSelection
- Timestamp:
- 03/05/08 02:08:02 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Selection.OffspringSelection/OffspringSelector.cs
r2 r40 38 38 AddVariableInfo(new VariableInfo("SelectionPressure", "Current selection pressure", typeof(DoubleData), VariableKind.New | VariableKind.Out)); 39 39 AddVariableInfo(new VariableInfo("SuccessRatio", "Current success ratio", typeof(DoubleData), VariableKind.New | VariableKind.Out)); 40 AddVariableInfo(new VariableInfo("GoodChildren", "Temporarily store successful children", typeof(ItemList ), VariableKind.New | VariableKind.Out | VariableKind.In | VariableKind.Deleted));41 AddVariableInfo(new VariableInfo("BadChildren", "Temporarily store unsuccessful children", typeof(ItemList ), VariableKind.New | VariableKind.Out | VariableKind.In | VariableKind.Deleted));40 AddVariableInfo(new VariableInfo("GoodChildren", "Temporarily store successful children", typeof(ItemList<IScope>), VariableKind.New | VariableKind.Out | VariableKind.In | VariableKind.Deleted)); 41 AddVariableInfo(new VariableInfo("BadChildren", "Temporarily store unsuccessful children", typeof(ItemList<IScope>), VariableKind.New | VariableKind.Out | VariableKind.In | VariableKind.Deleted)); 42 42 } 43 43 … … 50 50 51 51 // retrieve good and bad children 52 ItemList goodChildren = GetVariableValue<ItemList>("GoodChildren", scope, false, false);52 ItemList<IScope> goodChildren = GetVariableValue<ItemList<IScope>>("GoodChildren", scope, false, false); 53 53 if (goodChildren == null) { 54 goodChildren = new ItemList(); 55 goodChildren.ItemType = typeof(IScope); 54 goodChildren = new ItemList<IScope>(); 56 55 IVariableInfo goodChildrenInfo = GetVariableInfo("GoodChildren"); 57 56 if (goodChildrenInfo.Local) … … 60 59 scope.AddVariable(new Variable(goodChildrenInfo.ActualName, goodChildren)); 61 60 } 62 ItemList badChildren = GetVariableValue<ItemList>("BadChildren", scope, false, false);61 ItemList<IScope> badChildren = GetVariableValue<ItemList<IScope>>("BadChildren", scope, false, false); 63 62 if (badChildren == null) { 64 badChildren = new ItemList(); 65 badChildren.ItemType = typeof(IScope); 63 badChildren = new ItemList<IScope>(); 66 64 IVariableInfo badChildrenInfo = GetVariableInfo("BadChildren"); 67 65 if (badChildrenInfo.Local)
Note: See TracChangeset
for help on using the changeset viewer.