Exemple #1
0
 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;
 }
Exemple #2
0
 public IfcMetric(IfcLabel name, IfcText description, IfcConstraintEnum constraintGrade, IfcLabel constraintSource, IfcActorSelect creatingActor, IfcDateTime creationTime, IfcLabel userDefinedGrade, IfcBenchmarkEnum benchmark, IfcLabel valueSource, IfcMetricValueSelect dataValue, IfcReference referencePath) : base(name, description, constraintGrade, constraintSource, creatingActor, creationTime, userDefinedGrade)
 {
     Benchmark     = benchmark;
     ValueSource   = valueSource;
     DataValue     = dataValue;
     ReferencePath = referencePath;
 }
Exemple #3
0
 public IfcMetric(IfcLabel __Name, IfcText?__Description, IfcConstraintEnum __ConstraintGrade, IfcLabel?__ConstraintSource, IfcActorSelect __CreatingActor, IfcDateTimeSelect __CreationTime, IfcLabel?__UserDefinedGrade, IfcBenchmarkEnum __Benchmark, IfcLabel?__ValueSource, IfcMetricValueSelect __DataValue)
     : base(__Name, __Description, __ConstraintGrade, __ConstraintSource, __CreatingActor, __CreationTime, __UserDefinedGrade)
 {
     this._Benchmark   = __Benchmark;
     this._ValueSource = __ValueSource;
     this._DataValue   = __DataValue;
 }
Exemple #4
0
        }                                                                                        // inverse


        /// <summary>
        /// Construct a IfcConstraint with all required attributes.
        /// </summary>
        public IfcConstraint(IfcLabel name, IfcConstraintEnum constraintGrade) : base()
        {
            HasExternalReferences   = new List <IfcExternalReferenceRelationship>();
            PropertiesForConstraint = new List <IfcResourceConstraintRelationship>();

            Name            = name;
            ConstraintGrade = constraintGrade;
        }
Exemple #5
0
 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;
 }
Exemple #6
0
 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;
 }
Exemple #7
0
 public IfcConstraint(IfcLabel __Name, IfcText?__Description, IfcConstraintEnum __ConstraintGrade, IfcLabel?__ConstraintSource, IfcActorSelect __CreatingActor, IfcDateTime?__CreationTime, IfcLabel?__UserDefinedGrade)
 {
     this._Name             = __Name;
     this._Description      = __Description;
     this._ConstraintGrade  = __ConstraintGrade;
     this._ConstraintSource = __ConstraintSource;
     this._CreatingActor    = __CreatingActor;
     this._CreationTime     = __CreationTime;
     this._UserDefinedGrade = __UserDefinedGrade;
 }
Exemple #8
0
 protected IfcConstraint(IfcLabel __Name, IfcText?__Description, IfcConstraintEnum __ConstraintGrade, IfcLabel?__ConstraintSource, IfcActorSelect __CreatingActor, IfcDateTime?__CreationTime, IfcLabel?__UserDefinedGrade)
 {
     this.Name                    = __Name;
     this.Description             = __Description;
     this.ConstraintGrade         = __ConstraintGrade;
     this.ConstraintSource        = __ConstraintSource;
     this.CreatingActor           = __CreatingActor;
     this.CreationTime            = __CreationTime;
     this.UserDefinedGrade        = __UserDefinedGrade;
     this.HasExternalReferences   = new HashSet <IfcExternalReferenceRelationship>();
     this.PropertiesForConstraint = new HashSet <IfcResourceConstraintRelationship>();
 }
Exemple #9
0
        public IfcConstraint(IfcLabel name, IfcText description, IfcConstraintEnum constraintGrade, IfcLabel constraintSource, IfcActorSelect creatingActor, IfcDateTime creationTime, IfcLabel userDefinedGrade) : base()
        {
            HasExternalReferences   = new List <IfcExternalReferenceRelationship>();
            PropertiesForConstraint = new List <IfcResourceConstraintRelationship>();

            Name             = name;
            Description      = description;
            ConstraintGrade  = constraintGrade;
            ConstraintSource = constraintSource;
            CreatingActor    = creatingActor;
            CreationTime     = creationTime;
            UserDefinedGrade = userDefinedGrade;
        }
