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.Clients.OKB/3.3/RunCreation/OKBAlgorithm.cs

    r12504 r13656  
    4141
    4242    private long algorithmId;
    43     public long AlgorithmId {
     43    public long AlgorithmId
     44    {
    4445      get { return algorithmId; }
    4546    }
    4647    private IAlgorithm algorithm;
    47     private IAlgorithm Algorithm {
     48    private IAlgorithm Algorithm
     49    {
    4850      get { return algorithm; }
    49       set {
     51      set
     52      {
    5053        if (value == null) throw new ArgumentNullException("Algorithm", "Algorithm cannot be null.");
    5154        if (value != algorithm) {
     
    7780    }
    7881
    79     public IEnumerable<IOptimizer> NestedOptimizers {
    80       get {
     82    public IEnumerable<IOptimizer> NestedOptimizers
     83    {
     84      get
     85      {
    8186        // inner algorithm cannot be accessed directly
    8287        return Enumerable.Empty<IOptimizer>();
     
    8489    }
    8590
    86     public override Image ItemImage {
     91    public override Image ItemImage
     92    {
    8793      get { return Algorithm.ItemImage; }
    8894    }
    8995
    90     public static new Image StaticItemImage {
    91       get { return HeuristicLab.Common.Resources.VSImageLibrary.Event; }
    92     }
    93 
    94     public string Name {
     96
     97
     98    public string Name
     99    {
    95100      get { return Algorithm.Name; }
    96101      set { throw new NotSupportedException("Name cannot be changed."); }
    97102    }
    98     public string Description {
     103    public string Description
     104    {
    99105      get { return Algorithm.Description; }
    100106      set { throw new NotSupportedException("Description cannot be changed."); }
    101107    }
    102     public bool CanChangeName {
     108    public bool CanChangeName
     109    {
    103110      get { return false; }
    104111    }
    105     public bool CanChangeDescription {
     112    public bool CanChangeDescription
     113    {
    106114      get { return false; }
    107115    }
    108116
    109     public IKeyedItemCollection<string, IParameter> Parameters {
     117    public IKeyedItemCollection<string, IParameter> Parameters
     118    {
    110119      get { return Algorithm.Parameters; }
    111120    }
    112121
    113     public ExecutionState ExecutionState {
     122    public ExecutionState ExecutionState
     123    {
    114124      get { return Algorithm.ExecutionState; }
    115125    }
    116     public TimeSpan ExecutionTime {
     126    public TimeSpan ExecutionTime
     127    {
    117128      get { return Algorithm.ExecutionTime; }
    118129    }
    119130
    120     public Type ProblemType {
     131    public Type ProblemType
     132    {
    121133      get { return Algorithm.ProblemType; }
    122134    }
    123     public IProblem Problem {
     135    public IProblem Problem
     136    {
    124137      get { return Algorithm.Problem; }
    125138      set { Algorithm.Problem = value; }
    126139    }
    127140
    128     public ResultCollection Results {
     141    public ResultCollection Results
     142    {
    129143      get { return Algorithm.Results; }
    130144    }
    131145
    132146    private RunCollection runs;
    133     public RunCollection Runs {
     147    public RunCollection Runs
     148    {
    134149      get { return runs; }
    135150    }
    136151    private bool storeRunsAutomatically;
    137     public bool StoreRunsAutomatically {
     152    public bool StoreRunsAutomatically
     153    {
    138154      get { return storeRunsAutomatically; }
    139       set {
     155      set
     156      {
    140157        if (value != storeRunsAutomatically) {
    141158          storeRunsAutomatically = value;
     
    144161      }
    145162    }
    146     public bool StoreAlgorithmInEachRun {
     163    public bool StoreAlgorithmInEachRun
     164    {
    147165      get { return Algorithm.StoreAlgorithmInEachRun; }
    148166      set { Algorithm.StoreAlgorithmInEachRun = value; }
     
    154172
    155173    [Storable(Name = "AlgorithmId")]
    156     private long StorableAlgorithmId {
     174    private long StorableAlgorithmId
     175    {
    157176      get { return algorithmId; }
    158177      set { algorithmId = value; }
    159178    }
    160179    [Storable(Name = "Algorithm")]
    161     private IAlgorithm StorableAlgorithm {
     180    private IAlgorithm StorableAlgorithm
     181    {
    162182      get { return algorithm; }
    163       set {
     183      set
     184      {
    164185        algorithm = value;
    165186        RegisterAlgorithmEvents();
     
    167188    }
    168189    [Storable(Name = "Runs")]
    169     private RunCollection StorableRuns {
     190    private RunCollection StorableRuns
     191    {
    170192      get { return runs; }
    171       set {
     193      set
     194      {
    172195        runs = value;
    173196        RegisterRunsEvents();
     
    175198    }
    176199    [Storable(Name = "StoreRunsAutomatically")]
    177     private bool StorableStoreRunsAutomatically {
     200    private bool StorableStoreRunsAutomatically
     201    {
    178202      get { return storeRunsAutomatically; }
    179203      set { storeRunsAutomatically = value; }
Note: See TracChangeset for help on using the changeset viewer.