Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the PActivityList class that contains activities copied
 /// from the specified list and that has the same initial capacity as the number
 /// of activities copied.
 /// </summary>
 /// <param name="list">The list whose activities are copied to the new list.</param>
 public PActivityList(PActivityList list)
 {
     foreach (PActivity activity in list)
     {
         List.Add(activity);
     }
 }
Exemple #2
0
 /// <summary>
 /// Adds the activities of the given list to the end of this list.
 /// </summary>
 /// <param name="list">
 /// The list whose activities should be added to the end of this list.
 /// </param>
 public void AddRange(PActivityList list)
 {
     InnerList.AddRange(list);
 }
		/// <summary>
		/// Adds the activities of the given list to the end of this list.
		/// </summary>
		/// <param name="list">
		/// The list whose activities should be added to the end of this list.
		/// </param>
		public void AddRange(PActivityList list) {
			InnerList.AddRange(list);
		}
		/// <summary>
		/// Initializes a new instance of the PActivityList class that contains activities copied
		/// from the specified list and that has the same initial capacity as the number
		/// of activities copied.
		/// </summary>
		/// <param name="list">The list whose activities are copied to the new list.</param>
		public PActivityList(PActivityList list) {
			foreach(PActivity activity in list) {
				List.Add(activity);
			}
		}
		/// <summary>
		/// Constructs a new PActivityScheduler.
		/// </summary>
		/// <param name="rootNode">The root node to associate with this activity scheduler.</param>
		public PActivityScheduler(PRoot rootNode) {
			root = rootNode;
			activities = new PActivityList();
			processingActivities = new PActivityList();
		}