///<summary>Sets the value of the <c><StopToSchoolDistance></c> element.</summary> /// <param name="Unit">Units used in the odometer reading.</param> /// <param name="Value">Gets or sets the content value of the &lt;Distance&gt; element</param> ///<remarks> /// <para>This form of <c>setStopToSchoolDistance</c> is provided as a convenience method /// that is functionally equivalent to the <c>StopToSchoolDistance</c></para> /// <para>Version: 2.5</para> /// <para>Since: 2.2</para> /// </remarks> public void SetStopToSchoolDistance( DistanceUnit Unit, decimal? Value ) { RemoveChild( TransDTD.STUDENTTRANSPORTINFO_STOPTOSCHOOLDISTANCE); AddChild( TransDTD.STUDENTTRANSPORTINFO_STOPTOSCHOOLDISTANCE, new Distance( Unit, Value ) ); }
///<summary>Sets the value of the <c><WalkToStopDistance></c> element.</summary> /// <param name="Unit">Units used in the odometer reading.</param> /// <param name="Value">Gets or sets the content value of the &lt;Distance&gt; element</param> ///<remarks> /// <para>This form of <c>setWalkToStopDistance</c> is provided as a convenience method /// that is functionally equivalent to the <c>WalkToStopDistance</c></para> /// <para>Version: 2.5</para> /// <para>Since: 2.2</para> /// </remarks> public void SetWalkToStopDistance( DistanceUnit Unit, decimal? Value ) { RemoveChild( TransDTD.STUDENTTRANSPORTINFO_WALKTOSTOPDISTANCE); AddChild( TransDTD.STUDENTTRANSPORTINFO_WALKTOSTOPDISTANCE, new Distance( Unit, Value ) ); }
/// <summary> /// Sets the value of the <c>Unit</c> attribute. /// </summary> /// <param name="val">A DistanceUnit object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "Units used in the speedometer reading. "</para> /// <para>Version: 2.6</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetUnit( DistanceUnit val ) { SetField( TransDTD.SPEEDOMETER_UNIT, val ); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="unit">Units used in the speedometer reading. </param> ///<param name="value">Gets or sets the content value of the &lt;Speedometer&gt; element</param> /// public Speedometer( DistanceUnit unit, decimal? value ) : base(TransDTD.SPEEDOMETER) { this.SetUnit( unit ); this.Value = value; }
///<summary>Sets the value of the <c><RouteDistanceLoaded></c> element.</summary> /// <param name="Unit">Units used in the odometer reading.</param> /// <param name="Value">Gets or sets the content value of the &lt;Distance&gt; element</param> ///<remarks> /// <para>This form of <c>setRouteDistanceLoaded</c> is provided as a convenience method /// that is functionally equivalent to the <c>RouteDistanceLoaded</c></para> /// <para>Version: 2.6</para> /// <para>Since: 1.1</para> /// </remarks> public void SetRouteDistanceLoaded( DistanceUnit Unit, decimal? Value ) { RemoveChild( TransDTD.BUSROUTEINFO_ROUTEDISTANCELOADED); AddChild( TransDTD.BUSROUTEINFO_ROUTEDISTANCELOADED, new Distance( Unit, Value ) ); }
///<summary>Sets the value of the <c><RouteDistanceTotal></c> element.</summary> /// <param name="Unit">Units used in the odometer reading.</param> /// <param name="Value">Gets or sets the content value of the &lt;Distance&gt; element</param> ///<remarks> /// <para>This form of <c>setRouteDistanceTotal</c> is provided as a convenience method /// that is functionally equivalent to the <c>RouteDistanceTotal</c></para> /// <para>Version: 2.6</para> /// <para>Since: 1.1</para> /// </remarks> public void SetRouteDistanceTotal( DistanceUnit Unit, decimal? Value ) { RemoveChild( TransDTD.BUSROUTEINFO_ROUTEDISTANCETOTAL); AddChild( TransDTD.BUSROUTEINFO_ROUTEDISTANCETOTAL, new Distance( Unit, Value ) ); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="unit">Units used in the odometer reading.</param> ///<param name="value">Gets or sets the content value of the &lt;Distance&gt; element</param> /// public Distance( DistanceUnit unit, decimal? value ) : base(TransDTD.DISTANCE) { this.SetUnit( unit ); this.Value = value; }
/// <summary> /// Sets the value of the <c>Unit</c> attribute. /// </summary> /// <param name="val">A DistanceUnit object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "Units used in the odometer reading."</para> /// <para>Version: 2.5</para> /// <para>Since: 1.1</para> /// </remarks> public void SetUnit( DistanceUnit val ) { SetField( TransDTD.DISTANCE_UNIT, val ); }
///<summary>Sets the value of the <c><Speedometer></c> element.</summary> /// <param name="Unit">Units used in the speedometer reading. </param> /// <param name="Value">Gets or sets the content value of the &lt;Speedometer&gt; element</param> ///<remarks> /// <para>This form of <c>setSpeedometer</c> is provided as a convenience method /// that is functionally equivalent to the <c>Speedometer</c></para> /// <para>Version: 2.5</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetSpeedometer( DistanceUnit Unit, decimal? Value ) { RemoveChild( TransDTD.BUSPOSITIONINFO_SPEEDOMETER); AddChild( TransDTD.BUSPOSITIONINFO_SPEEDOMETER, new Speedometer( Unit, Value ) ); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="unit">Units used in the odometer reading.</param> ///<param name="value">Gets or sets the content value of the &lt;Odometer&gt; element</param> /// public Odometer(DistanceUnit unit, decimal?value) : base(TransDTD.ODOMETER) { this.SetUnit(unit); this.Value = value; }
/// <summary> /// Sets the value of the <c>Unit</c> attribute. /// </summary> /// <param name="val">A DistanceUnit object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "Units used in the odometer reading."</para> /// <para>Version: 2.6</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetUnit(DistanceUnit val) { SetField(TransDTD.ODOMETER_UNIT, val); }