コード例 #1
0
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
                base.IfcParse(propIndex, value);
                break;

            case 4:
                _applicableValueRatio = value.RealVal;
                break;

            case 5:
                _thermalLoadSource =
                    (IfcThermalLoadSourceEnum)Enum.Parse(typeof(IfcThermalLoadSourceEnum), value.EnumVal, true);
                break;

            case 6:
                _propertySource =
                    (IfcPropertySourceEnum)Enum.Parse(typeof(IfcPropertySourceEnum), value.EnumVal, true);
                break;

            case 7:
                _sourceDescription = value.StringVal;
                break;

            case 8:
                _maximumValue = value.RealVal;
                break;

            case 9:
                _minimumValue = value.RealVal;
                break;

            case 10:
                _thermalLoadTimeSeriesValues = (IfcTimeSeries)value.EntityVal;
                break;

            case 11:
                _userDefinedThermalLoadSource = value.StringVal;
                break;

            case 12:
                _userDefinedPropertySource = value.StringVal;
                break;

            case 13:
                _thermalLoadType =
                    (IfcThermalLoadTypeEnum)Enum.Parse(typeof(IfcThermalLoadTypeEnum), value.EnumVal, true);
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
コード例 #2
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
                base.Parse(propIndex, value, nestedIndex);
                return;

            case 4:
                _applicableValueRatio = value.RealVal;
                return;

            case 5:
                _thermalLoadSource = (IfcThermalLoadSourceEnum)System.Enum.Parse(typeof(IfcThermalLoadSourceEnum), value.EnumVal, true);
                return;

            case 6:
                _propertySource = (IfcPropertySourceEnum)System.Enum.Parse(typeof(IfcPropertySourceEnum), value.EnumVal, true);
                return;

            case 7:
                _sourceDescription = value.StringVal;
                return;

            case 8:
                _maximumValue = value.RealVal;
                return;

            case 9:
                _minimumValue = value.RealVal;
                return;

            case 10:
                _thermalLoadTimeSeriesValues = (IfcTimeSeries)(value.EntityVal);
                return;

            case 11:
                _userDefinedThermalLoadSource = value.StringVal;
                return;

            case 12:
                _userDefinedPropertySource = value.StringVal;
                return;

            case 13:
                _thermalLoadType = (IfcThermalLoadTypeEnum)System.Enum.Parse(typeof(IfcThermalLoadTypeEnum), value.EnumVal, true);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
コード例 #3
0
 public IfcSpaceThermalLoadProperties(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcPositiveRatioMeasure?__ApplicableValueRatio, IfcThermalLoadSourceEnum __ThermalLoadSource, IfcPropertySourceEnum __PropertySource, IfcText?__SourceDescription, IfcPowerMeasure __MaximumValue, IfcPowerMeasure?__MinimumValue, IfcTimeSeries __ThermalLoadTimeSeriesValues, IfcLabel?__UserDefinedThermalLoadSource, IfcLabel?__UserDefinedPropertySource, IfcThermalLoadTypeEnum __ThermalLoadType)
     : base(__GlobalId, __OwnerHistory, __Name, __Description)
 {
     this._ApplicableValueRatio         = __ApplicableValueRatio;
     this._ThermalLoadSource            = __ThermalLoadSource;
     this._PropertySource               = __PropertySource;
     this._SourceDescription            = __SourceDescription;
     this._MaximumValue                 = __MaximumValue;
     this._MinimumValue                 = __MinimumValue;
     this._ThermalLoadTimeSeriesValues  = __ThermalLoadTimeSeriesValues;
     this._UserDefinedThermalLoadSource = __UserDefinedThermalLoadSource;
     this._UserDefinedPropertySource    = __UserDefinedPropertySource;
     this._ThermalLoadType              = __ThermalLoadType;
 }
コード例 #4
0
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
                base.IfcParse(propIndex, value);
                break;

            case 6:
                _electricCurrentType =
                    (IfcElectricCurrentEnum)Enum.Parse(typeof(IfcElectricCurrentEnum), value.EnumVal, true);
                break;

            case 7:
                _inputVoltage = value.RealVal;
                break;

            case 8:
                _inputFrequency = value.RealVal;
                break;

            case 9:
                _fullLoadCurrent = value.RealVal;
                break;

            case 10:
                _minimumCircuitCurrent = value.RealVal;
                break;

            case 11:
                _maximumPowerInput = value.RealVal;
                break;

            case 12:
                _ratedPowerInput = value.RealVal;
                break;

            case 13:
                _inputPhase = value.IntegerVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }