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; }
/// <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); } }