Example #1
0
        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:
                _identifier = (IfcIdentifier)value.StringVal;
                break;

            case 6:
                _creationDate = (IfcDateTimeSelect)value.EntityVal;
                break;

            case 7:
                _creators.Add((IfcPerson)value.EntityVal);
                break;

            case 8:
                _purpose = value.StringVal;
                break;

            case 9:
                _duration = value.RealVal;
                break;

            case 10:
                _totalFloat = value.RealVal;
                break;

            case 11:
                _startTime = (IfcDateTimeSelect)value.EntityVal;
                break;

            case 12:
                _finishTime = (IfcDateTimeSelect)value.EntityVal;
                break;

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

            case 14:
                _userDefinedControlType = value.StringVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
Example #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:
                _identifier = value.StringVal;
                return;

            case 6:
                _creationDate = (IfcDateTimeSelect)(value.EntityVal);
                return;

            case 7:
                _creators.InternalAdd((IfcPerson)value.EntityVal);
                return;

            case 8:
                _purpose = value.StringVal;
                return;

            case 9:
                _duration = value.RealVal;
                return;

            case 10:
                _totalFloat = value.RealVal;
                return;

            case 11:
                _startTime = (IfcDateTimeSelect)(value.EntityVal);
                return;

            case 12:
                _finishTime = (IfcDateTimeSelect)(value.EntityVal);
                return;

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

            case 14:
                _userDefinedControlType = value.StringVal;
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Example #3
0
 public IfcWorkControl(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcIdentifier __Identifier, IfcDateTimeSelect __CreationDate, IfcPerson[] __Creators, IfcLabel?__Purpose, IfcTimeMeasure?__Duration, IfcTimeMeasure?__TotalFloat, IfcDateTimeSelect __StartTime, IfcDateTimeSelect __FinishTime, IfcWorkControlTypeEnum?__WorkControlType, IfcLabel?__UserDefinedControlType)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType)
 {
     this._Identifier             = __Identifier;
     this._CreationDate           = __CreationDate;
     this._Creators               = new HashSet <IfcPerson>(__Creators);
     this._Purpose                = __Purpose;
     this._Duration               = __Duration;
     this._TotalFloat             = __TotalFloat;
     this._StartTime              = __StartTime;
     this._FinishTime             = __FinishTime;
     this._WorkControlType        = __WorkControlType;
     this._UserDefinedControlType = __UserDefinedControlType;
 }
