Changeset 2728 for trunk/sources/HeuristicLab.GP/3.3/BaseClasses
- Timestamp:
- 02/01/10 08:52:32 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP/3.3/BaseClasses/FunctionLibraryInjectorBase.cs
r2616 r2728 36 36 } 37 37 38 private FunctionLibrary functionLibrary; 39 public FunctionLibrary FunctionLibrary { 40 get { 41 return functionLibrary; 42 } 43 set { 44 this.functionLibrary = value; 45 FireChanged(); 46 } 47 } 48 38 49 public FunctionLibraryInjectorBase() 39 50 : base() { 40 51 AddVariableInfo(new VariableInfo(FUNCTIONLIBRARY, "Preconfigured default function library", typeof(FunctionLibrary), VariableKind.New)); 52 // create the default function library 53 functionLibrary = CreateFunctionLibrary(); 41 54 } 42 55 43 56 public override IOperation Apply(IScope scope) { 44 scope.AddVariable(new HeuristicLab.Core.Variable(scope.TranslateName(FUNCTIONLIBRARY), CreateFunctionLibrary()));57 scope.AddVariable(new HeuristicLab.Core.Variable(scope.TranslateName(FUNCTIONLIBRARY), functionLibrary)); 45 58 return null; 46 59 } … … 59 72 } 60 73 } 74 75 public override IView CreateView() { 76 return new FunctionLibraryInjectorView(this); 77 } 61 78 } 62 79 }
Note: See TracChangeset
for help on using the changeset viewer.