//
// 此文件是由 JavaTM Architecture for XML Binding (JAXB) 引用实现 v2.3.0 生成的
// 请访问 <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a> 
// 在重新编译源模式时, 对此文件的所有修改都将丢失。
// 生成时间: 2026.03.02 时间 03:10:34 PM CST 
//


package com.njcn.gather.icd.mapping.infrastructure.parser.generated;

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;
import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * <p>tGSEControl complex type的 Java 类。
 * 
 * <p>以下模式片段指定包含在此类中的预期内容。
 * 
 * <pre>
 * &lt;complexType name="tGSEControl"&gt;
 *   &lt;complexContent&gt;
 *     &lt;extension base="{http://www.iec.ch/61850/2003/SCL}tControlWithIEDName"&gt;
 *       &lt;sequence&gt;
 *         &lt;element name="Protocol" type="{http://www.iec.ch/61850/2003/SCL}tProtocol" minOccurs="0"/&gt;
 *       &lt;/sequence&gt;
 *       &lt;attribute name="type" type="{http://www.iec.ch/61850/2003/SCL}tGSEControlTypeEnum" default="GOOSE" /&gt;
 *       &lt;attribute name="appID" use="required" type="{http://www.iec.ch/61850/2003/SCL}tMessageID" /&gt;
 *       &lt;attribute name="fixedOffs" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /&gt;
 *       &lt;attribute name="securityEnable" type="{http://www.iec.ch/61850/2003/SCL}tPredefinedTypeOfSecurityEnum" default="None" /&gt;
 *       &lt;anyAttribute processContents='lax' namespace='##other'/&gt;
 *     &lt;/extension&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "tGSEControl", propOrder = {
    "protocol"
})
public class TGSEControl
    extends TControlWithIEDName
{

    @XmlElement(name = "Protocol")
    protected TProtocol protocol;
    @XmlAttribute(name = "type")
    protected TGSEControlTypeEnum type;
    @XmlAttribute(name = "appID", required = true)
    @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
    protected String appID;
    @XmlAttribute(name = "fixedOffs")
    protected Boolean fixedOffs;
    @XmlAttribute(name = "securityEnable")
    protected TPredefinedTypeOfSecurityEnum securityEnable;

    /**
     * 获取protocol属性的值。
     * 
     * @return
     *     possible object is
     *     {@link TProtocol }
     *     
     */
    public TProtocol getProtocol() {
        return protocol;
    }

    /**
     * 设置protocol属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link TProtocol }
     *     
     */
    public void setProtocol(TProtocol value) {
        this.protocol = value;
    }

    /**
     * 获取type属性的值。
     * 
     * @return
     *     possible object is
     *     {@link TGSEControlTypeEnum }
     *     
     */
    public TGSEControlTypeEnum getType() {
        if (type == null) {
            return TGSEControlTypeEnum.GOOSE;
        } else {
            return type;
        }
    }

    /**
     * 设置type属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link TGSEControlTypeEnum }
     *     
     */
    public void setType(TGSEControlTypeEnum value) {
        this.type = value;
    }

    /**
     * 获取appID属性的值。
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getAppID() {
        return appID;
    }

    /**
     * 设置appID属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setAppID(String value) {
        this.appID = value;
    }

    /**
     * 获取fixedOffs属性的值。
     * 
     * @return
     *     possible object is
     *     {@link Boolean }
     *     
     */
    public boolean isFixedOffs() {
        if (fixedOffs == null) {
            return false;
        } else {
            return fixedOffs;
        }
    }

    /**
     * 设置fixedOffs属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link Boolean }
     *     
     */
    public void setFixedOffs(Boolean value) {
        this.fixedOffs = value;
    }

    /**
     * 获取securityEnable属性的值。
     * 
     * @return
     *     possible object is
     *     {@link TPredefinedTypeOfSecurityEnum }
     *     
     */
    public TPredefinedTypeOfSecurityEnum getSecurityEnable() {
        if (securityEnable == null) {
            return TPredefinedTypeOfSecurityEnum.NONE;
        } else {
            return securityEnable;
        }
    }

    /**
     * 设置securityEnable属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link TPredefinedTypeOfSecurityEnum }
     *     
     */
    public void setSecurityEnable(TPredefinedTypeOfSecurityEnum value) {
        this.securityEnable = value;
    }

}