Exemple #10
0
 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 Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _name = value.StringVal;
                return;

            case 1:
                _description = value.StringVal;
                return;

            case 2:
                _constraintGrade = (IfcConstraintEnum)System.Enum.Parse(typeof(IfcConstraintEnum), value.EnumVal, true);
                return;

            case 3:
                _constraintSource = value.StringVal;
                return;

            case 4:
                _creatingActor = (IfcActorSelect)(value.EntityVal);
                return;

            case 5:
                _creationTime = value.StringVal;
                return;

            case 6:
                _userDefinedGrade = value.StringVal;
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
        public virtual void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                _name = value.StringVal;
                break;

            case 1:
                _description = value.StringVal;
                break;

            case 2:
                _constraintGrade = (IfcConstraintEnum)Enum.Parse(typeof(IfcConstraintEnum), value.EnumVal);
                break;

            case 3:
                _constraintSource = value.StringVal;
                break;

            case 4:
                _creatingActor = (IfcActorSelect)value.EntityVal;
                break;

            case 5:
                _creationTime = (IfcDateTimeSelect)value.EntityVal;
                break;

            case 6:
                _userDefinedGrade = value.StringVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
Exemple #13
0
 public virtual void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
             _name = value.StringVal;
             break;
         case 1:
             _description = value.StringVal;
             break;
         case 2:
             _constraintGrade = (IfcConstraintEnum) Enum.Parse(typeof (IfcConstraintEnum), value.EnumVal);
             break;
         case 3:
             _constraintSource = value.StringVal;
             break;
         case 4:
             _creatingActor = (IfcActorSelect) value.EntityVal;
             break;
         case 5:
             _creationTime = (IfcDateTimeSelect) value.EntityVal;
             break;
         case 6:
             _userDefinedGrade = value.StringVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
Exemple #14
0
 public IfcObjective(DatabaseIfc db, string name, IfcConstraintEnum constraint, IfcObjectiveEnum qualifier)
     : base(db, name, constraint)
 {
     mObjectiveQualifier = qualifier;
 }
Exemple #15
0
 public IfcObjective(IfcConstraint benchmark, string name, IfcConstraintEnum constraint, IfcObjectiveEnum qualifier)
     : base(benchmark.mDatabase, name, constraint)
 {
     AddBenchmark(benchmark); mObjectiveQualifier = qualifier;
 }
Exemple #16
0
        }                                                      // 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;
        }
Exemple #17
0
		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("'", "");
		}
Exemple #18
0
        }                                                   // optional


        /// <summary>
        /// Construct a IfcMetric with all required attributes.
        /// </summary>
        public IfcMetric(IfcLabel name, IfcConstraintEnum constraintGrade, IfcBenchmarkEnum benchmark) : base(name, constraintGrade)
        {
            Benchmark = benchmark;
        }
Exemple #19
0
		public IfcMetric(DatabaseIfc db, string name, IfcConstraintEnum constraint, IfcValue dataValue) : base(db, name, constraint) { mDataValueValue = dataValue; }
Exemple #20
0
		protected IfcConstraint(DatabaseIfc db, string name, IfcConstraintEnum constraint) : base(db) { Name = name; mConstraintGrade = constraint; }
Exemple #21
0
		protected IfcConstraint(IfcConstraint c) : base()
		{
			mName = c.mName;
			mDescription = c.mDescription;
			mConstraintGrade = c.mConstraintGrade;
			mConstraintSource = c.mConstraintSource;
			mCreatingActor = c.mCreatingActor;
			mCreationTime = c.mCreationTime;
			mSSCreationTime = c.mSSCreationTime;
			mUserDefinedGrade = c.mUserDefinedGrade;
		}