public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
                base.IfcParse(propIndex, value);
                break;

            case 5:
                _ApplicableDates.Add((IfcDateTimeSelect)value.EntityVal);
                break;

            case 6:
                _TimeSeriesScheduleType = (IfcTimeSeriesScheduleTypeEnum)Enum.Parse(typeof(IfcTimeSeriesScheduleTypeEnum), value.EnumVal);
                break;

            case 7:
                _TimeSeries = (IfcTimeSeries)value.EntityVal;
                break;

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

            case 5:
                _applicableDates.InternalAdd((IfcDateTimeSelect)value.EntityVal);
                return;

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

            case 7:
                _timeSeries = (IfcTimeSeries)(value.EntityVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Beispiel #3
0
        public static string GetAsString(this IfcTimeSeries ifcTimeSeries)
        {
            StringBuilder timeSeries = new StringBuilder();
            string        start      = ifcTimeSeries.StartTime.GetAsString();

            if (!string.IsNullOrEmpty(start))
            {
                timeSeries.Append("Start:");
                timeSeries.Append(start);
                timeSeries.Append(", ");
            }
            string end = ifcTimeSeries.EndTime.GetAsString();

            if (!string.IsNullOrEmpty(end))
            {
                timeSeries.Append("End:");
                timeSeries.Append(end);
                timeSeries.Append(", ");
            }

            if (ifcTimeSeries is IfcRegularTimeSeries)
            {
                IfcRegularTimeSeries ifcRegularTimeSeries = (ifcTimeSeries as IfcRegularTimeSeries);
                timeSeries.Append("TimeStep:");
                timeSeries.Append(string.Format("{0,0:N2}", ifcRegularTimeSeries.TimeStep.Value));

                //Values field is private?
            }
            if (ifcTimeSeries is IfcIrregularTimeSeries)
            {
                //Values field is private?
            }

            return(timeSeries.ToString());
        }
 public IfcTimeSeriesSchedule(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcDateTimeSelect[] __ApplicableDates, IfcTimeSeriesScheduleTypeEnum __TimeSeriesScheduleType, IfcTimeSeries __TimeSeries)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType)
 {
     this._ApplicableDates        = new List <IfcDateTimeSelect>(__ApplicableDates);
     this._TimeSeriesScheduleType = __TimeSeriesScheduleType;
     this._TimeSeries             = __TimeSeries;
 }
Beispiel #5
0
 public IfcSoundValue(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcTimeSeries __SoundLevelTimeSeries, IfcFrequencyMeasure __Frequency, IfcDerivedMeasureValue __SoundLevelSingleValue)
     : base(__GlobalId, __OwnerHistory, __Name, __Description)
 {
     this._SoundLevelTimeSeries  = __SoundLevelTimeSeries;
     this._Frequency             = __Frequency;
     this._SoundLevelSingleValue = __SoundLevelSingleValue;
 }
Beispiel #6
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:
                _soundLevelTimeSeries = (IfcTimeSeries)(value.EntityVal);
                return;

            case 5:
                _frequency = value.RealVal;
                return;

            case 6:
                _soundLevelSingleValue = (IfcDerivedMeasureValue)(value.EntityVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
        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;
            }
        }
        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()));
            }
        }
Beispiel #9
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;
 }
Beispiel #10
0
 public IfcFluidFlowProperties(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcPropertySourceEnum __PropertySource, IfcTimeSeries __FlowConditionTimeSeries, IfcTimeSeries __VelocityTimeSeries, IfcTimeSeries __FlowrateTimeSeries, IfcMaterial __Fluid, IfcTimeSeries __PressureTimeSeries, IfcLabel?__UserDefinedPropertySource, IfcThermodynamicTemperatureMeasure?__TemperatureSingleValue, IfcThermodynamicTemperatureMeasure?__WetBulbTemperatureSingleValue, IfcTimeSeries __WetBulbTemperatureTimeSeries, IfcTimeSeries __TemperatureTimeSeries, IfcDerivedMeasureValue __FlowrateSingleValue, IfcPositiveRatioMeasure?__FlowConditionSingleValue, IfcLinearVelocityMeasure?__VelocitySingleValue, IfcPressureMeasure?__PressureSingleValue)
     : base(__GlobalId, __OwnerHistory, __Name, __Description)
 {
     this._PropertySource          = __PropertySource;
     this._FlowConditionTimeSeries = __FlowConditionTimeSeries;
     this._VelocityTimeSeries      = __VelocityTimeSeries;
     this._FlowrateTimeSeries      = __FlowrateTimeSeries;
     this._Fluid = __Fluid;
     this._PressureTimeSeries            = __PressureTimeSeries;
     this._UserDefinedPropertySource     = __UserDefinedPropertySource;
     this._TemperatureSingleValue        = __TemperatureSingleValue;
     this._WetBulbTemperatureSingleValue = __WetBulbTemperatureSingleValue;
     this._WetBulbTemperatureTimeSeries  = __WetBulbTemperatureTimeSeries;
     this._TemperatureTimeSeries         = __TemperatureTimeSeries;
     this._FlowrateSingleValue           = __FlowrateSingleValue;
     this._FlowConditionSingleValue      = __FlowConditionSingleValue;
     this._VelocitySingleValue           = __VelocitySingleValue;
     this._PressureSingleValue           = __PressureSingleValue;
 }
