org.omg.space.xtce.DecimalValueType Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xtcetools Show documentation
Show all versions of xtcetools Show documentation
This project contains software to support the Object Management Group (OMG) Space Domain Task Force (SDTF) maintained XML Telemetry and Command Exchange (XTCE) specification.
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0
// See https://javaee.github.io/jaxb-v2/
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.03.16 at 05:52:46 PM MST
//
package org.omg.space.xtce;
import java.math.BigDecimal;
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.XmlType;
/**
* Contains a Numeric value; value may be provided directly or via the value in a parameter.
*
* Java class for DecimalValueType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="DecimalValueType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <choice>
* <element name="FixedValue" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* <element name="DynamicValue">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="ParameterInstanceRef" type="{http://www.omg.org/space/xtce}ParameterInstanceRefType"/>
* <element name="LinearAdjustment" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="slope" type="{http://www.w3.org/2001/XMLSchema}decimal" default="0" />
* <attribute name="intercept" type="{http://www.w3.org/2001/XMLSchema}decimal" default="0" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </choice>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DecimalValueType", propOrder = {
"fixedValue",
"dynamicValue"
})
public class DecimalValueType {
@XmlElement(name = "FixedValue")
protected BigDecimal fixedValue;
@XmlElement(name = "DynamicValue")
protected DecimalValueType.DynamicValue dynamicValue;
/**
* Gets the value of the fixedValue property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getFixedValue() {
return fixedValue;
}
/**
* Sets the value of the fixedValue property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setFixedValue(BigDecimal value) {
this.fixedValue = value;
}
/**
* Gets the value of the dynamicValue property.
*
* @return
* possible object is
* {@link DecimalValueType.DynamicValue }
*
*/
public DecimalValueType.DynamicValue getDynamicValue() {
return dynamicValue;
}
/**
* Sets the value of the dynamicValue property.
*
* @param value
* allowed object is
* {@link DecimalValueType.DynamicValue }
*
*/
public void setDynamicValue(DecimalValueType.DynamicValue value) {
this.dynamicValue = value;
}
/**
* 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="ParameterInstanceRef" type="{http://www.omg.org/space/xtce}ParameterInstanceRefType"/>
* <element name="LinearAdjustment" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="slope" type="{http://www.w3.org/2001/XMLSchema}decimal" default="0" />
* <attribute name="intercept" type="{http://www.w3.org/2001/XMLSchema}decimal" default="0" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"parameterInstanceRef",
"linearAdjustment"
})
public static class DynamicValue {
@XmlElement(name = "ParameterInstanceRef", required = true)
protected ParameterInstanceRefType parameterInstanceRef;
@XmlElement(name = "LinearAdjustment")
protected DecimalValueType.DynamicValue.LinearAdjustment linearAdjustment;
/**
* Gets the value of the parameterInstanceRef property.
*
* @return
* possible object is
* {@link ParameterInstanceRefType }
*
*/
public ParameterInstanceRefType getParameterInstanceRef() {
return parameterInstanceRef;
}
/**
* Sets the value of the parameterInstanceRef property.
*
* @param value
* allowed object is
* {@link ParameterInstanceRefType }
*
*/
public void setParameterInstanceRef(ParameterInstanceRefType value) {
this.parameterInstanceRef = value;
}
/**
* Gets the value of the linearAdjustment property.
*
* @return
* possible object is
* {@link DecimalValueType.DynamicValue.LinearAdjustment }
*
*/
public DecimalValueType.DynamicValue.LinearAdjustment getLinearAdjustment() {
return linearAdjustment;
}
/**
* Sets the value of the linearAdjustment property.
*
* @param value
* allowed object is
* {@link DecimalValueType.DynamicValue.LinearAdjustment }
*
*/
public void setLinearAdjustment(DecimalValueType.DynamicValue.LinearAdjustment value) {
this.linearAdjustment = value;
}
/**
* 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">
* <attribute name="slope" type="{http://www.w3.org/2001/XMLSchema}decimal" default="0" />
* <attribute name="intercept" type="{http://www.w3.org/2001/XMLSchema}decimal" default="0" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
public static class LinearAdjustment {
@XmlAttribute(name = "slope")
protected BigDecimal slope;
@XmlAttribute(name = "intercept")
protected BigDecimal intercept;
/**
* Gets the value of the slope property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getSlope() {
if (slope == null) {
return new BigDecimal("0");
} else {
return slope;
}
}
/**
* Sets the value of the slope property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setSlope(BigDecimal value) {
this.slope = value;
}
/**
* Gets the value of the intercept property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getIntercept() {
if (intercept == null) {
return new BigDecimal("0");
} else {
return intercept;
}
}
/**
* Sets the value of the intercept property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setIntercept(BigDecimal value) {
this.intercept = value;
}
}
}
}