org.omg.space.xtce.FloatDataEncodingType Maven / Gradle / Ivy
Show all versions of xtcetools Show documentation
//
// 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 java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
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;
/**
* For common encodings of floating point data. Bit sizes correspond to known supported bit sizes for the IEEE_754 (32, 64, 80, 128) and MIL-1750A (32, 48)
*
* Java class for FloatDataEncodingType complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="FloatDataEncodingType">
* <complexContent>
* <extension base="{http://www.omg.org/space/xtce}DataEncodingType">
* <sequence>
* <element name="DefaultCalibrator" type="{http://www.omg.org/space/xtce}CalibratorType" minOccurs="0"/>
* <element name="ContextCalibratorList" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="ContextCalibrator" type="{http://www.omg.org/space/xtce}ContextCalibratorType" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* <attribute name="encoding" default="IEEE754_1985">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="IEEE754_1985"/>
* <enumeration value="MILSTD_1750A"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="sizeInBits" default="32">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}positiveInteger">
* <enumeration value="32"/>
* <enumeration value="48"/>
* <enumeration value="64"/>
* <enumeration value="80"/>
* <enumeration value="128"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="changeThreshold" type="{http://www.w3.org/2001/XMLSchema}decimal" />
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "FloatDataEncodingType", propOrder = {
"defaultCalibrator",
"contextCalibratorList"
})
public class FloatDataEncodingType
extends DataEncodingType
{
@XmlElement(name = "DefaultCalibrator")
protected CalibratorType defaultCalibrator;
@XmlElement(name = "ContextCalibratorList")
protected FloatDataEncodingType.ContextCalibratorList contextCalibratorList;
@XmlAttribute(name = "encoding")
protected String encoding;
@XmlAttribute(name = "sizeInBits")
protected BigInteger sizeInBits;
@XmlAttribute(name = "changeThreshold")
protected BigDecimal changeThreshold;
/**
* Gets the value of the defaultCalibrator property.
*
* @return
* possible object is
* {@link CalibratorType }
*
*/
public CalibratorType getDefaultCalibrator() {
return defaultCalibrator;
}
/**
* Sets the value of the defaultCalibrator property.
*
* @param value
* allowed object is
* {@link CalibratorType }
*
*/
public void setDefaultCalibrator(CalibratorType value) {
this.defaultCalibrator = value;
}
/**
* Gets the value of the contextCalibratorList property.
*
* @return
* possible object is
* {@link FloatDataEncodingType.ContextCalibratorList }
*
*/
public FloatDataEncodingType.ContextCalibratorList getContextCalibratorList() {
return contextCalibratorList;
}
/**
* Sets the value of the contextCalibratorList property.
*
* @param value
* allowed object is
* {@link FloatDataEncodingType.ContextCalibratorList }
*
*/
public void setContextCalibratorList(FloatDataEncodingType.ContextCalibratorList value) {
this.contextCalibratorList = value;
}
/**
* Gets the value of the encoding property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getEncoding() {
if (encoding == null) {
return "IEEE754_1985";
} else {
return encoding;
}
}
/**
* Sets the value of the encoding property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setEncoding(String value) {
this.encoding = value;
}
/**
* Gets the value of the sizeInBits property.
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getSizeInBits() {
if (sizeInBits == null) {
return new BigInteger("32");
} else {
return sizeInBits;
}
}
/**
* Sets the value of the sizeInBits property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
*/
public void setSizeInBits(BigInteger value) {
this.sizeInBits = value;
}
/**
* Gets the value of the changeThreshold property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getChangeThreshold() {
return changeThreshold;
}
/**
* Sets the value of the changeThreshold property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setChangeThreshold(BigDecimal value) {
this.changeThreshold = 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="ContextCalibrator" type="{http://www.omg.org/space/xtce}ContextCalibratorType" maxOccurs="unbounded"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"contextCalibrator"
})
public static class ContextCalibratorList {
@XmlElement(name = "ContextCalibrator", required = true)
protected List contextCalibrator;
/**
* Gets the value of the contextCalibrator 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 contextCalibrator property.
*
*
* For example, to add a new item, do as follows:
*
* getContextCalibrator().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ContextCalibratorType }
*
*
*/
public List getContextCalibrator() {
if (contextCalibrator == null) {
contextCalibrator = new ArrayList();
}
return this.contextCalibrator;
}
}
}