/*-
 * #%L
 * This file is part of "Apromore Community".
 *
 * Copyright (C) 2013 - 2017 Queensland University of Technology.
 * %%
 * Copyright (C) 2018 - 2020 The University of Melbourne.
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Lesser Public License for more details.
 *
 * You should have received a copy of the GNU General Lesser Public
 * License along with this program.  If not, see
 * <http://www.gnu.org/licenses/lgpl-3.0.html>.
 * #L%
 */
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-558 
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2008.11.03 at 05:04:23 PM CET 
//

package org.yawlfoundation.yawlschema;

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.XmlType;

/**
 * <p>
 * Java class for NetFactsType complex type.
 * 
 * <p>
 * The following schema fragment specifies the expected content contained within
 * this class.
 * 
 * <pre>
 * &lt;complexType name="NetFactsType">
 *   &lt;complexContent>
 *     &lt;extension base="{http://www.yawlfoundation.org/yawlschema}DecompositionFactsType">
 *       &lt;sequence>
 *         &lt;element name="localVariable" type="{http://www.yawlfoundation.org/yawlschema}VariableFactsType" maxOccurs="unbounded" minOccurs="0"/>
 *         &lt;element name="processControlElements">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;sequence>
 *                   &lt;element name="inputCondition" type="{http://www.yawlfoundation.org/yawlschema}ExternalConditionFactsType"/>
 *                   &lt;choice maxOccurs="unbounded">
 *                     &lt;element name="task" type="{http://www.yawlfoundation.org/yawlschema}ExternalTaskFactsType" maxOccurs="unbounded" minOccurs="0"/>
 *                     &lt;element name="condition" type="{http://www.yawlfoundation.org/yawlschema}ExternalConditionFactsType" maxOccurs="unbounded" minOccurs="0"/>
 *                   &lt;/choice>
 *                   &lt;element name="outputCondition" type="{http://www.yawlfoundation.org/yawlschema}OutputConditionFactsType"/>
 *                 &lt;/sequence>
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *       &lt;/sequence>
 *       &lt;attribute name="isRootNet" type="{http://www.w3.org/2001/XMLSchema}boolean" />
 *     &lt;/extension>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "NetFactsType", propOrder = { "localVariable",
		"processControlElements" })
public class NetFactsType extends DecompositionFactsType {

	protected List<VariableFactsType> localVariable;
	@XmlElement(required = true)
	protected NetFactsType.ProcessControlElements processControlElements;
	@XmlAttribute
	protected Boolean isRootNet;

	/**
	 * Gets the value of the localVariable property.
	 * 
	 * <p>
	 * 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
	 * <CODE>set</CODE> method for the localVariable property.
	 * 
	 * <p>
	 * For example, to add a new item, do as follows:
	 * 
	 * <pre>
	 * getLocalVariable().add(newItem);
	 * </pre>
	 * 
	 * 
	 * <p>
	 * Objects of the following type(s) are allowed in the list
	 * {@link VariableFactsType }
	 * 
	 * 
	 */
	public List<VariableFactsType> getLocalVariable() {
		if (localVariable == null) {
			localVariable = new ArrayList<VariableFactsType>();
		}
		return this.localVariable;
	}

	/**
	 * Gets the value of the processControlElements property.
	 * 
	 * @return possible object is {@link NetFactsType.ProcessControlElements }
	 * 
	 */
	public NetFactsType.ProcessControlElements getProcessControlElements() {
		return processControlElements;
	}

	/**
	 * Sets the value of the processControlElements property.
	 * 
	 * @param value
	 *            allowed object is {@link NetFactsType.ProcessControlElements }
	 * 
	 */
	public void setProcessControlElements(
			NetFactsType.ProcessControlElements value) {
		this.processControlElements = value;
	}

	/**
	 * Gets the value of the isRootNet property.
	 * 
	 * @return possible object is {@link Boolean }
	 * 
	 */
	public Boolean isIsRootNet() {
		return isRootNet;
	}

	/**
	 * Sets the value of the isRootNet property.
	 * 
	 * @param value
	 *            allowed object is {@link Boolean }
	 * 
	 */
	public void setIsRootNet(Boolean value) {
		this.isRootNet = value;
	}

	/**
	 * <p>
	 * Java class for anonymous complex type.
	 * 
	 * <p>
	 * The following schema fragment specifies the expected content contained
	 * within this class.
	 * 
	 * <pre>
	 * &lt;complexType>
	 *   &lt;complexContent>
	 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
	 *       &lt;sequence>
	 *         &lt;element name="inputCondition" type="{http://www.yawlfoundation.org/yawlschema}ExternalConditionFactsType"/>
	 *         &lt;choice maxOccurs="unbounded">
	 *           &lt;element name="task" type="{http://www.yawlfoundation.org/yawlschema}ExternalTaskFactsType" maxOccurs="unbounded" minOccurs="0"/>
	 *           &lt;element name="condition" type="{http://www.yawlfoundation.org/yawlschema}ExternalConditionFactsType" maxOccurs="unbounded" minOccurs="0"/>
	 *         &lt;/choice>
	 *         &lt;element name="outputCondition" type="{http://www.yawlfoundation.org/yawlschema}OutputConditionFactsType"/>
	 *       &lt;/sequence>
	 *     &lt;/restriction>
	 *   &lt;/complexContent>
	 * &lt;/complexType>
	 * </pre>
	 * 
	 * 
	 */
	@XmlAccessorType(XmlAccessType.FIELD)
	@XmlType(name = "", propOrder = { "inputCondition", "taskOrCondition",
			"outputCondition" })
	public static class ProcessControlElements {

		@XmlElement(required = true)
		protected ExternalConditionFactsType inputCondition;
		@XmlElements({
				@XmlElement(name = "task", type = ExternalTaskFactsType.class),
				@XmlElement(name = "condition", type = ExternalConditionFactsType.class) })
		protected List<ExternalNetElementFactsType> taskOrCondition;
		@XmlElement(required = true)
		protected OutputConditionFactsType outputCondition;

		/**
		 * Gets the value of the inputCondition property.
		 * 
		 * @return possible object is {@link ExternalConditionFactsType }
		 * 
		 */
		public ExternalConditionFactsType getInputCondition() {
			return inputCondition;
		}

		/**
		 * Sets the value of the inputCondition property.
		 * 
		 * @param value
		 *            allowed object is {@link ExternalConditionFactsType }
		 * 
		 */
		public void setInputCondition(ExternalConditionFactsType value) {
			this.inputCondition = value;
		}

		/**
		 * Gets the value of the taskOrCondition property.
		 * 
		 * <p>
		 * 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
		 * <CODE>set</CODE> method for the taskOrCondition property.
		 * 
		 * <p>
		 * For example, to add a new item, do as follows:
		 * 
		 * <pre>
		 * getTaskOrCondition().add(newItem);
		 * </pre>
		 * 
		 * 
		 * <p>
		 * Objects of the following type(s) are allowed in the list
		 * {@link ExternalTaskFactsType } {@link ExternalConditionFactsType }
		 * 
		 * 
		 */
		public List<ExternalNetElementFactsType> getTaskOrCondition() {
			if (taskOrCondition == null) {
				taskOrCondition = new ArrayList<ExternalNetElementFactsType>();
			}
			return this.taskOrCondition;
		}

		/**
		 * Gets the value of the outputCondition property.
		 * 
		 * @return possible object is {@link OutputConditionFactsType }
		 * 
		 */
		public OutputConditionFactsType getOutputCondition() {
			return outputCondition;
		}

		/**
		 * Sets the value of the outputCondition property.
		 * 
		 * @param value
		 *            allowed object is {@link OutputConditionFactsType }
		 * 
		 */
		public void setOutputCondition(OutputConditionFactsType value) {
			this.outputCondition = value;
		}

	}

}
