Package org.opentrafficsim.xml.generated
Class ShortestRoute
java.lang.Object
org.opentrafficsim.xml.generated.ShortestRoute
- All Implemented Interfaces:
Serializable
@Generated(value="com.sun.tools.xjc.Driver",
comments="JAXB RI v2.3.7",
date="2024-08-29T18:50:16+02:00")
public class ShortestRoute
extends Object
implements Serializable
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="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>
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Java class for anonymous complex type. -
Field Summary
Modifier and TypeFieldDescriptionprotected ShortestRoute.Cost
protected StringType
protected StringType
protected String
protected StringType
protected List<StringType>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCost()
Gets the value of the cost property.getFrom()
Gets the value of the from property.Gets the value of the gtuType property.getId()
Gets the value of the id property.getTo()
Gets the value of the to property.getVia()
Gets the value of the via property.void
setCost
(ShortestRoute.Cost value) Sets the value of the cost property.void
setFrom
(StringType value) Sets the value of the from property.void
setGtuType
(StringType value) Sets the value of the gtuType property.void
Sets the value of the id property.void
setTo
(StringType value) Sets the value of the to property.
-
Field Details
-
from
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v2.3.7", date="2024-08-29T18:50:16+02:00") protected StringType from -
via
@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 -
to
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v2.3.7", date="2024-08-29T18:50:16+02:00") protected StringType to -
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 -
id
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v2.3.7", date="2024-08-29T18:50:16+02:00") protected String id -
gtuType
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v2.3.7", date="2024-08-29T18:50:16+02:00") protected StringType gtuType
-
-
Constructor Details
-
ShortestRoute
public ShortestRoute()
-
-
Method Details
-
getFrom
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v2.3.7", date="2024-08-29T18:50:16+02:00") public StringType getFrom()Gets the value of the from property.- Returns:
- possible object is
String
-
setFrom
@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) Sets the value of the from property.- Parameters:
value
- allowed object isString
-
getVia
@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()Gets the value of the via 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 via property.For example, to add a new item, do as follows:
getVia().add(newItem);
Objects of the following type(s) are allowed in the list
String
-
getTo
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v2.3.7", date="2024-08-29T18:50:16+02:00") public StringType getTo()Gets the value of the to property.- Returns:
- possible object is
String
-
setTo
@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) Sets the value of the to property.- Parameters:
value
- allowed object isString
-
getCost
@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()Gets the value of the cost property.- Returns:
- possible object is
ShortestRoute.Cost
-
setCost
@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) Sets the value of the cost property.- Parameters:
value
- allowed object isShortestRoute.Cost
-
getId
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v2.3.7", date="2024-08-29T18:50:16+02:00") public String getId()Gets the value of the id property.- Returns:
- possible object is
String
-
setId
@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) Sets the value of the id property.- Parameters:
value
- allowed object isString
-
getGtuType
@Generated(value="com.sun.tools.xjc.Driver", comments="JAXB RI v2.3.7", date="2024-08-29T18:50:16+02:00") public StringType getGtuType()Gets the value of the gtuType property.- Returns:
- possible object is
String
-
setGtuType
@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) Sets the value of the gtuType property.- Parameters:
value
- allowed object isString
-