Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/12/15 10:29:01 (9 years ago)
Author:
abeham
Message:

#2457: Added view

Location:
branches/PerformanceComparison/HeuristicLab.OptimizationExpertSystem/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/PerformanceComparison/HeuristicLab.OptimizationExpertSystem/3.3/ExpertSystemOptimizer.cs

    r12842 r12847  
    4141    public static new Image StaticItemImage {
    4242      get { return VSImageLibrary.Library; }
     43    }
     44
     45    [Storable]
     46    private int maximumEvaluations;
     47    public int MaximumEvaluations {
     48      get { return maximumEvaluations; }
     49      set {
     50        if (maximumEvaluations == value) return;
     51        maximumEvaluations = value;
     52        OnPropertyChanged("MaximumEvaluations");
     53      }
    4354    }
    4455
     
    104115    }
    105116
     117    [Storable]
     118    private ItemList<IAlgorithm> suggestedInstances;
     119    private ReadOnlyItemList<IAlgorithm> readOnlySuggestedInstances;
     120    public ReadOnlyItemList<IAlgorithm> SuggestedInstances {
     121      get { return readOnlySuggestedInstances; }
     122    }
     123
    106124    public IEnumerable<IOptimizer> NestedOptimizers {
    107       get { yield break; }
     125      get { return SuggestedInstances; }
    108126    }
    109127
     
    117135      knowledgeBase = cloner.Clone(original.knowledgeBase);
    118136      problem = cloner.Clone(original.problem);
     137      suggestedInstances = cloner.Clone(original.suggestedInstances);
     138      readOnlySuggestedInstances = suggestedInstances.AsReadOnly();
    119139    }
    120140    public ExpertSystemOptimizer() {
    121141      Runs = new RunCollection();
     142      KnowledgeBase = new RunCollection();
     143      suggestedInstances = new ItemList<IAlgorithm>();
     144      readOnlySuggestedInstances = suggestedInstances.AsReadOnly();
    122145      ExecutionState = ExecutionState.Stopped;
    123146      ExecutionTime = TimeSpan.Zero;
     
    126149    public override IDeepCloneable Clone(Cloner cloner) {
    127150      return new ExpertSystemOptimizer(this, cloner);
     151    }
     152
     153    [StorableHook(HookType.AfterDeserialization)]
     154    private void AfterDeserialization() {
     155      readOnlySuggestedInstances = suggestedInstances.AsReadOnly();
    128156    }
    129157
  • branches/PerformanceComparison/HeuristicLab.OptimizationExpertSystem/3.3/Plugin.cs.frame

    r12842 r12847  
    2828  [Plugin("HeuristicLab.OptimizationExpertSystem", "3.3.12.$WCREV$")]
    2929  [PluginFile("HeuristicLab.OptimizationExpertSystem-3.3.dll", PluginFileType.Assembly)]
    30   [PluginDependency("HeuristicLab.Analysis", "3.7.0")]
     30  [PluginDependency("HeuristicLab.Analysis", "3.3")]
    3131  [PluginDependency("HeuristicLab.Collections", "3.3")]
    3232  [PluginDependency("HeuristicLab.Common", "3.3")]
Note: See TracChangeset for help on using the changeset viewer.