Changeset 4068 for trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/Core/Interfaces/IActivity.cs
- Timestamp:
- 07/22/10 00:44:01 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.ExtLibs/HeuristicLab.Netron/3.0.2672.12446/Netron.Diagramming.Core-3.0.2672.12446/Core/Interfaces/IActivity.cs
r2768 r4068 1 1 using System; 2 using System.Drawing; 3 using System.Windows.Forms; 4 namespace Netron.Diagramming.Core 5 { 6 // ---------------------------------------------------------------------- 7 /// <summary> 8 /// This defines what an action or activity is on the diagram, which can 9 /// be a data manipulation or layout or an asynchronuous dump of data. 2 namespace Netron.Diagramming.Core { 3 // ---------------------------------------------------------------------- 4 /// <summary> 5 /// This defines what an action or activity is on the diagram, which can 6 /// be a data manipulation or layout or an asynchronuous dump of data. 7 /// </summary> 8 // ---------------------------------------------------------------------- 9 public interface IActivity { 10 // In the final analysis, your understanding of how to do construction 11 // determines how good a programmer you are. 12 13 #region Events 14 /// <summary> 15 /// 10 16 /// </summary> 11 // ---------------------------------------------------------------------- 12 public interface IActivity 13 { 14 // In the final analysis, your understanding of how to do construction 15 // determines how good a programmer you are. 17 event EventHandler OnActivityRun; 16 18 17 #region Events 18 /// <summary> 19 /// 20 /// </summary> 21 event EventHandler OnActivityRun; 19 #endregion 22 20 23 #endregion 21 #region Properties 22 /// <summary> 23 /// Gets or sets a value indicating whether this <see cref="T:IActivity"/> is enabled. 24 /// </summary> 25 /// <value><c>true</c> if enabled; otherwise, <c>false</c>.</value> 26 bool Enabled { get; set; } 27 /// <summary> 28 /// Gets or sets the step time. 29 /// </summary> 30 /// <value>The step time.</value> 31 TimeSpan StepTime { get; set; } 32 /// <summary> 33 /// Gets or sets the start time. 34 /// </summary> 35 /// <value>The start time.</value> 36 DateTime StartTime { get; set; } 37 /// <summary> 38 /// Gets the duration of the activity. 39 /// </summary> 40 /// <value>The duration.</value> 41 TimeSpan Duration { get; } 42 /// <summary> 43 /// Gets the name. 44 /// </summary> 45 /// <value>The name.</value> 46 string Name { get; } 24 47 25 #region Properties 26 /// <summary> 27 /// Gets or sets a value indicating whether this <see cref="T:IActivity"/> is enabled. 28 /// </summary> 29 /// <value><c>true</c> if enabled; otherwise, <c>false</c>.</value> 30 bool Enabled { get; set;} 31 /// <summary> 32 /// Gets or sets the step time. 33 /// </summary> 34 /// <value>The step time.</value> 35 TimeSpan StepTime { get; set;} 36 /// <summary> 37 /// Gets or sets the start time. 38 /// </summary> 39 /// <value>The start time.</value> 40 DateTime StartTime { get; set;} 41 /// <summary> 42 /// Gets the duration of the activity. 43 /// </summary> 44 /// <value>The duration.</value> 45 TimeSpan Duration { get; } 46 /// <summary> 47 /// Gets the name. 48 /// </summary> 49 /// <value>The name.</value> 50 string Name { get;} 48 #endregion 51 49 52 #endregion 50 #region Methods 51 /// <summary> 52 /// Runs the activity 53 /// </summary> 54 void Run(); 53 55 54 #region Methods 55 /// <summary> 56 /// Runs the activity 57 /// </summary>58 void Run();56 /// <summary> 57 /// Runs the specified time. 58 /// </summary> 59 /// <param name="time">The time.</param> 60 void Run(int time); 59 61 60 61 /// Runs the specified time.62 63 /// <param name="time">The time.</param>64 void Run(int time);62 /// <summary> 63 /// Runs the after. 64 /// </summary> 65 /// <param name="firstActivity">The first activity.</param> 66 void RunAfter(IActivity firstActivity); 65 67 66 /// <summary> 67 /// Runs the after. 68 /// </summary> 69 /// <param name="firstActivity">The first activity.</param> 70 void RunAfter(IActivity firstActivity); 68 /// <summary> 69 /// Stops this instance. 70 /// </summary> 71 void Stop(); 71 72 72 /// <summary> 73 /// Stops this instance. 74 /// </summary> 75 void Stop(); 76 77 #endregion 78 } 73 #endregion 74 } 79 75 }
Note: See TracChangeset
for help on using the changeset viewer.