Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the MachineStatusCollection class for the specified parent blackboard.
 /// </summary>
 /// <param name="owner">The blackboard that the machineStatus collection is created for</param>
 /// <param name="capacity">The number of elements that the new MachineStatusCollection can initially store</param>
 internal MachineStatusCollection(ModuleBlackboard owner, int capacity)
 {
     if (owner == null)
     {
         throw new ArgumentException("Owner cannot be null");
     }
     this.owner      = owner;
     this.statusList = new List <MachineStatus>(capacity);
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the MachineStatusCollection class for the specified parent blackboard.
 /// </summary>
 /// <param name="owner">The blackboard that the machineStatus collection is created for</param>
 internal MachineStatusCollection(ModuleBlackboard owner) : this(owner, 10)
 {
 }