Connector.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.05.19 at 03:25:58 AM CEST
  6. //


  7. package org.opentrafficsim.xml.generated;

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


  22. /**
  23.  * <p>Java class for anonymous complex type.
  24.  *
  25.  * <p>The following schema fragment specifies the expected content contained within this class.
  26.  *
  27.  * <pre>
  28.  * &lt;complexType&gt;
  29.  *   &lt;complexContent&gt;
  30.  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
  31.  *       &lt;attribute name="Id" use="required" type="{http://www.opentrafficsim.org/ots}IdType" /&gt;
  32.  *       &lt;attribute name="Type" use="required" type="{http://www.opentrafficsim.org/ots}string" /&gt;
  33.  *       &lt;attribute name="Centroid" use="required" type="{http://www.opentrafficsim.org/ots}string" /&gt;
  34.  *       &lt;attribute name="Node" use="required" type="{http://www.opentrafficsim.org/ots}string" /&gt;
  35.  *       &lt;attribute name="Outbound" use="required" type="{http://www.opentrafficsim.org/ots}boolean" /&gt;
  36.  *       &lt;attribute name="DemandWeight" type="{http://www.opentrafficsim.org/ots}FractionType" default="1.0" /&gt;
  37.  *     &lt;/restriction&gt;
  38.  *   &lt;/complexContent&gt;
  39.  * &lt;/complexType&gt;
  40.  * </pre>
  41.  *
  42.  *
  43.  */
  44. @XmlAccessorType(XmlAccessType.FIELD)
  45. @XmlType(name = "")
  46. @XmlRootElement(name = "Connector")
  47. @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
  48. public class Connector
  49.     implements Serializable
  50. {

  51.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
  52.     private final static long serialVersionUID = 10102L;
  53.     @XmlAttribute(name = "Id", required = true)
  54.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
  55.     protected String id;
  56.     @XmlAttribute(name = "Type", required = true)
  57.     @XmlJavaTypeAdapter(StringAdapter.class)
  58.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
  59.     protected StringType type;
  60.     @XmlAttribute(name = "Centroid", required = true)
  61.     @XmlJavaTypeAdapter(StringAdapter.class)
  62.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
  63.     protected StringType centroid;
  64.     @XmlAttribute(name = "Node", required = true)
  65.     @XmlJavaTypeAdapter(StringAdapter.class)
  66.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
  67.     protected StringType node;
  68.     @XmlAttribute(name = "Outbound", required = true)
  69.     @XmlJavaTypeAdapter(BooleanAdapter.class)
  70.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
  71.     protected BooleanType outbound;
  72.     @XmlAttribute(name = "DemandWeight")
  73.     @XmlJavaTypeAdapter(FractionAdapter.class)
  74.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
  75.     protected DoubleType demandWeight;

  76.     /**
  77.      * Gets the value of the id property.
  78.      *
  79.      * @return
  80.      *     possible object is
  81.      *     {@link String }
  82.      *    
  83.      */
  84.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
  85.     public String getId() {
  86.         return id;
  87.     }

  88.     /**
  89.      * Sets the value of the id property.
  90.      *
  91.      * @param value
  92.      *     allowed object is
  93.      *     {@link String }
  94.      *    
  95.      */
  96.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
  97.     public void setId(String value) {
  98.         this.id = value;
  99.     }

  100.     /**
  101.      * Gets the value of the type property.
  102.      *
  103.      * @return
  104.      *     possible object is
  105.      *     {@link String }
  106.      *    
  107.      */
  108.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
  109.     public StringType getType() {
  110.         return type;
  111.     }

  112.     /**
  113.      * Sets the value of the type property.
  114.      *
  115.      * @param value
  116.      *     allowed object is
  117.      *     {@link String }
  118.      *    
  119.      */
  120.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
  121.     public void setType(StringType value) {
  122.         this.type = value;
  123.     }

  124.     /**
  125.      * Gets the value of the centroid property.
  126.      *
  127.      * @return
  128.      *     possible object is
  129.      *     {@link String }
  130.      *    
  131.      */
  132.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
  133.     public StringType getCentroid() {
  134.         return centroid;
  135.     }

  136.     /**
  137.      * Sets the value of the centroid property.
  138.      *
  139.      * @param value
  140.      *     allowed object is
  141.      *     {@link String }
  142.      *    
  143.      */
  144.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
  145.     public void setCentroid(StringType value) {
  146.         this.centroid = value;
  147.     }

  148.     /**
  149.      * Gets the value of the node property.
  150.      *
  151.      * @return
  152.      *     possible object is
  153.      *     {@link String }
  154.      *    
  155.      */
  156.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
  157.     public StringType getNode() {
  158.         return node;
  159.     }

  160.     /**
  161.      * Sets the value of the node property.
  162.      *
  163.      * @param value
  164.      *     allowed object is
  165.      *     {@link String }
  166.      *    
  167.      */
  168.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
  169.     public void setNode(StringType value) {
  170.         this.node = value;
  171.     }

  172.     /**
  173.      * Gets the value of the outbound property.
  174.      *
  175.      * @return
  176.      *     possible object is
  177.      *     {@link String }
  178.      *    
  179.      */
  180.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
  181.     public BooleanType getOutbound() {
  182.         return outbound;
  183.     }

  184.     /**
  185.      * Sets the value of the outbound property.
  186.      *
  187.      * @param value
  188.      *     allowed object is
  189.      *     {@link String }
  190.      *    
  191.      */
  192.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
  193.     public void setOutbound(BooleanType value) {
  194.         this.outbound = value;
  195.     }

  196.     /**
  197.      * Gets the value of the demandWeight property.
  198.      *
  199.      * @return
  200.      *     possible object is
  201.      *     {@link String }
  202.      *    
  203.      */
  204.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
  205.     public DoubleType getDemandWeight() {
  206.         if (demandWeight == null) {
  207.             return new FractionAdapter().unmarshal("1.0");
  208.         } else {
  209.             return demandWeight;
  210.         }
  211.     }

  212.     /**
  213.      * Sets the value of the demandWeight property.
  214.      *
  215.      * @param value
  216.      *     allowed object is
  217.      *     {@link String }
  218.      *    
  219.      */
  220.     @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-05-19T03:25:58+02:00")
  221.     public void setDemandWeight(DoubleType value) {
  222.         this.demandWeight = value;
  223.     }

  224. }