Version: | 2.0 |
---|---|
Provider: | PyXMCDA |
SOAP service’s name: | |
csvToXMCDA-criteriaThresholds-PyXMCDA (see SOAP requests for details) |
Transforms a file containing criteria discrimination thresholds and preference directions from a comma-separated values (CSV) file to three XMCDA compliant files, containing resp. the criteria ids, their preference direction and the related discrimination thresholds.
Contact: Sébastien Bigaret (sebastien.bigaret@telecom-bretagne.eu)
Web page: https://gitlab.com/sbigaret/ws-pyxmcda
(For outputs, see below)
A csv with criteria’ scales and thresholds.
The labels of the separation thresholds (“ind”, “pref”, “veto”) can be chosen freely in order to be in accordance with the selected outranking method. Further separation thresholds can also be added. The last line always represents the preferenceDirection; its label must be “preferenceDirection”.
The separator used in csv will be determined by examing the file (this means that it can be different than a comma: a semicolon, a tab or space character, etc.).
Thresholds values should be float; both decimal separator ‘.’ and ‘,’ are supported. If a threshold value is left empty, the corresponding combination (criterion id, separation thresholds) is not present in the XMCDA output. Same for “preferenceDirection”: the corresponding tag ‘scale’ is present in the XMCDA output only if the preferenceDirection is supplied.
The input value should be a valid XMCDA document whose main tag is <other>
.
Parameters of the method
The input value should be a valid XMCDA document whose main tag is <programParameters>
.
It must have the following form:
<programParameters>
<parameter id="csv_delimiter">
<values>
<value>
<label>%1</label>
</value>
</values>
</parameter>
<parameter id="default_prefix">
<values>
<value>
<label>%2</label>
</value>
</values>
</parameter>
<parameter id="name_in_id">
<values>
<value>
<boolean>%3</boolean>
</value>
</values>
</parameter>
</programParameters>
where:
%1 is a parameter named “CSV delimiter”. This is a string, and the value should conform to the following constraint: One character maximum. More formally, the constraint is:
%1.length() < 2
%2 is a parameter named “Default content”. It can have the following values:
float
: floatinteger
: integerThe default value is float.
%3 is a parameter named “First line”. It can have the following values:
false
: idtrue
: id (name)The default value is id_and_name.
The equivalent XMCDA file containing the criteria declared in the csv.
The returned value is a XMCDA document whose main tag is <criteria>
.
The equivalent XMCDA file containing the preference directions of the criteria declared in the csv.
The returned value is a XMCDA document whose main tag is <criteriaScales>
.
The equivalent XMCDA file containing the discrimination thresholds.
The returned value is a XMCDA document whose main tag is <criteriaThresholds>
.
Status messages.
The returned value is a XMCDA document whose main tag is <programExecutionResult>
.