Example #4
0
 public IfcScheduleTimeControl(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcLabel?__ObjectType, IfcDateTimeSelect __ActualStart, IfcDateTimeSelect __EarlyStart, IfcDateTimeSelect __LateStart, IfcDateTimeSelect __ScheduleStart, IfcDateTimeSelect __ActualFinish, IfcDateTimeSelect __EarlyFinish, IfcDateTimeSelect __LateFinish, IfcDateTimeSelect __ScheduleFinish, IfcTimeMeasure?__ScheduleDuration, IfcTimeMeasure?__ActualDuration, IfcTimeMeasure?__RemainingTime, IfcTimeMeasure?__FreeFloat, IfcTimeMeasure?__TotalFloat, Boolean?__IsCritical, IfcDateTimeSelect __StatusTime, IfcTimeMeasure?__StartFloat, IfcTimeMeasure?__FinishFloat, IfcPositiveRatioMeasure?__Completion)
     : base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType)
 {
     this._ActualStart      = __ActualStart;
     this._EarlyStart       = __EarlyStart;
     this._LateStart        = __LateStart;
     this._ScheduleStart    = __ScheduleStart;
     this._ActualFinish     = __ActualFinish;
     this._EarlyFinish      = __EarlyFinish;
     this._LateFinish       = __LateFinish;
     this._ScheduleFinish   = __ScheduleFinish;
     this._ScheduleDuration = __ScheduleDuration;
     this._ActualDuration   = __ActualDuration;
     this._RemainingTime    = __RemainingTime;
     this._FreeFloat        = __FreeFloat;
     this._TotalFloat       = __TotalFloat;
     this._IsCritical       = __IsCritical;
     this._StatusTime       = __StatusTime;
     this._StartFloat       = __StartFloat;
     this._FinishFloat      = __FinishFloat;
     this._Completion       = __Completion;
 }
 //SUBTYPE OF (	IfcControl);
 //ActualStart	 : 	OPTIONAL IfcDateTimeSelect;
 //EarlyStart	 : 	OPTIONAL IfcDateTimeSelect;
 //LateStart	 : 	OPTIONAL IfcDateTimeSelect;
 //ScheduleStart	 : 	OPTIONAL IfcDateTimeSelect;
 //ActualFinish	 : 	OPTIONAL IfcDateTimeSelect;
 //EarlyFinish	 : 	OPTIONAL IfcDateTimeSelect;
 //LateFinish	 : 	OPTIONAL IfcDateTimeSelect;
 //ScheduleFinish	 : 	OPTIONAL IfcDateTimeSelect;
 //ScheduleDuration	 : 	OPTIONAL IfcTimeMeasure;
 //ActualDuration	 : 	OPTIONAL IfcTimeMeasure;
 //RemainingTime	 : 	OPTIONAL IfcTimeMeasure;
 //FreeFloat	 : 	OPTIONAL IfcTimeMeasure;
 //TotalFloat	 : 	OPTIONAL IfcTimeMeasure;
 //IsCritical	 : 	OPTIONAL BOOLEAN;
 //StatusTime	 : 	OPTIONAL IfcDateTimeSelect;
 //StartFloat	 : 	OPTIONAL IfcTimeMeasure;
 //FinishFloat	 : 	OPTIONAL IfcTimeMeasure;
 //Completion	 : 	OPTIONAL IfcPositiveRatioMeasure;
 //INVERSE
 //ScheduleTimeControlAssigned	 : 	IfcRelAssignsTasks FOR TimeForTask;
 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:
             _actualStart = (IfcDateTimeSelect)value.EntityVal;
             break;
         case 6:
             _earlyStart = (IfcDateTimeSelect)value.EntityVal;
             break;
         case 7:
             _lateStart = (IfcDateTimeSelect)value.EntityVal;
             break;
         case 8:
             _scheduleStart = (IfcDateTimeSelect)value.EntityVal;
             break;
         case 9:
             _actualFinish = (IfcDateTimeSelect)value.EntityVal;
             break;
         case 10:
             _earlyFinish = (IfcDateTimeSelect)value.EntityVal;
             break;
         case 11:
             _lateFinish = (IfcDateTimeSelect)value.EntityVal;
             break;
         case 12:
             _scheduleFinish = (IfcDateTimeSelect)value.EntityVal;
             break;
         case 13:
             _scheduleDuration = (IfcTimeMeasure)value.RealVal;
             break;
         case 14:
             _actualDuration = (IfcTimeMeasure)value.RealVal;
             break;
         case 15:
             _remainingTime = (IfcTimeMeasure)value.RealVal;
             break;
         case 16:
             _freeFloat = (IfcTimeMeasure)value.RealVal;
             break;
         case 17:
             _totalFloat = (IfcTimeMeasure)value.RealVal;
             break;
         case 18:
             _isCritical = (IfcBoolean)value.BooleanVal;
             break;
         case 19:
             _statusTime = (IfcDateTimeSelect)value.EntityVal;
             break;
         case 20:
             _startFloat = (IfcTimeMeasure)value.RealVal;
             break;
         case 21:
             _finishFloat = (IfcTimeMeasure)value.RealVal;
             break;
         case 22:
             _completion = (IfcPositiveRatioMeasure)value.RealVal;
             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:
            case 4:
                base.Parse(propIndex, value, nestedIndex);
                return;

            case 5:
                _actualStart = (IfcDateTimeSelect)(value.EntityVal);
                return;

            case 6:
                _earlyStart = (IfcDateTimeSelect)(value.EntityVal);
                return;

            case 7:
                _lateStart = (IfcDateTimeSelect)(value.EntityVal);
                return;

            case 8:
                _scheduleStart = (IfcDateTimeSelect)(value.EntityVal);
                return;

            case 9:
                _actualFinish = (IfcDateTimeSelect)(value.EntityVal);
                return;

            case 10:
                _earlyFinish = (IfcDateTimeSelect)(value.EntityVal);
                return;

            case 11:
                _lateFinish = (IfcDateTimeSelect)(value.EntityVal);
                return;

            case 12:
                _scheduleFinish = (IfcDateTimeSelect)(value.EntityVal);
                return;

            case 13:
                _scheduleDuration = value.RealVal;
                return;

            case 14:
                _actualDuration = value.RealVal;
                return;

            case 15:
                _remainingTime = value.RealVal;
                return;

            case 16:
                _freeFloat = value.RealVal;
                return;

            case 17:
                _totalFloat = value.RealVal;
                return;

            case 18:
                _isCritical = value.BooleanVal;
                return;

            case 19:
                _statusTime = (IfcDateTimeSelect)(value.EntityVal);
                return;

            case 20:
                _startFloat = value.RealVal;
                return;

            case 21:
                _finishFloat = value.RealVal;
                return;

            case 22:
                _completion = value.RealVal;
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Example #7
0
		public IfcWorkPlan(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel? __Name, IfcText? __Description, IfcLabel? __ObjectType, IfcIdentifier __Identifier, IfcDateTimeSelect __CreationDate, IfcPerson[] __Creators, IfcLabel? __Purpose, IfcTimeMeasure? __Duration, IfcTimeMeasure? __TotalFloat, IfcDateTimeSelect __StartTime, IfcDateTimeSelect __FinishTime, IfcWorkControlTypeEnum? __WorkControlType, IfcLabel? __UserDefinedControlType)
			: base(__GlobalId, __OwnerHistory, __Name, __Description, __ObjectType, __Identifier, __CreationDate, __Creators, __Purpose, __Duration, __TotalFloat, __StartTime, __FinishTime, __WorkControlType, __UserDefinedControlType)
		{
		}
