Ejemplo n.º 1
0
 ///<summary>Sets the value of the <c>&lt;StopToSchoolDistance&gt;</c> element.</summary>
 /// <param name="Unit">Units used in the odometer reading.</param>
 /// <param name="Value">Gets or sets the content value of the &amp;lt;Distance&amp;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 ) );
 }
Ejemplo n.º 2
0
 ///<summary>Sets the value of the <c>&lt;WalkToStopDistance&gt;</c> element.</summary>
 /// <param name="Unit">Units used in the odometer reading.</param>
 /// <param name="Value">Gets or sets the content value of the &amp;lt;Distance&amp;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 ) );
 }
Ejemplo n.º 3
0
 /// <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 );
 }
Ejemplo n.º 4
0
 /// <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 &amp;lt;Speedometer&amp;gt; element</param>
 ///
 public Speedometer( DistanceUnit unit, decimal? value )
     : base(TransDTD.SPEEDOMETER)
 {
     this.SetUnit( unit );
     this.Value = value;
 }
Ejemplo n.º 5
0
 ///<summary>Sets the value of the <c>&lt;RouteDistanceLoaded&gt;</c> element.</summary>
 /// <param name="Unit">Units used in the odometer reading.</param>
 /// <param name="Value">Gets or sets the content value of the &amp;lt;Distance&amp;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 ) );
 }
Ejemplo n.º 6
0
 ///<summary>Sets the value of the <c>&lt;RouteDistanceTotal&gt;</c> element.</summary>
 /// <param name="Unit">Units used in the odometer reading.</param>
 /// <param name="Value">Gets or sets the content value of the &amp;lt;Distance&amp;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 ) );
 }
Ejemplo n.º 7
0
 /// <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 &amp;lt;Distance&amp;gt; element</param>
 ///
 public Distance( DistanceUnit unit, decimal? value )
     : base(TransDTD.DISTANCE)
 {
     this.SetUnit( unit );
     this.Value = value;
 }
Ejemplo n.º 8
0
 /// <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 );
 }
Ejemplo n.º 9
0
 ///<summary>Sets the value of the <c>&lt;Speedometer&gt;</c> element.</summary>
 /// <param name="Unit">Units used in the speedometer reading. </param>
 /// <param name="Value">Gets or sets the content value of the &amp;lt;Speedometer&amp;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 ) );
 }
Ejemplo n.º 10
0
 /// <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 &amp;lt;Odometer&amp;gt; element</param>
 ///
 public Odometer(DistanceUnit unit, decimal?value) : base(TransDTD.ODOMETER)
 {
     this.SetUnit(unit);
     this.Value = value;
 }
Ejemplo n.º 11
0
 /// <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);
 }