예제 #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);
     }
 }
예제 #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);
 }
예제 #3
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);
 }
예제 #4
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);
     }
 }
예제 #5
0
 /// <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();
 }