<?xml version='1.0' encoding='utf-8'?>
<program_description>
	<program provider="URV" name="defuzzificationCOM" version="1.0" displayName="defuzzificationCOM" />
	<documentation>
		<description>Implementation of a defuzzification of set of fuzzy labels according to the COM method (Center of Maximum). The method consists in returning the point in the center of the interval where the membership function has its maximum value.
Given a set of alternatives that are associated to a linguistic fuzzy term (alternativeValues file) a translation to the corresponding numerical value is made.</description>
		<contact><![CDATA[Aida Valls <aida.valls@urv.cat>]]></contact>
	</documentation>
	<parameters>

		<input id="input0" name="linguisticScores" displayName="linguistic scores" isoptional="0">
			<documentation>
				<description>Linguistic label describing the performance of each alternative</description>
			</documentation>
			<xmcda tag="alternativesValues"><![CDATA[
		  
			<alternativesValues>
			  <alternativeValue>
                                <alternativeID>
                                        identifier
                                </alernativeID>
				<value>
					<label> ... </label>
				</value>
			  </alternativeValue>
			
                          [... list of other alternatives with id and label ]

			</alternativesValues>
		  
		  ]]></xmcda>
		</input>

		<input id="input1" name="fuzzyNumbers" displayName="fuzzy numbers" isoptional="0">
			<documentation>
				<description>Definition of a fuzzy variable as a list of labels (trapezoidal)</description>
			</documentation>
			<xmcda tag="categoriesValues"><![CDATA[
                    
			<categoriesValue>
			<categoryValue>
			   <values>
				<value id="xxx" name="xxxxxxxx">
						<fuzzyNumber>
							<trapezoidal>
								<point1>
									<abscissa>[...]</abscissa>
									<ordinate>[...]</ordinate>
								</point1>
								[...]
								<point4>
									[...]
								</point4>
							</trapezoidal>
						</fuzzyNumber>
				</value>
			    	[...]
        	            </values>
			</categoryValue>
			</categoriesValue>
                    
                     ]]></xmcda>
		</input>

		<output id="output0" name="alternativesValues" displayName="numerical values">
			<documentation>
				<description>Numerical score for each alternative according to the input fuzzy label.</description>
			</documentation>
			<xmcda tag="alternativesValues" />
		</output>

		<output id="output1" name="messages" displayName="messages">
			<documentation>
				<description>A status message.</description>
			</documentation>
			<xmcda tag="methodMessages" />
		</output>

	</parameters>
</program_description>
