All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.omg.space.xtce.TriggerSetType Maven / Gradle / Ivy

Go to download

This project contains software to support the Object Management Group (OMG) Space Domain Task Force (SDTF) maintained XML Telemetry and Command Exchange (XTCE) specification.

There is a newer version: 1.1.6
Show newest version
//
// 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.XmlElements;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;


/**
 * A trigger is used to initiate the processing of some algorithm.  A trigger may be based on an update of a Parameter or on a time basis.  Triggers may also have a rate that limits their firing to a 1/rate basis.
 * 
 * 

Java class for TriggerSetType complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="TriggerSetType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <choice maxOccurs="unbounded">
 *         <element name="OnParameterUpdateTrigger">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <attribute name="parameterRef" use="required" type="{http://www.omg.org/space/xtce}NameReferenceType" />
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="OnContainerUpdateTrigger">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <attribute name="containerRef" use="required" type="{http://www.omg.org/space/xtce}NameReferenceType" />
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="OnPeriodicRateTrigger">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <attribute name="fireRateInSeconds" use="required" type="{http://www.w3.org/2001/XMLSchema}decimal" />
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *       </choice>
 *       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="triggerRate" type="{http://www.w3.org/2001/XMLSchema}nonNegativeInteger" default="1" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "TriggerSetType", propOrder = { "onParameterUpdateTriggerOrOnContainerUpdateTriggerOrOnPeriodicRateTrigger" }) public class TriggerSetType { @XmlElements({ @XmlElement(name = "OnParameterUpdateTrigger", type = TriggerSetType.OnParameterUpdateTrigger.class), @XmlElement(name = "OnContainerUpdateTrigger", type = TriggerSetType.OnContainerUpdateTrigger.class), @XmlElement(name = "OnPeriodicRateTrigger", type = TriggerSetType.OnPeriodicRateTrigger.class) }) protected List onParameterUpdateTriggerOrOnContainerUpdateTriggerOrOnPeriodicRateTrigger; @XmlAttribute(name = "name") protected String name; @XmlAttribute(name = "triggerRate") @XmlSchemaType(name = "nonNegativeInteger") protected BigInteger triggerRate; /** * Gets the value of the onParameterUpdateTriggerOrOnContainerUpdateTriggerOrOnPeriodicRateTrigger 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 onParameterUpdateTriggerOrOnContainerUpdateTriggerOrOnPeriodicRateTrigger property. * *

* For example, to add a new item, do as follows: *

     *    getOnParameterUpdateTriggerOrOnContainerUpdateTriggerOrOnPeriodicRateTrigger().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link TriggerSetType.OnParameterUpdateTrigger } * {@link TriggerSetType.OnContainerUpdateTrigger } * {@link TriggerSetType.OnPeriodicRateTrigger } * * */ public List getOnParameterUpdateTriggerOrOnContainerUpdateTriggerOrOnPeriodicRateTrigger() { if (onParameterUpdateTriggerOrOnContainerUpdateTriggerOrOnPeriodicRateTrigger == null) { onParameterUpdateTriggerOrOnContainerUpdateTriggerOrOnPeriodicRateTrigger = new ArrayList(); } return this.onParameterUpdateTriggerOrOnContainerUpdateTriggerOrOnPeriodicRateTrigger; } /** * 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; } /** * Gets the value of the triggerRate property. * * @return * possible object is * {@link BigInteger } * */ public BigInteger getTriggerRate() { if (triggerRate == null) { return new BigInteger("1"); } else { return triggerRate; } } /** * Sets the value of the triggerRate property. * * @param value * allowed object is * {@link BigInteger } * */ public void setTriggerRate(BigInteger value) { this.triggerRate = 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="containerRef" use="required" type="{http://www.omg.org/space/xtce}NameReferenceType" />
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class OnContainerUpdateTrigger { @XmlAttribute(name = "containerRef", required = true) protected String containerRef; /** * Gets the value of the containerRef property. * * @return * possible object is * {@link String } * */ public String getContainerRef() { return containerRef; } /** * Sets the value of the containerRef property. * * @param value * allowed object is * {@link String } * */ public void setContainerRef(String value) { this.containerRef = 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="parameterRef" use="required" type="{http://www.omg.org/space/xtce}NameReferenceType" />
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class OnParameterUpdateTrigger { @XmlAttribute(name = "parameterRef", required = true) protected String parameterRef; /** * Gets the value of the parameterRef property. * * @return * possible object is * {@link String } * */ public String getParameterRef() { return parameterRef; } /** * Sets the value of the parameterRef property. * * @param value * allowed object is * {@link String } * */ public void setParameterRef(String value) { this.parameterRef = 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="fireRateInSeconds" use="required" type="{http://www.w3.org/2001/XMLSchema}decimal" />
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class OnPeriodicRateTrigger { @XmlAttribute(name = "fireRateInSeconds", required = true) protected BigDecimal fireRateInSeconds; /** * Gets the value of the fireRateInSeconds property. * * @return * possible object is * {@link BigDecimal } * */ public BigDecimal getFireRateInSeconds() { return fireRateInSeconds; } /** * Sets the value of the fireRateInSeconds property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setFireRateInSeconds(BigDecimal value) { this.fireRateInSeconds = value; } } }