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

Legend:

Unmodified
Added
Removed
  • branches/WebJobManager/HeuristicLab.Clients.Hive/3.3/HiveTasks/HiveTask.cs

    r12621 r13656  
    4141    protected ReaderWriterLockSlim itemTaskLock = new ReaderWriterLockSlim(LockRecursionPolicy.SupportsRecursion);
    4242
    43     public static new Image StaticItemImage {
    44       get { return HeuristicLab.Common.Resources.VSImageLibrary.Event; }
    45     }
    46     public override Image ItemImage {
    47       get {
     43
     44    public override Image ItemImage
     45    {
     46      get
     47      {
    4848        if (task.Id == Guid.Empty) { // not yet uploaded
    4949          return HeuristicLab.Common.Resources.VSImageLibrary.Event;
     
    6363    [Storable]
    6464    protected Task task;
    65     public Task Task {
     65    public Task Task
     66    {
    6667      get { return task; }
    67       set {
     68      set
     69      {
    6870        if (task != value) {
    6971          DeregisterTaskEvents();
     
    8082    [Storable]
    8183    protected ItemTask itemTask;
    82     public ItemTask ItemTask {
     84    public ItemTask ItemTask
     85    {
    8386      get { return itemTask; }
    84       set {
     87      set
     88      {
    8589        if (itemTask != null && syncTasksWithOptimizers) {
    8690          childHiveTasksLock.EnterWriteLock();
     
    108112    [Storable]
    109113    private bool isFinishedTaskDownloaded = false;
    110     public bool IsFinishedTaskDownloaded {
     114    public bool IsFinishedTaskDownloaded
     115    {
    111116      get { return isFinishedTaskDownloaded; }
    112       set {
     117      set
     118      {
    113119        if (value != isFinishedTaskDownloaded) {
    114120          this.isFinishedTaskDownloaded = value;
     
    122128    // if true, all control buttons should be enabled. otherwise disabled
    123129    private bool isControllable = true;
    124     public bool IsControllable {
     130    public bool IsControllable
     131    {
    125132      get { return isControllable; }
    126       set {
     133      set
     134      {
    127135        if (value != isControllable) {
    128136          isControllable = value;
     
    143151    [Storable]
    144152    protected ItemList<HiveTask> childHiveTasks;
    145     public virtual ReadOnlyItemList<HiveTask> ChildHiveTasks {
    146       get {
     153    public virtual ReadOnlyItemList<HiveTask> ChildHiveTasks
     154    {
     155      get
     156      {
    147157        childHiveTasksLock.EnterReadLock();
    148158        try {
     
    156166    protected bool syncTasksWithOptimizers = true;
    157167
    158     public StateLogList StateLog {
    159       get {
     168    public StateLogList StateLog
     169    {
     170      get
     171      {
    160172        var list = new StateLogList(this.task.StateLog);
    161173        list.ForEach(s => { s.TaskName = itemTask.Name; });
     
    164176    }
    165177
    166     public StateLogListList ChildStateLogList {
     178    public StateLogListList ChildStateLogList
     179    {
    167180      get { return new StateLogListList(this.childHiveTasks.Select(x => x.StateLog)); }
    168181    }
     
    515528    }
    516529
    517     public ICollection<IItemTreeNodeAction<HiveTask>> Actions {
    518       get {
     530    public ICollection<IItemTreeNodeAction<HiveTask>> Actions
     531    {
     532      get
     533      {
    519534        return new List<IItemTreeNodeAction<HiveTask>>();
    520535      }
     
    544559  public class HiveTask<T> : HiveTask where T : ItemTask {
    545560
    546     public new T ItemTask {
     561    public new T ItemTask
     562    {
    547563      get { return (T)base.ItemTask; }
    548564      set { base.ItemTask = value; }
  • branches/WebJobManager/HeuristicLab.Clients.Hive/3.3/ServiceClients/HiveItem.cs

    r12012 r13656  
    2929namespace HeuristicLab.Clients.Hive {
    3030  public partial class HiveItem : IHiveItem {
    31     public string ItemName {
     31    public string ItemName
     32    {
    3233      get { return ItemAttribute.GetName(this.GetType()); }
    3334    }
    34     public string ItemDescription {
     35    public string ItemDescription
     36    {
    3537      get { return ItemAttribute.GetDescription(this.GetType()); }
    3638    }
    37     public Version ItemVersion {
     39    public Version ItemVersion
     40    {
    3841      get { return ItemAttribute.GetVersion(this.GetType()); }
    3942    }
    40     public static Image StaticItemImage {
    41       get { return HeuristicLab.Common.Resources.VSImageLibrary.Database; }
     43    public static Image StaticItemImage
     44    {
     45      get { return new Bitmap(25, 25); }
    4246    }
    43     public virtual Image ItemImage {
    44       get {
     47    public virtual Image ItemImage
     48    {
     49      get
     50      {
    4551        if (Modified)
    4652          return HeuristicLab.Common.Resources.VSImageLibrary.DatabaseModified;
     
    5157
    5258    private bool modified;
    53     public bool Modified {
     59    public bool Modified
     60    {
    5461      get { return modified; }
    55       internal set {
     62      internal set
     63      {
    5664        if (value != modified) {
    5765          modified = value;
  • branches/WebJobManager/HeuristicLab.Clients.Hive/3.3/Tasks/EngineTask.cs

    r12012 r13656  
    2121
    2222using System;
    23 using System.Drawing;
    2423using HeuristicLab.Common;
    2524using HeuristicLab.Core;
     
    3635    [Storable]
    3736    protected IOperation initialOperation;
    38     public IOperation InitialOperation {
     37    public IOperation InitialOperation
     38    {
    3939      get { return initialOperation; }
    4040      set { initialOperation = value; }
    4141    }
    4242
    43     public new IEngine Item {
     43    public new IEngine Item
     44    {
    4445      get { return (IEngine)base.Item; }
    4546      set { base.Item = value; }
    4647    }
    4748
    48     public override TimeSpan ExecutionTime {
     49    public override TimeSpan ExecutionTime
     50    {
    4951      get { return Item.ExecutionTime; }
    5052    }
    5153
    52     public override ExecutionState ExecutionState {
     54    public override ExecutionState ExecutionState
     55    {
    5356      get { return Item.ExecutionState; }
    5457    }
     
    7376    #endregion
    7477
    75     public override bool IsParallelizable {
     78    public override bool IsParallelizable
     79    {
    7680      get { return false; }
    7781    }
     
    136140    }
    137141
    138     public override bool CanChangeDescription {
     142    public override bool CanChangeDescription
     143    {
    139144      get { return false; }
    140145    }
    141146
    142     public override bool CanChangeName {
     147    public override bool CanChangeName
     148    {
    143149      get { return false; }
    144150    }
    145151
    146     public override string Description {
     152    public override string Description
     153    {
    147154      get { return string.Empty; }
    148155      set { throw new NotSupportedException(); }
    149156    }
    150157
    151     public override string Name {
     158    public override string Name
     159    {
    152160      get { return Item != null ? Item.ToString() : "Engine Task"; }
    153161      set { throw new NotSupportedException(); }
    154162    }
    155163
    156     public static new Image StaticItemImage {
    157       get { return HeuristicLab.Common.Resources.VSImageLibrary.Operator; }
    158     }
    159164
    160     public override string ItemName {
     165
     166    public override string ItemName
     167    {
    161168      get { return "Engine Task"; }
    162169    }
Note: See TracChangeset for help on using the changeset viewer.