package org.openlca.ecospold.internal.process;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import org.openlca.ecospold.IExchange;
/**
* Comprises all inputs and outputs (both elementary flows and intermediate product flows) recorded in a unit process and its related information.
*
* <p>Java class for TExchange complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="TExchange">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <choice minOccurs="0">
* <element name="inputGroup">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
* <minInclusive value="1"/>
* <maxInclusive value="5"/>
* </restriction>
* </simpleType>
* </element>
* <element name="outputGroup">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
* <minInclusive value="0"/>
* <maxInclusive value="4"/>
* </restriction>
* </simpleType>
* </element>
* </choice>
* <attribute name="number" use="required" type="{http://www.EcoInvent.org/EcoSpold01}TIndexNumber" />
* <attribute name="category" type="{http://www.EcoInvent.org/EcoSpold01}TCategoryName" />
* <attribute name="subCategory" type="{http://www.EcoInvent.org/EcoSpold01}TCategoryName" />
* <attribute name="localCategory" type="{http://www.EcoInvent.org/EcoSpold01}TCategoryName" />
* <attribute name="localSubCategory" type="{http://www.EcoInvent.org/EcoSpold01}TCategoryName" />
* <attribute name="CASNumber">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <length value="11"/>
* <pattern value="\d{6,6}-\d{2,2}-\d"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="name" use="required" type="{http://www.EcoInvent.org/EcoSpold01}TString80" />
* <attribute name="location" type="{http://www.EcoInvent.org/EcoSpold01}TRegionalCode" />
* <attribute name="unit" use="required" type="{http://www.EcoInvent.org/EcoSpold01}TUnit" />
* <attribute name="meanValue" use="required" type="{http://www.EcoInvent.org/EcoSpold01}TFloatNumber" />
* <attribute name="uncertaintyType">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
* <minInclusive value="0"/>
* <maxInclusive value="4"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute name="standardDeviation95" type="{http://www.EcoInvent.org/EcoSpold01}TFloatNumber" />
* <attribute name="formula" type="{http://www.EcoInvent.org/EcoSpold01}TString40" />
* <attribute name="referenceToSource" type="{http://www.EcoInvent.org/EcoSpold01}TIndexNumber" />
* <attribute name="pageNumbers" type="{http://www.EcoInvent.org/EcoSpold01}TString30" />
* <attribute name="generalComment" type="{http://www.EcoInvent.org/EcoSpold01}TString32000" />
* <attribute name="localName" type="{http://www.EcoInvent.org/EcoSpold01}TString80" />
* <attribute name="infrastructureProcess" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* <attribute name="minValue" type="{http://www.EcoInvent.org/EcoSpold01}TFloatNumber" />
* <attribute name="maxValue" type="{http://www.EcoInvent.org/EcoSpold01}TFloatNumber" />
* <attribute name="mostLikelyValue" type="{http://www.EcoInvent.org/EcoSpold01}TFloatNumber" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TExchange", propOrder = {
"inputGroup",
"outputGroup"
})
class Exchange
implements Serializable, IExchange
{
private final static long serialVersionUID = 1L;
protected Integer inputGroup;
protected Integer outputGroup;
@XmlAttribute(name = "number", required = true)
protected int number;
@XmlAttribute(name = "category")
protected String category;
@XmlAttribute(name = "subCategory")
protected String subCategory;
@XmlAttribute(name = "localCategory")
protected String localCategory;
@XmlAttribute(name = "localSubCategory")
protected String localSubCategory;
@XmlAttribute(name = "CASNumber")
protected String casNumber;
@XmlAttribute(name = "name", required = true)
protected String name;
@XmlAttribute(name = "location")
protected String location;
@XmlAttribute(name = "unit", required = true)
protected String unit;
@XmlAttribute(name = "meanValue", required = true)
protected double meanValue;
@XmlAttribute(name = "uncertaintyType")
protected Integer uncertaintyType;
@XmlAttribute(name = "standardDeviation95")
protected Double standardDeviation95;
@XmlAttribute(name = "formula")
protected String formula;
@XmlAttribute(name = "referenceToSource")
protected Integer referenceToSource;
@XmlAttribute(name = "pageNumbers")
protected String pageNumbers;
@XmlAttribute(name = "generalComment")
protected String generalComment;
@XmlAttribute(name = "localName")
protected String localName;
@XmlAttribute(name = "infrastructureProcess")
protected Boolean infrastructureProcess;
@XmlAttribute(name = "minValue")
protected Double minValue;
@XmlAttribute(name = "maxValue")
protected Double maxValue;
@XmlAttribute(name = "mostLikelyValue")
protected Double mostLikelyValue;
/**
* Gets the value of the inputGroup property.
*
* @return
* possible object is
* {@link Integer }
*
*/
@Override
public Integer getInputGroup() {
return inputGroup;
}
/**
* Sets the value of the inputGroup property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
@Override
public void setInputGroup(Integer value) {
this.inputGroup = value;
}
/**
* Gets the value of the outputGroup property.
*
* @return
* possible object is
* {@link Integer }
*
*/
@Override
public Integer getOutputGroup() {
return outputGroup;
}
/**
* Sets the value of the outputGroup property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
@Override
public void setOutputGroup(Integer value) {
this.outputGroup = value;
}
/**
* Gets the value of the number property.
*
*/
@Override
public int getNumber() {
return number;
}
/**
* Sets the value of the number property.
*
*/
@Override
public void setNumber(int value) {
this.number = value;
}
/**
* Gets the value of the category property.
*
* @return
* possible object is
* {@link String }
*
*/
@Override
public String getCategory() {
return category;
}
/**
* Sets the value of the category property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Override
public void setCategory(String value) {
this.category = value;
}
/**
* Gets the value of the subCategory property.
*
* @return
* possible object is
* {@link String }
*
*/
@Override
public String getSubCategory() {
return subCategory;
}
/**
* Sets the value of the subCategory property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Override
public void setSubCategory(String value) {
this.subCategory = value;
}
/**
* Gets the value of the localCategory property.
*
* @return
* possible object is
* {@link String }
*
*/
@Override
public String getLocalCategory() {
return localCategory;
}
/**
* Sets the value of the localCategory property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Override
public void setLocalCategory(String value) {
this.localCategory = value;
}
/**
* Gets the value of the localSubCategory property.
*
* @return
* possible object is
* {@link String }
*
*/
@Override
public String getLocalSubCategory() {
return localSubCategory;
}
/**
* Sets the value of the localSubCategory property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Override
public void setLocalSubCategory(String value) {
this.localSubCategory = value;
}
/**
* Gets the value of the casNumber property.
*
* @return
* possible object is
* {@link String }
*
*/
@Override
public String getCASNumber() {
return casNumber;
}
/**
* Sets the value of the casNumber property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Override
public void setCASNumber(String value) {
this.casNumber = value;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
@Override
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Override
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the location property.
*
* @return
* possible object is
* {@link String }
*
*/
@Override
public String getLocation() {
return location;
}
/**
* Sets the value of the location property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Override
public void setLocation(String value) {
this.location = value;
}
/**
* Gets the value of the unit property.
*
* @return
* possible object is
* {@link String }
*
*/
@Override
public String getUnit() {
return unit;
}
/**
* Sets the value of the unit property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Override
public void setUnit(String value) {
this.unit = value;
}
/**
* Gets the value of the meanValue property.
*
*/
@Override
public double getMeanValue() {
return meanValue;
}
/**
* Sets the value of the meanValue property.
*
*/
@Override
public void setMeanValue(double value) {
this.meanValue = value;
}
/**
* Gets the value of the uncertaintyType property.
*
* @return
* possible object is
* {@link Integer }
*
*/
@Override
public Integer getUncertaintyType() {
return uncertaintyType;
}
/**
* Sets the value of the uncertaintyType property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
@Override
public void setUncertaintyType(Integer value) {
this.uncertaintyType = value;
}
/**
* Gets the value of the standardDeviation95 property.
*
* @return
* possible object is
* {@link Double }
*
*/
@Override
public Double getStandardDeviation95() {
return standardDeviation95;
}
/**
* Sets the value of the standardDeviation95 property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
@Override
public void setStandardDeviation95(Double value) {
this.standardDeviation95 = value;
}
/**
* Gets the value of the formula property.
*
* @return
* possible object is
* {@link String }
*
*/
@Override
public String getFormula() {
return formula;
}
/**
* Sets the value of the formula property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Override
public void setFormula(String value) {
this.formula = value;
}
/**
* Gets the value of the referenceToSource property.
*
* @return
* possible object is
* {@link Integer }
*
*/
@Override
public Integer getReferenceToSource() {
return referenceToSource;
}
/**
* Sets the value of the referenceToSource property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
@Override
public void setReferenceToSource(Integer value) {
this.referenceToSource = value;
}
/**
* Gets the value of the pageNumbers property.
*
* @return
* possible object is
* {@link String }
*
*/
@Override
public String getPageNumbers() {
return pageNumbers;
}
/**
* Sets the value of the pageNumbers property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Override
public void setPageNumbers(String value) {
this.pageNumbers = value;
}
/**
* Gets the value of the generalComment property.
*
* @return
* possible object is
* {@link String }
*
*/
@Override
public String getGeneralComment() {
return generalComment;
}
/**
* Sets the value of the generalComment property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Override
public void setGeneralComment(String value) {
this.generalComment = value;
}
/**
* Gets the value of the localName property.
*
* @return
* possible object is
* {@link String }
*
*/
@Override
public String getLocalName() {
return localName;
}
/**
* Sets the value of the localName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Override
public void setLocalName(String value) {
this.localName = value;
}
/**
* Gets the value of the infrastructureProcess property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
@Override
public Boolean isInfrastructureProcess() {
return infrastructureProcess;
}
/**
* Sets the value of the infrastructureProcess property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
@Override
public void setInfrastructureProcess(Boolean value) {
this.infrastructureProcess = value;
}
/**
* Gets the value of the minValue property.
*
* @return
* possible object is
* {@link Double }
*
*/
@Override
public Double getMinValue() {
return minValue;
}
/**
* Sets the value of the minValue property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
@Override
public void setMinValue(Double value) {
this.minValue = value;
}
/**
* Gets the value of the maxValue property.
*
* @return
* possible object is
* {@link Double }
*
*/
@Override
public Double getMaxValue() {
return maxValue;
}
/**
* Sets the value of the maxValue property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
@Override
public void setMaxValue(Double value) {
this.maxValue = value;
}
/**
* Gets the value of the mostLikelyValue property.
*
* @return
* possible object is
* {@link Double }
*
*/
@Override
public Double getMostLikelyValue() {
return mostLikelyValue;
}
/**
* Sets the value of the mostLikelyValue property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
@Override
public void setMostLikelyValue(Double value) {
this.mostLikelyValue = value;
}
@Override
public boolean isElementaryFlow() {
if (inputGroup == null && outputGroup == null)
return true;
if (inputGroup != null && inputGroup == 4)
return true;
if (outputGroup != null && outputGroup == 4)
return true;
return false;
}
}