<?xml version='1.0' encoding='utf-8'?>
<program_description>
    <program provider="PUT" name="DEMATEL_relation" version="1.0.0" displayName="DEMATEL_relation"/>
    <documentation>
        <description>Computes prominences and relations for given alternatives and effects (in and out) using DEMATEL method. Those vectors are the results of step 4, and also output of the module 'DEMATEL_influences'.
For more details please refer to https://doi.org/10.1155/2018/3696457, from step 5.</description>
        <contact><![CDATA[Witold Kupś <witkups@gmail.com>]]></contact>
        <url>https://github.com/Azbesciak/DecisionDeck</url>
    </documentation>
    <parameters>

        <input id="input1" name="alternatives" displayName="alternatives" isoptional="0">
            <documentation>
                <description>Definitions of alternatives.</description>
            </documentation>
            <xmcda tag="alternatives"/>
        </input>

        <input id="input2" name="total_influence" displayName="matrix of total alternatives influence"  isoptional="0">
            <documentation>
                <description>Total influence of each alternative on the other</description>
            </documentation>
            <xmcda tag="alternativesComparisons"/>
        </input>

        <input id="input3" name="out_effect" displayName="out effect (R)" isoptional="0">
            <documentation>
                <description>Sum (by row) of direct and indirect effects of criterion/alternative/factor
                    on the other criteria/alternatives/factors.
                    This is one of the DEMATEL step 4 results.
                </description>
            </documentation>
            <xmcda tag="alternativesValues"/>
        </input>

        <input id="input4" name="in_effect" displayName="in effect (C)" isoptional="0">
            <documentation>
                <description>Sum (by column) of direct and indirect effects of criterion/alternative/factor
                    received from other criteria/alternatives/factors.
                    This is one of the DEMATEL step 4 results.
                </description>
            </documentation>
            <xmcda tag="alternativesValues"/>
        </input>

        <input id="input5" name="alpha" displayName="alpha" isoptional="1">
            <documentation>
                <description>Threshold of minor relations elimination - required value with ID 'alpha'</description>
            </documentation>
            <xmcda tag="methodParameters"><![CDATA[
    <methodParameters>
        <parameter id="alpha">
            <value>
              <real>%1</real>
            </value>
        </parameter>
    </methodParameters>
]]></xmcda>
            <gui status="preferGUI">
                <entry id="%1" type="float" displayName="alpha">
                    <constraint>
                        <description>A numeric value alpha, with alpha≥0</description>
                        <code><![CDATA[ %1 >= 0 ]]></code>
                    </constraint>
                </entry>
            </gui>
        </input>

        <output id="output3" name="relationship" displayName="alternatives influence relationships">
            <documentation>
                <description>Directed influences between alternatives with threshold applied</description>
            </documentation>
            <xmcda tag="alternativesComparisons"/>
        </output>

        <output id="output1" name="prominence" displayName="prominence (R+C)">
            <documentation>
                <description>Overall influence of factors</description>
            </documentation>
            <xmcda tag="alternativesValues"/>
        </output>

        <output id="output2" name="relation" displayName="relation (R-C)">
            <documentation>
                <description>Causal character of factors</description>
            </documentation>
            <xmcda tag="alternativesValues"/>
        </output>

        <output id="output4" name="messages" displayName="messages">
            <documentation>
                <description>Messages or errors generated by this module.</description>
            </documentation>
            <xmcda tag="methodMessages"/>
        </output>
    </parameters>
</program_description>
