public override void IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: case 1: case 2: case 3: case 4: case 5: case 6: base.IfcParse(propIndex, value); break; case 7: _benchmarkValues = (IfcMetric)value.EntityVal; break; case 8: _resultValues = (IfcMetric)value.EntityVal; break; case 9: _objectiveQualifier = (IfcObjectiveEnum)Enum.Parse(typeof(IfcObjectiveEnum), value.EnumVal); break; case 10: _userDefinedQualifier = value.StringVal; break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
public IfcObjective(IfcLabel name, IfcText description, IfcConstraintEnum constraintGrade, IfcLabel constraintSource, IfcActorSelect creatingActor, IfcDateTime creationTime, IfcLabel userDefinedGrade, List <IfcConstraint> benchmarkValues, IfcLogicalOperatorEnum logicalAggregator, IfcObjectiveEnum objectiveQualifier, IfcLabel userDefinedQualifier) : base(name, description, constraintGrade, constraintSource, creatingActor, creationTime, userDefinedGrade) { BenchmarkValues = benchmarkValues; LogicalAggregator = logicalAggregator; ObjectiveQualifier = objectiveQualifier; UserDefinedQualifier = userDefinedQualifier; }
public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex) { switch (propIndex) { case 0: case 1: case 2: case 3: case 4: case 5: case 6: base.Parse(propIndex, value, nestedIndex); return; case 7: _benchmarkValues = (IfcMetric)(value.EntityVal); return; case 8: _resultValues = (IfcMetric)(value.EntityVal); return; case 9: _objectiveQualifier = (IfcObjectiveEnum)System.Enum.Parse(typeof(IfcObjectiveEnum), value.EnumVal, true); return; case 10: _userDefinedQualifier = value.StringVal; return; default: throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper())); } }
public IfcObjective(IfcLabel __Name, IfcText?__Description, IfcConstraintEnum __ConstraintGrade, IfcLabel?__ConstraintSource, IfcActorSelect __CreatingActor, IfcDateTime?__CreationTime, IfcLabel?__UserDefinedGrade, IfcConstraint[] __BenchmarkValues, IfcLogicalOperatorEnum?__LogicalAggregator, IfcObjectiveEnum __ObjectiveQualifier, IfcLabel?__UserDefinedQualifier) : base(__Name, __Description, __ConstraintGrade, __ConstraintSource, __CreatingActor, __CreationTime, __UserDefinedGrade) { this._BenchmarkValues = new List <IfcConstraint>(__BenchmarkValues); this._LogicalAggregator = __LogicalAggregator; this._ObjectiveQualifier = __ObjectiveQualifier; this._UserDefinedQualifier = __UserDefinedQualifier; }
public IfcObjective(IfcLabel __Name, IfcText?__Description, IfcConstraintEnum __ConstraintGrade, IfcLabel?__ConstraintSource, IfcActorSelect __CreatingActor, IfcDateTimeSelect __CreationTime, IfcLabel?__UserDefinedGrade, IfcMetric __BenchmarkValues, IfcMetric __ResultValues, IfcObjectiveEnum __ObjectiveQualifier, IfcLabel?__UserDefinedQualifier) : base(__Name, __Description, __ConstraintGrade, __ConstraintSource, __CreatingActor, __CreationTime, __UserDefinedGrade) { this._BenchmarkValues = __BenchmarkValues; this._ResultValues = __ResultValues; this._ObjectiveQualifier = __ObjectiveQualifier; this._UserDefinedQualifier = __UserDefinedQualifier; }
public IfcObjective(DatabaseIfc db, string name, IfcConstraintEnum constraint, List <IfcConstraint> benchmarks, IfcObjectiveEnum qualifier, string userQualifier) : base(db, name, constraint) { if (benchmarks != null && benchmarks.Count > 0) { mBenchmarkValues = benchmarks.ConvertAll(x => x.mIndex); } mObjectiveQualifier = qualifier; if (!string.IsNullOrEmpty(userQualifier)) { mUserDefinedQualifier = userQualifier.Replace("'", ""); } }
public override void IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: case 1: case 2: case 3: case 4: case 5: case 6: base.IfcParse(propIndex, value); break; case 7: _benchmarkValues = (IfcMetric) value.EntityVal; break; case 8: _resultValues = (IfcMetric) value.EntityVal; break; case 9: _objectiveQualifier = (IfcObjectiveEnum) Enum.Parse(typeof (IfcObjectiveEnum), value.EnumVal); break; case 10: _userDefinedQualifier = value.StringVal; break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
public IfcObjective(DatabaseIfc db, string name, IfcConstraintEnum constraint, IfcObjectiveEnum qualifier) : base(db, name, constraint) { mObjectiveQualifier = qualifier; }
public IfcObjective(IfcConstraint benchmark, string name, IfcConstraintEnum constraint, IfcObjectiveEnum qualifier) : base(benchmark.mDatabase, name, constraint) { AddBenchmark(benchmark); mObjectiveQualifier = qualifier; }
internal IfcObjective(DatabaseIfc db, IfcObjective o) : base(db, o) { o.BenchmarkValues.ToList().ForEach(x => AddBenchmark(db.Factory.Duplicate(x) as IfcConstraint)); mLogicalAggregator = o.mLogicalAggregator; mObjectiveQualifier = o.mObjectiveQualifier; mUserDefinedQualifier = o.mUserDefinedQualifier; }
internal IfcObjective(DatabaseIfc db, IfcObjective o) : base(db,o) { BenchmarkValues = o.BenchmarkValues.ConvertAll(x=>db.Factory.Duplicate(x) as IfcConstraint); mLogicalAggregator = o.mLogicalAggregator; mObjectiveQualifier = o.mObjectiveQualifier; mUserDefinedQualifier = o.mUserDefinedQualifier; }
internal IfcObjective(IfcObjective m) : base(m) { mBenchmarkValues = new List <int>(m.mBenchmarkValues.ToArray()); mLogicalAggregator = m.mLogicalAggregator; mObjectiveQualifier = m.mObjectiveQualifier; mUserDefinedQualifier = m.mUserDefinedQualifier; }
public IfcObjective(DatabaseIfc db, string name, IfcConstraintEnum constraint, List<IfcConstraint> benchmarks, IfcObjectiveEnum qualifier, string userQualifier) : base(db, name, constraint) { if (benchmarks != null && benchmarks.Count > 0) mBenchmarkValues = benchmarks.ConvertAll(x => x.mIndex); mObjectiveQualifier = qualifier; if (!string.IsNullOrEmpty(userQualifier)) mUserDefinedQualifier = userQualifier.Replace("'", ""); }
internal IfcObjective(IfcObjective m) : base(m) { mBenchmarkValues = new List<int>(m.mBenchmarkValues.ToArray()); mLogicalAggregator = m.mLogicalAggregator; mObjectiveQualifier = m.mObjectiveQualifier; mUserDefinedQualifier = m.mUserDefinedQualifier; }
} // optional /// <summary> /// Construct a IfcObjective with all required attributes. /// </summary> public IfcObjective(IfcLabel name, IfcConstraintEnum constraintGrade, IfcObjectiveEnum objectiveQualifier) : base(name, constraintGrade) { BenchmarkValues = new List <IfcConstraint>(); ObjectiveQualifier = objectiveQualifier; }