Changeset 6717 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.3/Enums
- Timestamp:
- 09/08/11 10:38:36 (13 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.3/Enums
- Files:
-
- 1 added
- 5 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.3/Enums/Command.cs
r6703 r6717 22 22 using System; 23 23 24 namespace HeuristicLab.Services.Hive.Common.DataTransfer { 24 namespace HeuristicLab.Services.Hive.DataAccess { 25 25 26 [Serializable] 26 27 public enum Command { -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.3/Enums/CpuArchitecture.cs
r6703 r6717 20 20 #endregion 21 21 22 using System; 22 23 23 namespace HeuristicLab.Services.Hive. Common.DataTransfer{24 public enum SlaveState { 25 Idle,26 Calculating,27 Offline24 namespace HeuristicLab.Services.Hive.DataAccess { 25 26 [Serializable] 27 public enum CpuArchitecture { 28 x86, x64 28 29 }; 29 30 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.3/Enums/JobState.cs
r6703 r6717 22 22 using System; 23 23 24 namespace HeuristicLab.Services.Hive. Common.DataTransfer{24 namespace HeuristicLab.Services.Hive.DataAccess { 25 25 [Serializable] 26 26 public enum JobState { … … 65 65 Failed 66 66 }; 67 68 public static class JobStateExtensions {69 /// <summary>70 /// This job is not yet done71 /// </summary>72 public static bool IsActive(this JobState jobState) {73 return !jobState.IsDone();74 }75 76 /// <summary>77 /// This job is Waiting78 /// </summary>79 public static bool IsWaiting(this JobState jobState) {80 return jobState == JobState.Waiting;81 }82 83 /// <summary>84 /// This job is Finished || Failed || Aborted85 /// </summary>86 public static bool IsDone(this JobState jobState) {87 return jobState == JobState.Finished ||88 jobState == JobState.Aborted ||89 jobState == JobState.Failed;90 }91 }92 67 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.3/Enums/Permission.cs
r6703 r6717 20 20 #endregion 21 21 22 namespace HeuristicLab.Services.Hive.Common.DataTransfer { 22 using System; 23 namespace HeuristicLab.Services.Hive.DataAccess { 24 25 [Serializable] 23 26 public enum Permission { 24 27 /// <summary> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.3/Enums/SlaveState.cs
r6703 r6717 20 20 #endregion 21 21 22 using System; 22 23 23 namespace HeuristicLab.Services.Hive.Common.DataTransfer { 24 namespace HeuristicLab.Services.Hive.DataAccess { 25 26 [Serializable] 24 27 public enum SlaveState { 25 28 Idle,
Note: See TracChangeset
for help on using the changeset viewer.