- Timestamp:
- 03/07/16 10:18:05 (8 years ago)
- Location:
- branches/WebJobManager
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Clients.OKB/3.3/RunCreation/OKBProblem.cs
r12012 r13656 34 34 [StorableClass] 35 35 public abstract class OKBProblem : Item, IHeuristicOptimizationProblem { 36 public virtual Type ProblemType { 36 public virtual Type ProblemType 37 { 37 38 get { return typeof(IHeuristicOptimizationProblem); } 38 39 } 39 40 private long problemId; 40 public long ProblemId { 41 public long ProblemId 42 { 41 43 get { return problemId; } 42 44 } 43 45 private IHeuristicOptimizationProblem problem; 44 protected IHeuristicOptimizationProblem Problem { 46 protected IHeuristicOptimizationProblem Problem 47 { 45 48 get { return problem; } 46 private set { 49 private set 50 { 47 51 if (value == null) throw new ArgumentNullException("Problem", "Problem cannot be null."); 48 52 if (value != problem) { … … 68 72 } 69 73 70 public override Image ItemImage { 74 public override Image ItemImage 75 { 71 76 get { return Problem.ItemImage; } 72 77 } 73 78 74 public static new Image StaticItemImage { 75 get { return HeuristicLab.Common.Resources.VSImageLibrary.Type; } 76 } 77 78 public string Name { 79 80 81 public string Name 82 { 79 83 get { return Problem.Name; } 80 84 set { throw new NotSupportedException("Name cannot be changed."); } 81 85 } 82 public string Description { 86 public string Description 87 { 83 88 get { return Problem.Description; } 84 89 set { throw new NotSupportedException("Description cannot be changed."); } 85 90 } 86 public bool CanChangeName { 91 public bool CanChangeName 92 { 87 93 get { return false; } 88 94 } 89 public bool CanChangeDescription { 95 public bool CanChangeDescription 96 { 90 97 get { return false; } 91 98 } 92 99 93 public IKeyedItemCollection<string, IParameter> Parameters { 100 public IKeyedItemCollection<string, IParameter> Parameters 101 { 94 102 get { return Problem.Parameters; } 95 103 } 96 104 97 public IParameter SolutionCreatorParameter { 105 public IParameter SolutionCreatorParameter 106 { 98 107 get { return Problem.SolutionCreatorParameter; } 99 108 } 100 public ISolutionCreator SolutionCreator { 109 public ISolutionCreator SolutionCreator 110 { 101 111 get { return Problem.SolutionCreator; } 102 112 } 103 public IParameter EvaluatorParameter { 113 public IParameter EvaluatorParameter 114 { 104 115 get { return Problem.EvaluatorParameter; } 105 116 } 106 public IEvaluator Evaluator { 117 public IEvaluator Evaluator 118 { 107 119 get { return Problem.Evaluator; } 108 120 } 109 public IEnumerable<IItem> Operators { 121 public IEnumerable<IItem> Operators 122 { 110 123 get { return Problem.Operators; } 111 124 } … … 115 128 #region Persistence Properties 116 129 [Storable(Name = "ProblemId")] 117 private long StorableProblemId { 130 private long StorableProblemId 131 { 118 132 get { return problemId; } 119 133 set { problemId = value; } 120 134 } 121 135 [Storable(Name = "Problem")] 122 private IHeuristicOptimizationProblem StorableProblem { 136 private IHeuristicOptimizationProblem StorableProblem 137 { 123 138 get { return problem; } 124 set { 139 set 140 { 125 141 problem = value; 126 142 RegisterProblemEvents();
Note: See TracChangeset
for help on using the changeset viewer.