示例#1
0
 public override void InitFrom(Capsule <TContent, TPort> cap)
 {
     base.InitFrom(cap);
     SubCapsRing           = cap.SubCapsRing;
     SubCapsRing.Container = this;
     InPorts            = cap.InPorts;
     InPorts.Container  = this;
     OutPorts           = cap.OutPorts;
     OutPorts.Container = this;
 }
示例#2
0
 /// <summary>
 /// Add an empty subcapsule at the final position in the ring of subcapsules.
 /// </summary>
 public void AddLastSubcapsule()
 {
     if (SubCapsRing == null)
     {
         SubCapsRing = new ExtendedDataRing <Capsule <TContent, TPort>, HeadCapsule <TContent, TPort>, TContent, Capsule <TContent, TPort> >(this);
     }
     else
     {
         SubCapsRing.AddDataToEnd(null);
     }
 }