org.vrprep.model.instance
Class Instance.Fleet

java.lang.Object
  extended by org.vrprep.model.instance.Instance.Fleet
Enclosing class:
Instance

public static class Instance.Fleet
extends Object

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="vehicle_profile" maxOccurs="unbounded">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <choice>
                     <element name="departure_from_any_node">
                       <complexType>
                         <complexContent>
                           <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                           </restriction>
                         </complexContent>
                       </complexType>
                     </element>
                     <element name="departure_node" type="{http://www.w3.org/2001/XMLSchema}integer" maxOccurs="unbounded"/>
                   </choice>
                   <choice>
                     <element name="arrival_at_any_node">
                       <complexType>
                         <complexContent>
                           <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                           </restriction>
                         </complexContent>
                       </complexType>
                     </element>
                     <element name="arrival_node" type="{http://www.w3.org/2001/XMLSchema}integer" maxOccurs="unbounded"/>
                   </choice>
                   <group ref="{}storage"/>
                   <element name="max_travel_time" type="{}positive_double" minOccurs="0"/>
                   <element name="max_travel_distance" type="{}positive_double" minOccurs="0"/>
                   <element name="speed_factor" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
                   <sequence>
                     <element name="fix_cost" type="{}positive_double" minOccurs="0"/>
                     <element name="cost_x_distance" type="{}positive_double" minOccurs="0"/>
                     <element name="cost_x_time" type="{}positive_double" minOccurs="0"/>
                   </sequence>
                   <element name="resource" maxOccurs="unbounded" minOccurs="0">
                     <complexType>
                       <simpleContent>
                         <extension base="<http://www.w3.org/2001/XMLSchema>double">
                           <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
                         </extension>
                       </simpleContent>
                     </complexType>
                   </element>
                   <element name="trailers" maxOccurs="unbounded" minOccurs="0">
                     <complexType>
                       <simpleContent>
                         <extension base="<http://www.w3.org/2001/XMLSchema>positiveInteger">
                           <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
                         </extension>
                       </simpleContent>
                     </complexType>
                   </element>
                 </sequence>
                 <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
                 <attribute name="number" type="{http://www.w3.org/2001/XMLSchema}int" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="trailer_profile" maxOccurs="unbounded" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <group ref="{}storage"/>
                   <sequence>
                     <element name="fix_cost" type="{}positive_double" minOccurs="0"/>
                     <element name="cost_x_distance" type="{}positive_double" minOccurs="0"/>
                     <element name="cost_x_time" type="{}positive_double" minOccurs="0"/>
                   </sequence>
                 </sequence>
                 <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
                 <attribute name="number" type="{http://www.w3.org/2001/XMLSchema}int" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 


Nested Class Summary
static class Instance.Fleet.TrailerProfile
          Java class for anonymous complex type.
static class Instance.Fleet.VehicleProfile
          Java class for anonymous complex type.
 
Field Summary
protected  List<Instance.Fleet.TrailerProfile> trailerProfile
           
protected  List<Instance.Fleet.VehicleProfile> vehicleProfile
           
 
Constructor Summary
Instance.Fleet()
           
 
Method Summary
 List<Instance.Fleet.TrailerProfile> getTrailerProfile()
          Gets the value of the trailerProfile property.
 List<Instance.Fleet.VehicleProfile> getVehicleProfile()
          Gets the value of the vehicleProfile property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vehicleProfile

protected List<Instance.Fleet.VehicleProfile> vehicleProfile

trailerProfile

protected List<Instance.Fleet.TrailerProfile> trailerProfile
Constructor Detail

Instance.Fleet

public Instance.Fleet()
Method Detail

getVehicleProfile

public List<Instance.Fleet.VehicleProfile> getVehicleProfile()
Gets the value of the vehicleProfile property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the vehicleProfile property.

For example, to add a new item, do as follows:

    getVehicleProfile().add(newItem);
 

Objects of the following type(s) are allowed in the list Instance.Fleet.VehicleProfile


getTrailerProfile

public List<Instance.Fleet.TrailerProfile> getTrailerProfile()
Gets the value of the trailerProfile property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the trailerProfile property.

For example, to add a new item, do as follows:

    getTrailerProfile().add(newItem);
 

Objects of the following type(s) are allowed in the list Instance.Fleet.TrailerProfile



Copyright © 2014 VRP-REP. All rights reserved.