Example #1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="status">Status of the route.</param>
 ///<param name="busRouteInfoRefId">GUID</param>
 ///<param name="value">Gets or sets the content value of the &amp;lt;RouteStatus&amp;gt; element</param>
 ///
 public RouteStatus( RouteStatusStatus status, string busRouteInfoRefId, string value )
     : base(TransDTD.ROUTESTATUS)
 {
     this.SetStatus( status );
     this.BusRouteInfoRefId = busRouteInfoRefId;
     this.Value = value;
 }
Example #2
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="status">Status of the route.</param>
 ///<param name="busRouteInfoRefId">GUID</param>
 ///<param name="value">Gets or sets the content value of the &amp;lt;RouteStatus&amp;gt; element</param>
 ///
 public RouteStatus(RouteStatusStatus status, string busRouteInfoRefId, string value) : base(TransDTD.ROUTESTATUS)
 {
     this.SetStatus(status);
     this.BusRouteInfoRefId = busRouteInfoRefId;
     this.Value             = value;
 }
Example #3
0
 /// <summary>
 /// Sets the value of the <c>Status</c> attribute.
 /// </summary>
 /// <param name="val">A RouteStatusStatus object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "Status of the route."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetStatus(RouteStatusStatus val)
 {
     SetField(TransDTD.ROUTESTATUS_STATUS, val);
 }
 ///<summary>Sets the value of the <c>&lt;RouteStatus&gt;</c> element.</summary>
 /// <param name="Status">Status of the route.</param>
 /// <param name="BusRouteInfoRefId">GUID</param>
 /// <param name="Value">Gets or sets the content value of the &amp;lt;RouteStatus&amp;gt; element</param>
 ///<remarks>
 /// <para>This form of <c>setRouteStatus</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>RouteStatus</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetRouteStatus(RouteStatusStatus Status, string BusRouteInfoRefId, string Value)
 {
     RemoveChild(TransDTD.BUSPOSITIONINFO_ROUTESTATUS);
     AddChild(TransDTD.BUSPOSITIONINFO_ROUTESTATUS, new RouteStatus(Status, BusRouteInfoRefId, Value));
 }
Example #5
0
 /// <summary>
 /// Sets the value of the <c>Status</c> attribute.
 /// </summary>
 /// <param name="val">A RouteStatusStatus object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "Status of the route."</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetStatus( RouteStatusStatus val )
 {
     SetField( TransDTD.ROUTESTATUS_STATUS, val );
 }
 ///<summary>Sets the value of the <c>&lt;RouteStatus&gt;</c> element.</summary>
 /// <param name="Status">Status of the route.</param>
 /// <param name="BusRouteInfoRefId">GUID</param>
 /// <param name="Value">Gets or sets the content value of the &amp;lt;RouteStatus&amp;gt; element</param>
 ///<remarks>
 /// <para>This form of <c>setRouteStatus</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>RouteStatus</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 1.5r1</para>
 /// </remarks>
 public void SetRouteStatus( RouteStatusStatus Status, string BusRouteInfoRefId, string Value )
 {
     RemoveChild( TransDTD.BUSPOSITIONINFO_ROUTESTATUS);
     AddChild( TransDTD.BUSPOSITIONINFO_ROUTESTATUS, new RouteStatus( Status, BusRouteInfoRefId, Value ) );
 }