ShortestRoute.java
//
// This file was generated by the Eclipse Implementation of JAXB, v2.3.7
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2024.08.29 at 06:50:16 PM CEST
//
package org.opentrafficsim.xml.generated;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Generated;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.opentrafficsim.xml.bindings.FrequencyAdapter;
import org.opentrafficsim.xml.bindings.LinearDensityAdapter;
import org.opentrafficsim.xml.bindings.StringAdapter;
import org.opentrafficsim.xml.bindings.types.FrequencyType;
import org.opentrafficsim.xml.bindings.types.LinearDensityType;
import org.opentrafficsim.xml.bindings.types.StringType;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="From" type="{http://www.opentrafficsim.org/ots}string"/>
* <element name="Via" type="{http://www.opentrafficsim.org/ots}string" maxOccurs="unbounded" minOccurs="0"/>
* <element name="To" type="{http://www.opentrafficsim.org/ots}string"/>
* <element name="Cost" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <choice>
* <element name="Distance" type="{http://www.opentrafficsim.org/ots}EmptyType"/>
* <element name="FreeFlowTime" type="{http://www.opentrafficsim.org/ots}EmptyType"/>
* <element name="DistanceAndFreeFlowTime">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="DistanceCost" type="{http://www.opentrafficsim.org/ots}LinearDensityType" />
* <attribute name="TimeCost" type="{http://www.opentrafficsim.org/ots}FrequencyType" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </choice>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* <attribute name="Id" use="required" type="{http://www.opentrafficsim.org/ots}IdType" />
* <attribute name="GtuType" use="required" type="{http://www.opentrafficsim.org/ots}string" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"from",
"via",
"to",
"cost"
})
@XmlRootElement(name = "ShortestRoute")
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
public class ShortestRoute
implements Serializable
{
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
private final static long serialVersionUID = 10102L;
@XmlElement(name = "From", required = true, type = String.class)
@XmlJavaTypeAdapter(StringAdapter.class)
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
protected StringType from;
@XmlElement(name = "Via", type = String.class)
@XmlJavaTypeAdapter(StringAdapter.class)
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
protected List<StringType> via;
@XmlElement(name = "To", required = true, type = String.class)
@XmlJavaTypeAdapter(StringAdapter.class)
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
protected StringType to;
@XmlElement(name = "Cost")
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
protected ShortestRoute.Cost cost;
@XmlAttribute(name = "Id", required = true)
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
protected String id;
@XmlAttribute(name = "GtuType", required = true)
@XmlJavaTypeAdapter(StringAdapter.class)
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
protected StringType gtuType;
/**
* Gets the value of the from property.
*
* @return
* possible object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
public StringType getFrom() {
return from;
}
/**
* Sets the value of the from property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
public void setFrom(StringType value) {
this.from = value;
}
/**
* Gets the value of the via property.
*
* <p>
* 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 <CODE>set</CODE> method for the via property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getVia().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
public List<StringType> getVia() {
if (via == null) {
via = new ArrayList<StringType>();
}
return this.via;
}
/**
* Gets the value of the to property.
*
* @return
* possible object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
public StringType getTo() {
return to;
}
/**
* Sets the value of the to property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
public void setTo(StringType value) {
this.to = value;
}
/**
* Gets the value of the cost property.
*
* @return
* possible object is
* {@link ShortestRoute.Cost }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
public ShortestRoute.Cost getCost() {
return cost;
}
/**
* Sets the value of the cost property.
*
* @param value
* allowed object is
* {@link ShortestRoute.Cost }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
public void setCost(ShortestRoute.Cost value) {
this.cost = value;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
public void setId(String value) {
this.id = value;
}
/**
* Gets the value of the gtuType property.
*
* @return
* possible object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
public StringType getGtuType() {
return gtuType;
}
/**
* Sets the value of the gtuType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
public void setGtuType(StringType value) {
this.gtuType = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <choice>
* <element name="Distance" type="{http://www.opentrafficsim.org/ots}EmptyType"/>
* <element name="FreeFlowTime" type="{http://www.opentrafficsim.org/ots}EmptyType"/>
* <element name="DistanceAndFreeFlowTime">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="DistanceCost" type="{http://www.opentrafficsim.org/ots}LinearDensityType" />
* <attribute name="TimeCost" type="{http://www.opentrafficsim.org/ots}FrequencyType" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </choice>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"distance",
"freeFlowTime",
"distanceAndFreeFlowTime"
})
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
public static class Cost
implements Serializable
{
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
private final static long serialVersionUID = 10102L;
@XmlElement(name = "Distance")
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
protected EmptyType distance;
@XmlElement(name = "FreeFlowTime")
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
protected EmptyType freeFlowTime;
@XmlElement(name = "DistanceAndFreeFlowTime")
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
protected ShortestRoute.Cost.DistanceAndFreeFlowTime distanceAndFreeFlowTime;
/**
* Gets the value of the distance property.
*
* @return
* possible object is
* {@link EmptyType }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
public EmptyType getDistance() {
return distance;
}
/**
* Sets the value of the distance property.
*
* @param value
* allowed object is
* {@link EmptyType }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
public void setDistance(EmptyType value) {
this.distance = value;
}
/**
* Gets the value of the freeFlowTime property.
*
* @return
* possible object is
* {@link EmptyType }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
public EmptyType getFreeFlowTime() {
return freeFlowTime;
}
/**
* Sets the value of the freeFlowTime property.
*
* @param value
* allowed object is
* {@link EmptyType }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
public void setFreeFlowTime(EmptyType value) {
this.freeFlowTime = value;
}
/**
* Gets the value of the distanceAndFreeFlowTime property.
*
* @return
* possible object is
* {@link ShortestRoute.Cost.DistanceAndFreeFlowTime }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
public ShortestRoute.Cost.DistanceAndFreeFlowTime getDistanceAndFreeFlowTime() {
return distanceAndFreeFlowTime;
}
/**
* Sets the value of the distanceAndFreeFlowTime property.
*
* @param value
* allowed object is
* {@link ShortestRoute.Cost.DistanceAndFreeFlowTime }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
public void setDistanceAndFreeFlowTime(ShortestRoute.Cost.DistanceAndFreeFlowTime value) {
this.distanceAndFreeFlowTime = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="DistanceCost" type="{http://www.opentrafficsim.org/ots}LinearDensityType" />
* <attribute name="TimeCost" type="{http://www.opentrafficsim.org/ots}FrequencyType" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
public static class DistanceAndFreeFlowTime
implements Serializable
{
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
private final static long serialVersionUID = 10102L;
@XmlAttribute(name = "DistanceCost")
@XmlJavaTypeAdapter(LinearDensityAdapter.class)
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
protected LinearDensityType distanceCost;
@XmlAttribute(name = "TimeCost")
@XmlJavaTypeAdapter(FrequencyAdapter.class)
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
protected FrequencyType timeCost;
/**
* Gets the value of the distanceCost property.
*
* @return
* possible object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
public LinearDensityType getDistanceCost() {
return distanceCost;
}
/**
* Sets the value of the distanceCost property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
public void setDistanceCost(LinearDensityType value) {
this.distanceCost = value;
}
/**
* Gets the value of the timeCost property.
*
* @return
* possible object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
public FrequencyType getTimeCost() {
return timeCost;
}
/**
* Sets the value of the timeCost property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v2.3.7", date = "2024-08-29T18:50:16+02:00")
public void setTimeCost(FrequencyType value) {
this.timeCost = value;
}
}
}
}