- Timestamp:
- 03/07/16 10:18:05 (9 years ago)
- Location:
- branches/WebJobManager
- Files:
-
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Problems.Programmable/3.3/MultiObjectiveProgrammableProblem.cs
r13626 r13656 20 20 #endregion 21 21 22 using System.Drawing;23 22 using HeuristicLab.Common; 24 using HeuristicLab.Common.Resources;25 23 using HeuristicLab.Core; 26 24 using HeuristicLab.Data; … … 34 32 [StorableClass] 35 33 public sealed class MultiObjectiveProgrammableProblem : MultiObjectiveBasicProblem<IEncoding>, IProgrammableItem { 36 public static new Image StaticItemImage {37 get { return VSImageLibrary.Script; }38 }39 34 40 private FixedValueParameter<MultiObjectiveProblemDefinitionScript> MultiObjectiveProblemScriptParameter { 35 36 private FixedValueParameter<MultiObjectiveProblemDefinitionScript> MultiObjectiveProblemScriptParameter 37 { 41 38 get { return (FixedValueParameter<MultiObjectiveProblemDefinitionScript>)Parameters["ProblemScript"]; } 42 39 } 43 40 44 public MultiObjectiveProblemDefinitionScript ProblemScript { 41 public MultiObjectiveProblemDefinitionScript ProblemScript 42 { 45 43 get { return MultiObjectiveProblemScriptParameter.Value; } 46 44 } 47 45 48 public IMultiObjectiveProblemDefinition ProblemDefinition { 46 public IMultiObjectiveProblemDefinition ProblemDefinition 47 { 49 48 get { return MultiObjectiveProblemScriptParameter.Value; } 50 49 } … … 90 89 } 91 90 92 public override bool[] Maximization { 91 public override bool[] Maximization 92 { 93 93 get { return Parameters.ContainsKey("ProblemScript") ? ProblemDefinition.Maximization : new[] { false }; } 94 94 } -
branches/WebJobManager/HeuristicLab.Problems.Programmable/3.3/SingleObjectiveProgrammableProblem.cs
r13626 r13656 21 21 22 22 using System.Collections.Generic; 23 using System.Drawing;24 23 using HeuristicLab.Analysis; 25 24 using HeuristicLab.Common; 26 using HeuristicLab.Common.Resources;27 25 using HeuristicLab.Core; 28 26 using HeuristicLab.Data; … … 36 34 [StorableClass] 37 35 public sealed class SingleObjectiveProgrammableProblem : SingleObjectiveBasicProblem<IEncoding>, IProgrammableItem { 38 public static new Image StaticItemImage {39 get { return VSImageLibrary.Script; }40 }41 36 42 private FixedValueParameter<SingleObjectiveProblemDefinitionScript> SingleObjectiveProblemScriptParameter { 37 38 private FixedValueParameter<SingleObjectiveProblemDefinitionScript> SingleObjectiveProblemScriptParameter 39 { 43 40 get { return (FixedValueParameter<SingleObjectiveProblemDefinitionScript>)Parameters["ProblemScript"]; } 44 41 } 45 42 46 public SingleObjectiveProblemDefinitionScript ProblemScript { 43 public SingleObjectiveProblemDefinitionScript ProblemScript 44 { 47 45 get { return SingleObjectiveProblemScriptParameter.Value; } 48 46 } 49 47 50 public ISingleObjectiveProblemDefinition ProblemDefinition { 48 public ISingleObjectiveProblemDefinition ProblemDefinition 49 { 51 50 get { return SingleObjectiveProblemScriptParameter.Value; } 52 51 } … … 93 92 } 94 93 95 public override bool Maximization { 94 public override bool Maximization 95 { 96 96 get { return Parameters.ContainsKey("ProblemScript") ? ProblemDefinition.Maximization : false; } 97 97 }
Note: See TracChangeset
for help on using the changeset viewer.