RouteMix.java

  1. //
  2. // This file was generated by the Eclipse Implementation of JAXB, v2.3.7
  3. // See https://eclipse-ee4j.github.io/jaxb-ri
  4. // Any modifications to this file will be lost upon recompilation of the source schema.
  5. // Generated on: 2024.08.29 at 06:50:16 PM CEST
  6. //


  7. package org.opentrafficsim.xml.generated;

  8. import java.io.Serializable;
  9. import java.util.ArrayList;
  10. import java.util.List;
  11. import javax.annotation.Generated;
  12. import javax.xml.bind.annotation.XmlAccessType;
  13. import javax.xml.bind.annotation.XmlAccessorType;
  14. import javax.xml.bind.annotation.XmlAttribute;
  15. import javax.xml.bind.annotation.XmlElement;
  16. import javax.xml.bind.annotation.XmlRootElement;
  17. import javax.xml.bind.annotation.XmlType;
  18. import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
  19. import org.opentrafficsim.xml.bindings.DoubleAdapter;
  20. import org.opentrafficsim.xml.bindings.StringAdapter;
  21. import org.opentrafficsim.xml.bindings.types.DoubleType;
  22. import org.opentrafficsim.xml.bindings.types.StringType;


  23. /**
  24.  * <p>Java class for anonymous complex type.
  25.  *
  26.  * <p>The following schema fragment specifies the expected content contained within this class.
  27.  *
  28.  * <pre>
  29.  * &lt;complexType&gt;
  30.  *   &lt;complexContent&gt;
  31.  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
  32.  *       &lt;sequence&gt;
  33.  *         &lt;element name="Route" maxOccurs="unbounded"&gt;
  34.  *           &lt;complexType&gt;
  35.  *             &lt;complexContent&gt;
  36.  *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
  37.  *                 &lt;attribute name="Id" use="required" type="{http://www.opentrafficsim.org/ots}string" /&gt;
  38.  *                 &lt;attribute name="Weight" use="required" type="{http://www.opentrafficsim.org/ots}double" /&gt;
  39.  *               &lt;/restriction&gt;
  40.  *             &lt;/complexContent&gt;
  41.  *           &lt;/complexType&gt;
  42.  *         &lt;/element&gt;
  43.  *         &lt;element name="RandomStream" type="{http://www.opentrafficsim.org/ots}RandomStreamSource" minOccurs="0"/&gt;
  44.  *       &lt;/sequence&gt;
  45.  *       &lt;attribute name="Id" use="required" type="{http://www.opentrafficsim.org/ots}IdType" /&gt;
  46.  *       &lt;attribute name="GtuType" use="required" type="{http://www.opentrafficsim.org/ots}string" /&gt;
  47.  *     &lt;/restriction&gt;
  48.  *   &lt;/complexContent&gt;
  49.  * &lt;/complexType&gt;
  50.  * </pre>
  51.  *
  52.  *
  53.  */
  54. @XmlAccessorType(XmlAccessType.FIELD)
  55. @XmlType(name = "", propOrder = {
  56.     "route",
  57.     "randomStream"
  58. })
  59. @XmlRootElement(name = "RouteMix")
  60. @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  61. public class RouteMix
  62.     implements Serializable
  63. {

  64.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  65.     private final static long serialVersionUID = 10102L;
  66.     @XmlElement(name = "Route", required = true)
  67.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  68.     protected List<RouteMix.Route> route;
  69.     @XmlElement(name = "RandomStream")
  70.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  71.     protected RandomStreamSource randomStream;
  72.     @XmlAttribute(name = "Id", required = true)
  73.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  74.     protected String id;
  75.     @XmlAttribute(name = "GtuType", required = true)
  76.     @XmlJavaTypeAdapter(StringAdapter.class)
  77.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  78.     protected StringType gtuType;

  79.     /**
  80.      * Gets the value of the route property.
  81.      *
  82.      * <p>
  83.      * This accessor method returns a reference to the live list,
  84.      * not a snapshot. Therefore any modification you make to the
  85.      * returned list will be present inside the JAXB object.
  86.      * This is why there is not a <CODE>set</CODE> method for the route property.
  87.      *
  88.      * <p>
  89.      * For example, to add a new item, do as follows:
  90.      * <pre>
  91.      *    getRoute().add(newItem);
  92.      * </pre>
  93.      *
  94.      *
  95.      * <p>
  96.      * Objects of the following type(s) are allowed in the list
  97.      * {@link RouteMix.Route }
  98.      *
  99.      *
  100.      */
  101.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  102.     public List<RouteMix.Route> getRoute() {
  103.         if (route == null) {
  104.             route = new ArrayList<RouteMix.Route>();
  105.         }
  106.         return this.route;
  107.     }

  108.     /**
  109.      * Gets the value of the randomStream property.
  110.      *
  111.      * @return
  112.      *     possible object is
  113.      *     {@link RandomStreamSource }
  114.      *    
  115.      */
  116.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  117.     public RandomStreamSource getRandomStream() {
  118.         return randomStream;
  119.     }

  120.     /**
  121.      * Sets the value of the randomStream property.
  122.      *
  123.      * @param value
  124.      *     allowed object is
  125.      *     {@link RandomStreamSource }
  126.      *    
  127.      */
  128.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  129.     public void setRandomStream(RandomStreamSource value) {
  130.         this.randomStream = value;
  131.     }

  132.     /**
  133.      * Gets the value of the id property.
  134.      *
  135.      * @return
  136.      *     possible object is
  137.      *     {@link String }
  138.      *    
  139.      */
  140.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  141.     public String getId() {
  142.         return id;
  143.     }

  144.     /**
  145.      * Sets the value of the id property.
  146.      *
  147.      * @param value
  148.      *     allowed object is
  149.      *     {@link String }
  150.      *    
  151.      */
  152.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  153.     public void setId(String value) {
  154.         this.id = value;
  155.     }

  156.     /**
  157.      * Gets the value of the gtuType property.
  158.      *
  159.      * @return
  160.      *     possible object is
  161.      *     {@link String }
  162.      *    
  163.      */
  164.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  165.     public StringType getGtuType() {
  166.         return gtuType;
  167.     }

  168.     /**
  169.      * Sets the value of the gtuType property.
  170.      *
  171.      * @param value
  172.      *     allowed object is
  173.      *     {@link String }
  174.      *    
  175.      */
  176.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  177.     public void setGtuType(StringType value) {
  178.         this.gtuType = value;
  179.     }


  180.     /**
  181.      * <p>Java class for anonymous complex type.
  182.      *
  183.      * <p>The following schema fragment specifies the expected content contained within this class.
  184.      *
  185.      * <pre>
  186.      * &lt;complexType&gt;
  187.      *   &lt;complexContent&gt;
  188.      *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
  189.      *       &lt;attribute name="Id" use="required" type="{http://www.opentrafficsim.org/ots}string" /&gt;
  190.      *       &lt;attribute name="Weight" use="required" type="{http://www.opentrafficsim.org/ots}double" /&gt;
  191.      *     &lt;/restriction&gt;
  192.      *   &lt;/complexContent&gt;
  193.      * &lt;/complexType&gt;
  194.      * </pre>
  195.      *
  196.      *
  197.      */
  198.     @XmlAccessorType(XmlAccessType.FIELD)
  199.     @XmlType(name = "")
  200.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  201.     public static class Route
  202.         implements Serializable
  203.     {

  204.         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  205.         private final static long serialVersionUID = 10102L;
  206.         @XmlAttribute(name = "Id", required = true)
  207.         @XmlJavaTypeAdapter(StringAdapter.class)
  208.         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  209.         protected StringType id;
  210.         @XmlAttribute(name = "Weight", required = true)
  211.         @XmlJavaTypeAdapter(DoubleAdapter.class)
  212.         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  213.         protected DoubleType weight;

  214.         /**
  215.          * Gets the value of the id property.
  216.          *
  217.          * @return
  218.          *     possible object is
  219.          *     {@link String }
  220.          *    
  221.          */
  222.         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  223.         public StringType getId() {
  224.             return id;
  225.         }

  226.         /**
  227.          * Sets the value of the id property.
  228.          *
  229.          * @param value
  230.          *     allowed object is
  231.          *     {@link String }
  232.          *    
  233.          */
  234.         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  235.         public void setId(StringType value) {
  236.             this.id = value;
  237.         }

  238.         /**
  239.          * Gets the value of the weight property.
  240.          *
  241.          * @return
  242.          *     possible object is
  243.          *     {@link String }
  244.          *    
  245.          */
  246.         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  247.         public DoubleType getWeight() {
  248.             return weight;
  249.         }

  250.         /**
  251.          * Sets the value of the weight property.
  252.          *
  253.          * @param value
  254.          *     allowed object is
  255.          *     {@link String }
  256.          *    
  257.          */
  258.         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  259.         public void setWeight(DoubleType value) {
  260.             this.weight = value;
  261.         }

  262.     }

  263. }