/*
* Geotoolkit - An Open Source Java GIS Toolkit
* http://www.geotoolkit.org
*
* (C) 2011, Geomatys
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*/
package org.geotoolkit.ols.xml.v121;
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.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.Duration;
import org.geotoolkit.gml.xml.v311.EnvelopeType;
/**
* Defines the characteristics of a segment along a route.
*
* <p>Java class for AbstractRouteSegmentType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="AbstractRouteSegmentType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://www.opengis.net/xls}Distance"/>
* <element name="TravelTime" type="{http://www.w3.org/2001/XMLSchema}duration"/>
* <element ref="{http://www.opengis.net/xls}BoundingBox"/>
* </sequence>
* <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AbstractRouteSegmentType", propOrder = {
"distance",
"travelTime",
"boundingBox"
})
@XmlSeeAlso({
RouteSegmentType.class
})
public abstract class AbstractRouteSegmentType {
@XmlElement(name = "Distance", required = true)
private DistanceType distance;
@XmlElement(name = "TravelTime", required = true)
private Duration travelTime;
@XmlElement(name = "BoundingBox", required = true)
private EnvelopeType boundingBox;
@XmlAttribute
private String name;
/**
* Distance along the segment.
*
* @return
* possible object is
* {@link DistanceType }
*
*/
public DistanceType getDistance() {
return distance;
}
/**
* Sets the value of the distance property.
*
* @param value
* allowed object is
* {@link DistanceType }
*
*/
public void setDistance(DistanceType value) {
this.distance = value;
}
/**
* Gets the value of the travelTime property.
*
* @return
* possible object is
* {@link Duration }
*
*/
public Duration getTravelTime() {
return travelTime;
}
/**
* Sets the value of the travelTime property.
*
* @param value
* allowed object is
* {@link Duration }
*
*/
public void setTravelTime(Duration value) {
this.travelTime = value;
}
/**
* Rectangular area bounding the segment.
*
* @return
* possible object is
* {@link EnvelopeType }
*
*/
public EnvelopeType getBoundingBox() {
return boundingBox;
}
/**
* Sets the value of the boundingBox property.
*
* @param value
* allowed object is
* {@link EnvelopeType }
*
*/
public void setBoundingBox(EnvelopeType value) {
this.boundingBox = value;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
}