Esempio n. 1
0
 /// <summary>
 /// Adds the given element to the collection
 /// </summary>
 /// <param name="item">The item to add</param>
 public override void Add(IModelElement item)
 {
     if ((this._parent.WireType == null))
     {
         IWireType wireTypeCasted = item.As <IWireType>();
         if ((wireTypeCasted != null))
         {
             this._parent.WireType = wireTypeCasted;
             return;
         }
     }
     if ((this._parent.ConductorInfo == null))
     {
         IConductorInfo conductorInfoCasted = item.As <IConductorInfo>();
         if ((conductorInfoCasted != null))
         {
             this._parent.ConductorInfo = conductorInfoCasted;
             return;
         }
     }
 }
Esempio n. 2
0
            /// <summary>
            /// Adds the given element to the collection
            /// </summary>
            /// <param name="item">The item to add</param>
            public override void Add(IModelElement item)
            {
                if ((this._parent.PhaseImpedance == null))
                {
                    IPerLengthPhaseImpedance phaseImpedanceCasted = item.As <IPerLengthPhaseImpedance>();
                    if ((phaseImpedanceCasted != null))
                    {
                        this._parent.PhaseImpedance = phaseImpedanceCasted;
                        return;
                    }
                }
                IConductorAsset conductorAssetsCasted = item.As <IConductorAsset>();

                if ((conductorAssetsCasted != null))
                {
                    this._parent.ConductorAssets.Add(conductorAssetsCasted);
                }
                if ((this._parent.SequenceImpedance == null))
                {
                    IPerLengthSequenceImpedance sequenceImpedanceCasted = item.As <IPerLengthSequenceImpedance>();
                    if ((sequenceImpedanceCasted != null))
                    {
                        this._parent.SequenceImpedance = sequenceImpedanceCasted;
                        return;
                    }
                }
                if ((this._parent.ConductorInfo == null))
                {
                    IConductorInfo conductorInfoCasted = item.As <IConductorInfo>();
                    if ((conductorInfoCasted != null))
                    {
                        this._parent.ConductorInfo = conductorInfoCasted;
                        return;
                    }
                }
            }
Esempio n. 3
0
 /// <summary>
 /// Creates a new observable property access proxy
 /// </summary>
 /// <param name="modelElement">The model instance element for which to create the property access proxy</param>
 public InsulationMaterialProxy(IConductorInfo modelElement) :
     base(modelElement, "insulationMaterial")
 {
 }
Esempio n. 4
0
 /// <summary>
 /// Creates a new observable property access proxy
 /// </summary>
 /// <param name="modelElement">The model instance element for which to create the property access proxy</param>
 public UsageProxy(IConductorInfo modelElement) :
     base(modelElement, "usage")
 {
 }