/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="classification">The classification Of Outcome</param> ///<param name="date">Date and time Action has or Will take place</param> /// public Action( Classification classification, DateTime? date ) : base(LearnerDTD.ACTION) { this.SetClassification( classification ); this.Date = date; }
/// <summary> /// Sets the value of the <c><Classification></c> element. /// </summary> /// <param name="val">A Classification object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this element as: "The classification Of Outcome"</para> /// <para>Version: 2.5</para> /// <para>Since: 2.3</para> /// </remarks> public void SetClassification( Classification val ) { SetField( LearnerDTD.ACTION_CLASSIFICATION, val ); }
///<summary>Adds the value of the <c><Action></c> element.</summary> /// <param name="Classification">The classification Of Outcome</param> /// <param name="Date">Date and time Action has or Will take place</param> ///<remarks> /// <para>This form of <c>setAction</c> is provided as a convenience method /// that is functionally equivalent to the method <c>AddAction</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.3</para> /// </remarks> public void AddAction(Classification Classification, DateTime?Date) { AddChild(LearnerDTD.ACTIONS_ACTION, new Action(Classification, Date)); }