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

Legend:

Unmodified
Added
Removed
  • branches/WebJobManager/HeuristicLab.Optimization/3.3/Algorithms/Algorithm.cs

    r12012 r13656  
    3737  [StorableClass]
    3838  public abstract class Algorithm : ParameterizedNamedItem, IAlgorithm {
    39     public static new Image StaticItemImage {
    40       get { return HeuristicLab.Common.Resources.VSImageLibrary.Event; }
    41     }
    42     public override Image ItemImage {
    43       get {
     39    public static new Image StaticItemImage
     40    {
     41      get { return new Bitmap(25, 25); }
     42    }
     43    public override Image ItemImage
     44    {
     45      get
     46      {
    4447        if (ExecutionState == ExecutionState.Prepared) return HeuristicLab.Common.Resources.VSImageLibrary.ExecutablePrepared;
    4548        else if (ExecutionState == ExecutionState.Started) return HeuristicLab.Common.Resources.VSImageLibrary.ExecutableStarted;
     
    5255    [Storable]
    5356    private ExecutionState executionState;
    54     public ExecutionState ExecutionState {
     57    public ExecutionState ExecutionState
     58    {
    5559      get { return executionState; }
    56       private set {
     60      private set
     61      {
    5762        if (executionState != value) {
    5863          executionState = value;
     
    6570    [Storable]
    6671    private TimeSpan executionTime;
    67     public TimeSpan ExecutionTime {
     72    public TimeSpan ExecutionTime
     73    {
    6874      get { return executionTime; }
    69       protected set {
     75      protected set
     76      {
    7077        executionTime = value;
    7178        OnExecutionTimeChanged();
     
    7380    }
    7481
    75     public virtual Type ProblemType {
     82    public virtual Type ProblemType
     83    {
    7684      get { return typeof(IProblem); }
    7785    }
     
    7987    [Storable]
    8088    private IProblem problem;
    81     public IProblem Problem {
     89    public IProblem Problem
     90    {
    8291      get { return problem; }
    83       set {
     92      set
     93      {
    8494        if (problem != value) {
    8595          if ((value != null) && !ProblemType.IsInstanceOfType(value)) throw new ArgumentException("Invalid problem type.");
     
    97107    [Storable]
    98108    private bool storeAlgorithmInEachRun;
    99     public bool StoreAlgorithmInEachRun {
     109    public bool StoreAlgorithmInEachRun
     110    {
    100111      get { return storeAlgorithmInEachRun; }
    101       set {
     112      set
     113      {
    102114        if (storeAlgorithmInEachRun != value) {
    103115          storeAlgorithmInEachRun = value;
     
    112124    [Storable]
    113125    private RunCollection runs;
    114     public RunCollection Runs {
     126    public RunCollection Runs
     127    {
    115128      get { return runs; }
    116       protected set {
     129      protected set
     130      {
    117131        if (value == null) throw new ArgumentNullException();
    118132        if (runs != value) {
     
    124138    }
    125139
    126     public virtual IEnumerable<IOptimizer> NestedOptimizers {
     140    public virtual IEnumerable<IOptimizer> NestedOptimizers
     141    {
    127142      get { return Enumerable.Empty<IOptimizer>(); }
    128143    }
Note: See TracChangeset for help on using the changeset viewer.