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:
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/WebJobManager/HeuristicLab.Problems.VehicleRouting/3.4/Analyzer/VRPSolution.cs

    r12012 r13656  
    2121
    2222using System;
    23 using System.Drawing;
    2423using HeuristicLab.Common;
    2524using HeuristicLab.Core;
     
    3534  [StorableClass]
    3635  public sealed class VRPSolution : Item {
    37     public static new Image StaticItemImage {
    38       get { return HeuristicLab.Common.Resources.VSImageLibrary.Image; }
    39     }
     36
    4037
    4138    [Storable]
    4239    private IVRPProblemInstance problemInstance;
    43     public IVRPProblemInstance ProblemInstance {
     40    public IVRPProblemInstance ProblemInstance
     41    {
    4442      get { return problemInstance; }
    45       set {
     43      set
     44      {
    4645        if (problemInstance != value) {
    4746          if (problemInstance != null) DeregisterProblemInstanceEvents();
     
    5453    [Storable]
    5554    private IVRPEncoding solution;
    56     public IVRPEncoding Solution {
     55    public IVRPEncoding Solution
     56    {
    5757      get { return solution; }
    58       set {
     58      set
     59      {
    5960        if (solution != value) {
    6061          if (solution != null) DeregisterSolutionEvents();
     
    6768    [Storable]
    6869    private DoubleValue quality;
    69     public DoubleValue Quality {
     70    public DoubleValue Quality
     71    {
    7072      get { return quality; }
    71       set {
     73      set
     74      {
    7275        if (quality != value) {
    7376          if (quality != null) DeregisterQualityEvents();
  • branches/WebJobManager/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/General/TourEncoding.cs

    r12012 r13656  
    2121
    2222using System.Collections.Generic;
    23 using System.Drawing;
    2423using HeuristicLab.Common;
    2524using HeuristicLab.Core;
     
    3130  [StorableClass]
    3231  public abstract class TourEncoding : Item, IVRPEncoding {
    33     public static new Image StaticItemImage {
    34       get { return HeuristicLab.Common.Resources.VSImageLibrary.Class; }
    35     }
     32
    3633
    3734    #region IVRPEncoding Members
     
    7976    }
    8077
    81     public int Cities {
    82       get {
     78    public int Cities
     79    {
     80      get
     81      {
    8382        int cities = 0;
    8483
  • branches/WebJobManager/HeuristicLab.Problems.VehicleRouting/3.4/VehicleRoutingProblem.cs

    r13173 r13656  
    2222using System;
    2323using System.Collections.Generic;
    24 using System.Drawing;
    2524using System.Linq;
    2625using HeuristicLab.Analysis;
     
    4746    public string Filename { get; set; }
    4847
    49     public static new Image StaticItemImage {
    50       get { return HeuristicLab.Common.Resources.VSImageLibrary.Type; }
    51     }
     48
    5249
    5350    #region Parameter Properties
    54     public ValueParameter<BoolValue> MaximizationParameter {
     51    public ValueParameter<BoolValue> MaximizationParameter
     52    {
    5553      get { return (ValueParameter<BoolValue>)Parameters["Maximization"]; }
    5654    }
    57     IParameter ISingleObjectiveHeuristicOptimizationProblem.MaximizationParameter {
     55    IParameter ISingleObjectiveHeuristicOptimizationProblem.MaximizationParameter
     56    {
    5857      get { return MaximizationParameter; }
    5958    }
    60     public ValueParameter<IVRPProblemInstance> ProblemInstanceParameter {
     59    public ValueParameter<IVRPProblemInstance> ProblemInstanceParameter
     60    {
    6161      get { return (ValueParameter<IVRPProblemInstance>)Parameters["ProblemInstance"]; }
    6262    }
    63     public OptionalValueParameter<DoubleValue> BestKnownQualityParameter {
     63    public OptionalValueParameter<DoubleValue> BestKnownQualityParameter
     64    {
    6465      get { return (OptionalValueParameter<DoubleValue>)Parameters["BestKnownQuality"]; }
    6566    }
    66     IParameter ISingleObjectiveHeuristicOptimizationProblem.BestKnownQualityParameter {
     67    IParameter ISingleObjectiveHeuristicOptimizationProblem.BestKnownQualityParameter
     68    {
    6769      get { return BestKnownQualityParameter; }
    6870    }
    69     public OptionalValueParameter<VRPSolution> BestKnownSolutionParameter {
     71    public OptionalValueParameter<VRPSolution> BestKnownSolutionParameter
     72    {
    7073      get { return (OptionalValueParameter<VRPSolution>)Parameters["BestKnownSolution"]; }
    7174    }
    72     public IConstrainedValueParameter<IVRPCreator> SolutionCreatorParameter {
     75    public IConstrainedValueParameter<IVRPCreator> SolutionCreatorParameter
     76    {
    7377      get { return (IConstrainedValueParameter<IVRPCreator>)Parameters["SolutionCreator"]; }
    7478    }
    75     IParameter IHeuristicOptimizationProblem.SolutionCreatorParameter {
     79    IParameter IHeuristicOptimizationProblem.SolutionCreatorParameter
     80    {
    7681      get { return SolutionCreatorParameter; }
    7782    }
    78     public IValueParameter<IVRPEvaluator> EvaluatorParameter {
     83    public IValueParameter<IVRPEvaluator> EvaluatorParameter
     84    {
    7985      get { return (IValueParameter<IVRPEvaluator>)Parameters["Evaluator"]; }
    8086    }
    81     IParameter IHeuristicOptimizationProblem.EvaluatorParameter {
     87    IParameter IHeuristicOptimizationProblem.EvaluatorParameter
     88    {
    8289      get { return EvaluatorParameter; }
    8390    }
     
    8592
    8693    #region Properties
    87     public IVRPProblemInstance ProblemInstance {
     94    public IVRPProblemInstance ProblemInstance
     95    {
    8896      get { return ProblemInstanceParameter.Value; }
    8997      set { ProblemInstanceParameter.Value = value; }
    9098    }
    9199
    92     public VRPSolution BestKnownSolution {
     100    public VRPSolution BestKnownSolution
     101    {
    93102      get { return BestKnownSolutionParameter.Value; }
    94103      set { BestKnownSolutionParameter.Value = value; }
    95104    }
    96105
    97     public DoubleValue BestKnownQuality {
     106    public DoubleValue BestKnownQuality
     107    {
    98108      get { return BestKnownQualityParameter.Value; }
    99109      set { BestKnownQualityParameter.Value = value; }
    100110    }
    101111
    102     public ISingleObjectiveEvaluator Evaluator {
     112    public ISingleObjectiveEvaluator Evaluator
     113    {
    103114      get { return EvaluatorParameter.Value; }
    104115    }
    105116
    106     IEvaluator IHeuristicOptimizationProblem.Evaluator {
     117    IEvaluator IHeuristicOptimizationProblem.Evaluator
     118    {
    107119      get { return this.Evaluator; }
    108120    }
    109121
    110     ISolutionCreator IHeuristicOptimizationProblem.SolutionCreator {
     122    ISolutionCreator IHeuristicOptimizationProblem.SolutionCreator
     123    {
    111124      get { return SolutionCreatorParameter.Value; }
    112125    }
    113     public IVRPCreator SolutionCreator {
     126    public IVRPCreator SolutionCreator
     127    {
    114128      get { return SolutionCreatorParameter.Value; }
    115129      set { SolutionCreatorParameter.Value = value; }
     
    176190
    177191    [Storable(Name = "operators", AllowOneWay = true)]
    178     private List<IOperator> StorableOperators {
     192    private List<IOperator> StorableOperators
     193    {
    179194      set { Operators.AddRange(value); }
    180195    }
Note: See TracChangeset for help on using the changeset viewer.