Esempio n. 1
0
 /// <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 );
 }
Esempio n. 2
0
 /// <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);
 }
Esempio n. 3
0
 ///<summary>Sets the value of the <c>&lt;TTDayList&gt;</c> element.</summary>
 /// <param name="TtDay">A TTDay</param>
 ///<remarks>
 /// <para>This form of <c>setTTDayList</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>TTDayList</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetTTDayList( TTDay TtDay )
 {
     RemoveChild( LearningDTD.CYCLE_TTDAYLIST);
     AddChild( LearningDTD.CYCLE_TTDAYLIST, new TTDayList( TtDay ) );
 }
Esempio n. 4
0
 ///<summary>Sets the value of the <c>&lt;TTDayList&gt;</c> element.</summary>
 /// <param name="TtDay">A TTDay</param>
 ///<remarks>
 /// <para>This form of <c>setTTDayList</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>TTDayList</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetTTDayList(TTDay TtDay)
 {
     RemoveChild(LearningDTD.CYCLE_TTDAYLIST);
     AddChild(LearningDTD.CYCLE_TTDAYLIST, new TTDayList(TtDay));
 }