/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="refId">Unique GUID for this cycle</param> ///<param name="cycleDays">Number of days in cycle</param> ///<param name="periodsPerDay">(Max) Number of periods per day (see Rectangular Grid Representation above)</param> ///<param name="standardPeriodList">A StandardPeriodList</param> ///<param name="ttDayList">A TTDayList</param> /// public Cycle( string refId, int? cycleDays, int? periodsPerDay, Period standardPeriodList, TTDay ttDayList ) : base(Adk.SifVersion, LearningDTD.CYCLE) { this.RefId = refId; this.CycleDays = cycleDays; this.PeriodsPerDay = periodsPerDay; this.StandardPeriodList = new StandardPeriodList( standardPeriodList ); this.TTDayList = new TTDayList( ttDayList ); }
///<summary>Sets the value of the <c><PeriodList></c> element.</summary> /// <param name="Period">A Period</param> ///<remarks> /// <para>This form of <c>setPeriodList</c> is provided as a convenience method /// that is functionally equivalent to the <c>PeriodList</c></para> /// <para>Version: 2.5</para> /// <para>Since: 2.3</para> /// </remarks> public void SetPeriodList( Period Period ) { RemoveChild( LearningDTD.TTDAY_PERIODLIST); AddChild( LearningDTD.TTDAY_PERIODLIST, new PeriodList( Period ) ); }
///<summary>Sets the value of the <c><StandardPeriodList></c> element.</summary> /// <param name="Period">A Period</param> ///<remarks> /// <para>This form of <c>setStandardPeriodList</c> is provided as a convenience method /// that is functionally equivalent to the <c>StandardPeriodList</c></para> /// <para>Version: 2.5</para> /// <para>Since: 2.3</para> /// </remarks> public void SetStandardPeriodList( Period Period ) { RemoveChild( LearningDTD.CYCLE_STANDARDPERIODLIST); AddChild( LearningDTD.CYCLE_STANDARDPERIODLIST, new StandardPeriodList( Period ) ); }