예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Shipment" /> class.
 /// </summary>
 /// <param name="Id">Unique identifier of service.</param>
 /// <param name="Name">name of shipment.</param>
 /// <param name="Priority">priority of service, i.e. 1 &#x3D; high, 2 &#x3D; normal, 3 &#x3D; low. default is 2..</param>
 /// <param name="Pickup">Pickup.</param>
 /// <param name="Delivery">Delivery.</param>
 /// <param name="Size">array of capacity dimensions.</param>
 /// <param name="RequiredSkills">array of required skills.</param>
 /// <param name="AllowedVehicles">array of allowed vehicle ids.</param>
 public Shipment(string Id = default(string), string Name = default(string), int?Priority = default(int?), Stop Pickup = default(Stop), Stop Delivery = default(Stop), List <int?> Size = default(List <int?>), List <string> RequiredSkills = default(List <string>), List <string> AllowedVehicles = default(List <string>))
 {
     this.Id              = Id;
     this.Name            = Name;
     this.Priority        = Priority;
     this.Pickup          = Pickup;
     this.Delivery        = Delivery;
     this.Size            = Size;
     this.RequiredSkills  = RequiredSkills;
     this.AllowedVehicles = AllowedVehicles;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Shipment" /> class.
 /// </summary>
 /// <param name="Id">Unique identifier of service.</param>
 /// <param name="Name">name of shipment.</param>
 /// <param name="Priority">priority of service, i.e. 1 &#x3D; high, 2 &#x3D; normal, 3 &#x3D; low. default is 2..</param>
 /// <param name="Pickup">Pickup.</param>
 /// <param name="Delivery">Delivery.</param>
 /// <param name="Size">array of capacity dimensions.</param>
 /// <param name="RequiredSkills">array of required skills.</param>
 /// <param name="AllowedVehicles">array of allowed vehicle ids.</param>
 public Shipment(string Id = null, string Name = null, int?Priority = null, Stop Pickup = null, Stop Delivery = null, List <int?> Size = null, List <string> RequiredSkills = null, List <string> AllowedVehicles = null)
 {
     this.Id              = Id;
     this.Name            = Name;
     this.Priority        = Priority;
     this.Pickup          = Pickup;
     this.Delivery        = Delivery;
     this.Size            = Size;
     this.RequiredSkills  = RequiredSkills;
     this.AllowedVehicles = AllowedVehicles;
 }