Example #8
0
//SUBTYPE OF (	IfcControl);
//ActualStart	 :  OPTIONAL IfcDateTimeSelect;
//EarlyStart	 :  OPTIONAL IfcDateTimeSelect;
//LateStart	 :  OPTIONAL IfcDateTimeSelect;
//ScheduleStart	 :  OPTIONAL IfcDateTimeSelect;
//ActualFinish	 :  OPTIONAL IfcDateTimeSelect;
//EarlyFinish	 :  OPTIONAL IfcDateTimeSelect;
//LateFinish	 :  OPTIONAL IfcDateTimeSelect;

//ScheduleFinish	 :  OPTIONAL IfcDateTimeSelect;
//ScheduleDuration	 :  OPTIONAL IfcTimeMeasure;
//ActualDuration	 :  OPTIONAL IfcTimeMeasure;
//RemainingTime	 :  OPTIONAL IfcTimeMeasure;
//FreeFloat	 :  OPTIONAL IfcTimeMeasure;
//TotalFloat	 :  OPTIONAL IfcTimeMeasure;
//IsCritical	 :  OPTIONAL BOOLEAN;
//StatusTime	 :  OPTIONAL IfcDateTimeSelect;
//StartFloat	 :  OPTIONAL IfcTimeMeasure;
//FinishFloat	 :  OPTIONAL IfcTimeMeasure;
//Completion	 :  OPTIONAL IfcPositiveRatioMeasure;
//INVERSE
//ScheduleTimeControlAssigned	 :  IfcRelAssignsTasks FOR TimeForTask;
        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:
                _actualStart = (IfcDateTimeSelect)value.EntityVal;
                break;

            case 6:
                _earlyStart = (IfcDateTimeSelect)value.EntityVal;
                break;

            case 7:
                _lateStart = (IfcDateTimeSelect)value.EntityVal;
                break;

            case 8:
                _scheduleStart = (IfcDateTimeSelect)value.EntityVal;
                break;

            case 9:
                _actualFinish = (IfcDateTimeSelect)value.EntityVal;
                break;

            case 10:
                _earlyFinish = (IfcDateTimeSelect)value.EntityVal;
                break;

            case 11:
                _lateFinish = (IfcDateTimeSelect)value.EntityVal;
                break;

            case 12:
                _scheduleFinish = (IfcDateTimeSelect)value.EntityVal;
                break;

            case 13:
                _scheduleDuration = (IfcTimeMeasure)value.RealVal;
                break;

            case 14:
                _actualDuration = (IfcTimeMeasure)value.RealVal;
                break;

            case 15:
                _remainingTime = (IfcTimeMeasure)value.RealVal;
                break;

            case 16:
                _freeFloat = (IfcTimeMeasure)value.RealVal;
                break;

            case 17:
                _totalFloat = (IfcTimeMeasure)value.RealVal;
                break;

            case 18:
                _isCritical = (IfcBoolean)value.BooleanVal;
                break;

            case 19:
                _statusTime = (IfcDateTimeSelect)value.EntityVal;
                break;

            case 20:
                _startFloat = (IfcTimeMeasure)value.RealVal;
                break;

            case 21:
                _finishFloat = (IfcTimeMeasure)value.RealVal;
                break;

            case 22:
                _completion = (IfcPositiveRatioMeasure)value.RealVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
 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:
             _identifier = (IfcIdentifier)value.StringVal;
             break;
         case 6:
             _creationDate = (IfcDateTimeSelect)value.EntityVal;
             break;
         case 7:
             _creators.Add((IfcPerson)value.EntityVal);
             break;
         case 8:
             _purpose = value.StringVal;
             break;
         case 9:
             _duration = value.RealVal;
             break;
         case 10:
             _totalFloat = value.RealVal;
             break;
         case 11:
             _startTime = (IfcDateTimeSelect)value.EntityVal;
             break;
         case 12:
             _finishTime = (IfcDateTimeSelect)value.EntityVal;
             break;
         case 13:
             _workControlType = (IfcWorkControlTypeEnum)Enum.Parse(typeof(IfcWorkControlTypeEnum), value.EnumVal, true);
             break;
         case 14:
             _userDefinedControlType = value.StringVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }