Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/07/16 10:18:05 (8 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/MetaOptimizers/BatchRun.cs

    r12504 r13656  
    4141    public string Filename { get; set; }
    4242
    43     public static new Image StaticItemImage {
    44       get { return HeuristicLab.Common.Resources.VSImageLibrary.Event; }
    45     }
    46     public override Image ItemImage {
    47       get {
     43    public static new Image StaticItemImage
     44    {
     45      get { return new Bitmap(25, 25); }
     46    }
     47    public override Image ItemImage
     48    {
     49      get
     50      {
    4851        if (ExecutionState == ExecutionState.Prepared) return HeuristicLab.Common.Resources.VSImageLibrary.BatchRunPrepared;
    4952        else if (ExecutionState == ExecutionState.Started) return HeuristicLab.Common.Resources.VSImageLibrary.BatchRunStarted;
     
    5659    [Storable]
    5760    private ExecutionState executionState;
    58     public ExecutionState ExecutionState {
     61    public ExecutionState ExecutionState
     62    {
    5963      get { return executionState; }
    60       private set {
     64      private set
     65      {
    6166        if (executionState != value) {
    6267          executionState = value;
     
    6974    [Storable]
    7075    private TimeSpan executionTime;
    71     public TimeSpan ExecutionTime {
    72       get {
     76    public TimeSpan ExecutionTime
     77    {
     78      get
     79      {
    7380        if ((Optimizer != null) && (Optimizer.ExecutionState != ExecutionState.Stopped))
    7481          return executionTime + Optimizer.ExecutionTime;
     
    7683          return executionTime;
    7784      }
    78       private set {
     85      private set
     86      {
    7987        executionTime = value;
    8088        OnExecutionTimeChanged();
     
    8795    [Storable]
    8896    private IOptimizer optimizer;
    89     public IOptimizer Optimizer {
     97    public IOptimizer Optimizer
     98    {
    9099      get { return optimizer; }
    91       set {
     100      set
     101      {
    92102        if (optimizer != value) {
    93103          if (optimizer != null) {
     
    110120    #region Backwards compatible code (remove with 3.4)
    111121    [Storable(AllowOneWay = true)]
    112     private IAlgorithm algorithm {
     122    private IAlgorithm algorithm
     123    {
    113124      set { optimizer = value; }
    114125    }
     
    117128    [Storable]
    118129    private int repetitions;
    119     public int Repetitions {
     130    public int Repetitions
     131    {
    120132      get { return repetitions; }
    121       set {
     133      set
     134      {
    122135        if (repetitions != value) {
    123136          repetitions = value;
     
    130143    [Storable]
    131144    private int repetitionsCounter;
    132     public int RepetitionsCounter {
     145    public int RepetitionsCounter
     146    {
    133147      get { return repetitionsCounter; }
    134       private set {
     148      private set
     149      {
    135150        if (value != repetitionsCounter) {
    136151          repetitionsCounter = value;
     
    142157    [Storable]
    143158    private RunCollection runs;
    144     public RunCollection Runs {
     159    public RunCollection Runs
     160    {
    145161      get { return runs; }
    146       private set {
     162      private set
     163      {
    147164        if (value == null) throw new ArgumentNullException();
    148165        if (runs != value) {
     
    154171    }
    155172
    156     public IEnumerable<IOptimizer> NestedOptimizers {
    157       get {
     173    public IEnumerable<IOptimizer> NestedOptimizers
     174    {
     175      get
     176      {
    158177        if (Optimizer == null) yield break;
    159178
Note: See TracChangeset for help on using the changeset viewer.