Provider: | PyXMCDA |
---|---|
Version: | 2.0 |
Transforms a file containing a performance table from a comma-separated values (CSV) file to three XMCDA compliant files, containing the corresponding criteria ids, alternatives’ ids and the performance table.
(For outputs, see below)
The performance table as a CSV file.
Example:
,cost,risk,employment,connection a11,17537,28.3,34.8,2.33 a03,16973,29,34.9,2.66
The first column contains the criteria’ ids. Additionally, the alternatives’ names are also extracted when the cells are formatted like id (name). Set the parameter “First column” to “id” to deactivate the extraction of alternatives’ names.
Then one line per alternative, with their ids and names derived from the 1st cell (just like criteria’ ids, see above) and the rest being the performance of each alternative on the criteria.
By default the values are supposed to be float numbers. This can be changed using the parameter “Default content”. It is possible to specify the type of a value by prepending it with a prefix:
Example:
,cost,risky,color,connection
a11,17537,boolean:true,string:red,2.33
a03,16973,boolean:false,string:blue.na:
Parameters of the method
Parameter values can be defined via the GUI or the XMCDA file, by default via GUI.
Name: CSV delimiter
Indicates the delimiter to use. Leave blank for auto-detection. It is especially handful when the auto-detection fails to determine the csv delimiter.
Name: Default content
.
Name: First column
Content of the first column.
Tag: programParameters
Code:
<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>
The equivalent alternative ids.
The equivalent criteria ids.
The equivalent performances.
Status messages.
For further technical details on the web service underlying this program, have a look at its documentation here.