
de.vdv.ojp20.IndividualTransportOptionStructure Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ojp-java-model Show documentation
Show all versions of ojp-java-model Show documentation
Generates Java model from OJP xsds using jaxb.
The newest version!
//
// This file was generated by the Eclipse Implementation of JAXB, v4.0.5
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
//
package de.vdv.ojp20;
import java.math.BigInteger;
import java.time.Duration;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.opentripplanner.ojp.netex.OmitNullsToStringStyle;
import org.opentripplanner.ojp.util.DurationXmlAdapter;
/**
* Individual modes and their usage limits as stated by the passenger (TRIP ACCESS CONSTRAINT).
*
* Java class for IndividualTransportOptionStructure complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "IndividualTransportOptionStructure", propOrder = {
"itModeAndModeOfOperation",
"maxDistance",
"maxDuration",
"minDistance",
"minDuration",
"speed",
"additionalTime"
})
public class IndividualTransportOptionStructure {
/**
* Combinations of MODE and MODE OPERATION for ACCESS LEG. If no MODE OF OPERATION is given, then all can be used. Usually, the result will be the own vehicle.
*
*/
@XmlElement(name = "ItModeAndModeOfOperation", required = true)
protected ItModesStructure itModeAndModeOfOperation;
/**
* Maximum distance in meters. If given, it restricts the maximum distance of routes with the given mode.
*
*/
@XmlElement(name = "MaxDistance")
@XmlSchemaType(name = "nonNegativeInteger")
protected BigInteger maxDistance;
/**
* Maximum duration. If given, it restricts the maximum time of routes with the given mode.
*
*/
@XmlElement(name = "MaxDuration", type = String.class)
@XmlJavaTypeAdapter(DurationXmlAdapter.class)
@XmlSchemaType(name = "duration")
protected Duration maxDuration;
/**
* Minimum distance in meters. If given, it restricts the minimum distance of routes with the given mode.
*
*/
@XmlElement(name = "MinDistance")
@XmlSchemaType(name = "nonNegativeInteger")
protected BigInteger minDistance;
/**
* Minimum duration. If given, it restricts the minimum time of routes with the given mode.
*
*/
@XmlElement(name = "MinDuration", type = String.class)
@XmlJavaTypeAdapter(DurationXmlAdapter.class)
@XmlSchemaType(name = "duration")
protected Duration minDuration;
/**
* Relative speed in percent. If given slows the standard speed (below 100) or fasten it (above 100).
*
*/
@XmlElement(name = "Speed")
@XmlSchemaType(name = "nonNegativeInteger")
protected BigInteger speed;
/**
* Additional time added to the actual traveling time needed to use a specific mode.
*
*/
@XmlElement(name = "AdditionalTime", type = String.class)
@XmlJavaTypeAdapter(DurationXmlAdapter.class)
@XmlSchemaType(name = "duration")
protected Duration additionalTime;
/**
* Combinations of MODE and MODE OPERATION for ACCESS LEG. If no MODE OF OPERATION is given, then all can be used. Usually, the result will be the own vehicle.
*
* @return
* possible object is
* {@link ItModesStructure }
*
*/
public ItModesStructure getItModeAndModeOfOperation() {
return itModeAndModeOfOperation;
}
/**
* Sets the value of the itModeAndModeOfOperation property.
*
* @param value
* allowed object is
* {@link ItModesStructure }
*
* @see #getItModeAndModeOfOperation()
*/
public void setItModeAndModeOfOperation(ItModesStructure value) {
this.itModeAndModeOfOperation = value;
}
/**
* Maximum distance in meters. If given, it restricts the maximum distance of routes with the given mode.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getMaxDistance() {
return maxDistance;
}
/**
* Sets the value of the maxDistance property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
* @see #getMaxDistance()
*/
public void setMaxDistance(BigInteger value) {
this.maxDistance = value;
}
/**
* Maximum duration. If given, it restricts the maximum time of routes with the given mode.
*
* @return
* possible object is
* {@link String }
*
*/
public Duration getMaxDuration() {
return maxDuration;
}
/**
* Sets the value of the maxDuration property.
*
* @param value
* allowed object is
* {@link String }
*
* @see #getMaxDuration()
*/
public void setMaxDuration(Duration value) {
this.maxDuration = value;
}
/**
* Minimum distance in meters. If given, it restricts the minimum distance of routes with the given mode.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getMinDistance() {
return minDistance;
}
/**
* Sets the value of the minDistance property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
* @see #getMinDistance()
*/
public void setMinDistance(BigInteger value) {
this.minDistance = value;
}
/**
* Minimum duration. If given, it restricts the minimum time of routes with the given mode.
*
* @return
* possible object is
* {@link String }
*
*/
public Duration getMinDuration() {
return minDuration;
}
/**
* Sets the value of the minDuration property.
*
* @param value
* allowed object is
* {@link String }
*
* @see #getMinDuration()
*/
public void setMinDuration(Duration value) {
this.minDuration = value;
}
/**
* Relative speed in percent. If given slows the standard speed (below 100) or fasten it (above 100).
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getSpeed() {
return speed;
}
/**
* Sets the value of the speed property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
* @see #getSpeed()
*/
public void setSpeed(BigInteger value) {
this.speed = value;
}
/**
* Additional time added to the actual traveling time needed to use a specific mode.
*
* @return
* possible object is
* {@link String }
*
*/
public Duration getAdditionalTime() {
return additionalTime;
}
/**
* Sets the value of the additionalTime property.
*
* @param value
* allowed object is
* {@link String }
*
* @see #getAdditionalTime()
*/
public void setAdditionalTime(Duration value) {
this.additionalTime = value;
}
public IndividualTransportOptionStructure withItModeAndModeOfOperation(ItModesStructure value) {
setItModeAndModeOfOperation(value);
return this;
}
public IndividualTransportOptionStructure withMaxDistance(BigInteger value) {
setMaxDistance(value);
return this;
}
public IndividualTransportOptionStructure withMaxDuration(Duration value) {
setMaxDuration(value);
return this;
}
public IndividualTransportOptionStructure withMinDistance(BigInteger value) {
setMinDistance(value);
return this;
}
public IndividualTransportOptionStructure withMinDuration(Duration value) {
setMinDuration(value);
return this;
}
public IndividualTransportOptionStructure withSpeed(BigInteger value) {
setSpeed(value);
return this;
}
public IndividualTransportOptionStructure withAdditionalTime(Duration value) {
setAdditionalTime(value);
return this;
}
/**
* Generates a String representation of the contents of this type.
* This is an extension method, produced by the 'ts' xjc plugin
*
*/
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, OmitNullsToStringStyle.INSTANCE);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy