GtuTemplateMix.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.DoublePositiveInclusiveAdapter;
  20. import org.opentrafficsim.xml.bindings.types.DoubleType;


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

  61.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  62.     private final static long serialVersionUID = 10102L;
  63.     @XmlElement(name = "GtuTemplate", required = true)
  64.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  65.     protected List<GtuTemplateMix.GtuTemplate> gtuTemplate;
  66.     @XmlElement(name = "RandomStream")
  67.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  68.     protected RandomStreamSource randomStream;
  69.     @XmlAttribute(name = "Id", required = true)
  70.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  71.     protected String id;

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

  101.     /**
  102.      * Gets the value of the randomStream property.
  103.      *
  104.      * @return
  105.      *     possible object is
  106.      *     {@link RandomStreamSource }
  107.      *    
  108.      */
  109.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  110.     public RandomStreamSource getRandomStream() {
  111.         return randomStream;
  112.     }

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

  125.     /**
  126.      * Gets the value of the id property.
  127.      *
  128.      * @return
  129.      *     possible object is
  130.      *     {@link String }
  131.      *    
  132.      */
  133.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  134.     public String getId() {
  135.         return id;
  136.     }

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


  149.     /**
  150.      * <p>Java class for anonymous complex type.
  151.      *
  152.      * <p>The following schema fragment specifies the expected content contained within this class.
  153.      *
  154.      * <pre>
  155.      * &lt;complexType&gt;
  156.      *   &lt;complexContent&gt;
  157.      *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
  158.      *       &lt;attribute name="Id" use="required" type="{http://www.opentrafficsim.org/ots}IdType" /&gt;
  159.      *       &lt;attribute name="Weight" use="required" type="{http://www.opentrafficsim.org/ots}DoublePositiveInclusive" /&gt;
  160.      *     &lt;/restriction&gt;
  161.      *   &lt;/complexContent&gt;
  162.      * &lt;/complexType&gt;
  163.      * </pre>
  164.      *
  165.      *
  166.      */
  167.     @XmlAccessorType(XmlAccessType.FIELD)
  168.     @XmlType(name = "")
  169.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  170.     public static class GtuTemplate
  171.         implements Serializable
  172.     {

  173.         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  174.         private final static long serialVersionUID = 10102L;
  175.         @XmlAttribute(name = "Id", required = true)
  176.         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  177.         protected String id;
  178.         @XmlAttribute(name = "Weight", required = true)
  179.         @XmlJavaTypeAdapter(DoublePositiveInclusiveAdapter.class)
  180.         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  181.         protected DoubleType weight;

  182.         /**
  183.          * Gets the value of the id property.
  184.          *
  185.          * @return
  186.          *     possible object is
  187.          *     {@link String }
  188.          *    
  189.          */
  190.         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  191.         public String getId() {
  192.             return id;
  193.         }

  194.         /**
  195.          * Sets the value of the id property.
  196.          *
  197.          * @param value
  198.          *     allowed object is
  199.          *     {@link String }
  200.          *    
  201.          */
  202.         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  203.         public void setId(String value) {
  204.             this.id = value;
  205.         }

  206.         /**
  207.          * Gets the value of the weight property.
  208.          *
  209.          * @return
  210.          *     possible object is
  211.          *     {@link String }
  212.          *    
  213.          */
  214.         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  215.         public DoubleType getWeight() {
  216.             return weight;
  217.         }

  218.         /**
  219.          * Sets the value of the weight property.
  220.          *
  221.          * @param value
  222.          *     allowed object is
  223.          *     {@link String }
  224.          *    
  225.          */
  226.         @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
  227.         public void setWeight(DoubleType value) {
  228.             this.weight = value;
  229.         }

  230.     }

  231. }