Exemplo n.º 1
0
        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:
                _relatingConstraint = (IfcConstraint)(value.EntityVal);
                return;

            case 3:
                _relatedConstraints.InternalAdd((IfcConstraint)value.EntityVal);
                return;

            case 4:
                _logicalAggregator = (IfcLogicalOperatorEnum)System.Enum.Parse(typeof(IfcLogicalOperatorEnum), value.EnumVal, true);
                return;

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

            case 1:
                _description = value.StringVal;
                break;

            case 2:
                _relatingConstraint = (IfcConstraint)value.EntityVal;
                break;

            case 3:
                ((IXbimNoNotifyCollection)_relatedConstraints).Add((IfcConstraint)value.EntityVal);
                break;

            case 4:
                _logicalAggregator =
                    (IfcLogicalOperatorEnum)Enum.Parse(typeof(IfcLogicalOperatorEnum), value.EnumVal);
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
Exemplo n.º 3
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;
 }
 public IfcConstraintAggregationRelationship(IfcLabel?__Name, IfcText?__Description, IfcConstraint __RelatingConstraint, IfcConstraint[] __RelatedConstraints, IfcLogicalOperatorEnum __LogicalAggregator)
 {
     this._Name               = __Name;
     this._Description        = __Description;
     this._RelatingConstraint = __RelatingConstraint;
     this._RelatedConstraints = new List <IfcConstraint>(__RelatedConstraints);
     this._LogicalAggregator  = __LogicalAggregator;
 }
Exemplo n.º 5
0
 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;
 }
Exemplo n.º 6
0
		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; }
 public void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
             _name = value.StringVal;
             break;
         case 1:
             _description = value.StringVal;
             break;
         case 2:
             _relatingConstraint = (IfcConstraint) value.EntityVal;
             break;
         case 3:
             _relatedConstraints.Add_Reversible((IfcConstraint) value.EntityVal);
             break;
         case 4:
             _logicalAggregator =
                 (IfcLogicalOperatorEnum) Enum.Parse(typeof (IfcLogicalOperatorEnum), value.EnumVal);
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
Exemplo n.º 8
0
 internal IfcObjective(IfcObjective m) : base(m)
 {
     mBenchmarkValues = new List <int>(m.mBenchmarkValues.ToArray()); mLogicalAggregator = m.mLogicalAggregator;  mObjectiveQualifier = m.mObjectiveQualifier; mUserDefinedQualifier = m.mUserDefinedQualifier;
 }
Exemplo n.º 9
0
		internal IfcObjective(IfcObjective m) : base(m) { mBenchmarkValues = new List<int>(m.mBenchmarkValues.ToArray()); mLogicalAggregator = m.mLogicalAggregator;  mObjectiveQualifier = m.mObjectiveQualifier; mUserDefinedQualifier = m.mUserDefinedQualifier; }