Beispiel #11
0
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                _soundLevelTimeSeries = (IfcTimeSeries)value.EntityVal;
                break;

            case 1:
                _frequency = value.RealVal;
                break;

            case 2:
                _soundLevelSingleValue = (IfcDerivedMeasureValue)value.EntityVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
Beispiel #12
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:
                _propertySource = (IfcPropertySourceEnum)System.Enum.Parse(typeof(IfcPropertySourceEnum), value.EnumVal, true);
                return;

            case 5:
                _flowConditionTimeSeries = (IfcTimeSeries)(value.EntityVal);
                return;

            case 6:
                _velocityTimeSeries = (IfcTimeSeries)(value.EntityVal);
                return;

            case 7:
                _flowrateTimeSeries = (IfcTimeSeries)(value.EntityVal);
                return;

            case 8:
                _fluid = (IfcMaterial)(value.EntityVal);
                return;

            case 9:
                _pressureTimeSeries = (IfcTimeSeries)(value.EntityVal);
                return;

            case 10:
                _userDefinedPropertySource = value.StringVal;
                return;

            case 11:
                _temperatureSingleValue = value.RealVal;
                return;

            case 12:
                _wetBulbTemperatureSingleValue = value.RealVal;
                return;

            case 13:
                _wetBulbTemperatureTimeSeries = (IfcTimeSeries)(value.EntityVal);
                return;

            case 14:
                _temperatureTimeSeries = (IfcTimeSeries)(value.EntityVal);
                return;

            case 15:
                _flowrateSingleValue = (IfcDerivedMeasureValue)(value.EntityVal);
                return;

            case 16:
                _flowConditionSingleValue = value.RealVal;
                return;

            case 17:
                _velocitySingleValue = value.RealVal;
                return;

            case 18:
                _pressureSingleValue = value.RealVal;
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Beispiel #13
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:
                _propertySource =
                    (IfcPropertySourceEnum)Enum.Parse(typeof(IfcPropertySourceEnum), value.EnumVal, true);
                break;

            case 5:
                _flowConditionTimeSeries = (IfcTimeSeries)value.EntityVal;
                break;

            case 6:
                _velocityTimeSeries = (IfcTimeSeries)value.EntityVal;
                break;

            case 7:
                _flowrateTimeSeries = (IfcTimeSeries)value.EntityVal;
                break;

            case 8:
                _fluid = (IfcMaterial)value.EntityVal;
                break;

            case 9:
                _pressureTimeSeries = (IfcTimeSeries)value.EntityVal;
                break;

            case 10:
                _userDefinedPropertySource = value.StringVal;
                break;

            case 11:
                _temperatureSingleValue = value.RealVal;
                break;

            case 12:
                _wetBulbTemperatureSingleValue = value.RealVal;
                break;

            case 13:
                _wetBulbTemperatureTimeSeries = (IfcTimeSeries)value.EntityVal;
                break;

            case 14:
                _temperatureTimeSeries = (IfcTimeSeries)value.EntityVal;
                break;

            case 15:
                _flowrateSingleValue = value.EntityVal;
                break;

            case 16:
                _flowConditionSingleValue = value.RealVal;
                break;

            case 17:
                _velocitySingleValue = value.RealVal;
                break;

            case 18:
                _pressureSingleValue = value.RealVal;
                break;

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