Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/07/16 10:18:05 (9 years ago)
Author:
ascheibe
Message:

#2582 created branch for Hive Web Job Manager

Location:
branches/WebJobManager
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/WebJobManager/HeuristicLab.Optimization/3.3/Problems/Problem.cs

    r12012 r13656  
    3535  public abstract class Problem : ParameterizedNamedItem, IProblem {
    3636    private const string OperatorsParameterName = "Operators";
    37     public IFixedValueParameter<ItemCollection<IItem>> OperatorsParameter {
     37    public IFixedValueParameter<ItemCollection<IItem>> OperatorsParameter
     38    {
    3839      get { return (IFixedValueParameter<ItemCollection<IItem>>)Parameters[OperatorsParameterName]; }
    3940    }
    4041
    41     public static new Image StaticItemImage {
    42       get { return HeuristicLab.Common.Resources.VSImageLibrary.Type; }
     42    public static new Image StaticItemImage
     43    {
     44      get { return new Bitmap(25, 25); }
    4345    }
    4446
     
    8587    #region Backwards compatible code, remove with 3.4
    8688    [Storable(Name = "Operators", AllowOneWay = true)]
    87     private IEnumerable<IOperator> StorableOperators {
    88       set {
     89    private IEnumerable<IOperator> StorableOperators
     90    {
     91      set
     92      {
    8993        IParameter operatorsParam;
    9094        if (Parameters.TryGetValue(OperatorsParameterName, out operatorsParam)) {
     
    102106    }
    103107    #endregion
    104     protected ItemCollection<IItem> Operators {
    105       get {
     108    protected ItemCollection<IItem> Operators
     109    {
     110      get
     111      {
    106112        // BackwardsCompatibility3.3
    107113        #region Backwards compatible code, remove with 3.4
     
    120126    }
    121127
    122     public virtual IEnumerable<IParameterizedItem> ExecutionContextItems {
     128    public virtual IEnumerable<IParameterizedItem> ExecutionContextItems
     129    {
    123130      get { yield return this; }
    124131    }
  • branches/WebJobManager/HeuristicLab.Optimization/3.3/Problems/UserDefinedProblem.cs

    r12504 r13656  
    4343    public string Filename { get; set; }
    4444
    45     public static new Image StaticItemImage {
    46       get { return HeuristicLab.Common.Resources.VSImageLibrary.Type; }
    47     }
    48     public new ParameterCollection Parameters {
     45    public static new Image StaticItemImage
     46    {
     47      get { return new Bitmap(25, 25); }
     48    }
     49    public new ParameterCollection Parameters
     50    {
    4951      get { return base.Parameters; }
    5052    }
    51     IKeyedItemCollection<string, IParameter> IParameterizedItem.Parameters {
     53    IKeyedItemCollection<string, IParameter> IParameterizedItem.Parameters
     54    {
    5255      get { return Parameters; }
    5356    }
    5457
    5558    #region Parameters
    56     public IValueParameter<ISingleObjectiveEvaluator> EvaluatorParameter {
     59    public IValueParameter<ISingleObjectiveEvaluator> EvaluatorParameter
     60    {
    5761      get { return (IValueParameter<ISingleObjectiveEvaluator>)Parameters["Evaluator"]; }
    5862    }
    59     public ValueParameter<BoolValue> MaximizationParameter {
     63    public ValueParameter<BoolValue> MaximizationParameter
     64    {
    6065      get { return (ValueParameter<BoolValue>)Parameters["Maximization"]; }
    6166    }
    62     IParameter ISingleObjectiveHeuristicOptimizationProblem.MaximizationParameter {
     67    IParameter ISingleObjectiveHeuristicOptimizationProblem.MaximizationParameter
     68    {
    6369      get { return MaximizationParameter; }
    6470    }
    65     public ValueParameter<ISolutionCreator> SolutionCreatorParameter {
     71    public ValueParameter<ISolutionCreator> SolutionCreatorParameter
     72    {
    6673      get { return (ValueParameter<ISolutionCreator>)Parameters["SolutionCreator"]; }
    6774    }
    68     IParameter IHeuristicOptimizationProblem.SolutionCreatorParameter {
     75    IParameter IHeuristicOptimizationProblem.SolutionCreatorParameter
     76    {
    6977      get { return SolutionCreatorParameter; }
    7078    }
    71     IParameter IHeuristicOptimizationProblem.EvaluatorParameter {
     79    IParameter IHeuristicOptimizationProblem.EvaluatorParameter
     80    {
    7281      get { return EvaluatorParameter; }
    7382    }
    74     public OptionalValueParameter<DoubleValue> BestKnownQualityParameter {
     83    public OptionalValueParameter<DoubleValue> BestKnownQualityParameter
     84    {
    7585      get { return (OptionalValueParameter<DoubleValue>)Parameters["BestKnownQuality"]; }
    7686    }
    77     IParameter ISingleObjectiveHeuristicOptimizationProblem.BestKnownQualityParameter {
     87    IParameter ISingleObjectiveHeuristicOptimizationProblem.BestKnownQualityParameter
     88    {
    7889      get { return BestKnownQualityParameter; }
    7990    }
    80     public OptionalValueParameter<IScope> BestKnownSolutionParameter {
     91    public OptionalValueParameter<IScope> BestKnownSolutionParameter
     92    {
    8193      get { return (OptionalValueParameter<IScope>)Parameters["BestKnownSolution"]; }
    8294    }
    83     public ValueParameter<ItemList<IItem>> OperatorsParameter {
     95    public ValueParameter<ItemList<IItem>> OperatorsParameter
     96    {
    8497      get { return (ValueParameter<ItemList<IItem>>)Parameters["Operators"]; }
    8598    }
     
    87100
    88101    #region Properties
    89     public BoolValue Maximization {
     102    public BoolValue Maximization
     103    {
    90104      get { return MaximizationParameter.Value; }
    91105      set { MaximizationParameter.Value = value; }
    92106    }
    93     public ISolutionCreator SolutionCreator {
     107    public ISolutionCreator SolutionCreator
     108    {
    94109      get { return SolutionCreatorParameter.Value; }
    95110      set { SolutionCreatorParameter.Value = value; }
    96111    }
    97     ISolutionCreator IHeuristicOptimizationProblem.SolutionCreator {
     112    ISolutionCreator IHeuristicOptimizationProblem.SolutionCreator
     113    {
    98114      get { return SolutionCreatorParameter.Value; }
    99115    }
    100     public ISingleObjectiveEvaluator Evaluator {
     116    public ISingleObjectiveEvaluator Evaluator
     117    {
    101118      get { return EvaluatorParameter.Value; }
    102119      set { EvaluatorParameter.Value = value; }
    103120    }
    104     ISingleObjectiveEvaluator ISingleObjectiveHeuristicOptimizationProblem.Evaluator {
     121    ISingleObjectiveEvaluator ISingleObjectiveHeuristicOptimizationProblem.Evaluator
     122    {
    105123      get { return EvaluatorParameter.Value; }
    106124    }
    107     IEvaluator IHeuristicOptimizationProblem.Evaluator {
     125    IEvaluator IHeuristicOptimizationProblem.Evaluator
     126    {
    108127      get { return EvaluatorParameter.Value; }
    109128    }
    110     public DoubleValue BestKnownQuality {
     129    public DoubleValue BestKnownQuality
     130    {
    111131      get { return BestKnownQualityParameter.Value; }
    112132      set { BestKnownQualityParameter.Value = value; }
    113133    }
    114     public IEnumerable<IItem> Operators {
     134    public IEnumerable<IItem> Operators
     135    {
    115136      get { return OperatorsParameter.Value; }
    116137    }
    117138
    118     public IEnumerable<IParameterizedItem> ExecutionContextItems {
     139    public IEnumerable<IParameterizedItem> ExecutionContextItems
     140    {
    119141      get { yield return this; }
    120142    }
     
    250272      #region ISingleObjectiveEvaluator Members
    251273
    252       public ILookupParameter<DoubleValue> QualityParameter {
     274      public ILookupParameter<DoubleValue> QualityParameter
     275      {
    253276        get { return (ILookupParameter<DoubleValue>)Parameters["Quality"]; }
    254277      }
     
    276299      #endregion
    277300
    278       public static new Image StaticItemImage {
    279         get { return HeuristicLab.Common.Resources.VSImageLibrary.Method; }
     301      public static new Image StaticItemImage
     302      {
     303        get { return new Bitmap(25, 25); }
    280304      }
    281305    }
Note: See TracChangeset for help on using the changeset viewer.