randomAlternativesRanks

Version:1.0
Provider:RXMCDA
SOAP service’s name:
 randomAlternativesRanks-RXMCDA (see SOAP requests for details)

Description

Generates random (uniformly distributed) ranks of alternatives.

Contact: Patrick Meyer (patrick.meyer@telecom-bretagne.eu) and Helene Schmitz

Inputs

(For outputs, see below)

alternatives

A list of alternatives. Alternatives can be activated or desactivated via the <active> tag (true or false). By default (no <active> tag), alternatives are considered as active.

The input value should be a valid XMCDA document whose main tag is <alternatives>. It must have the following form:

<alternatives>
    <alternative>
        <active>[...]</active>
        [...]
    </alternative>
    [...]
</alternatives>

seed (optional)

The seed for the random numbers generator (integer).

The input value should be a valid XMCDA document whose main tag is <methodParameters>. It must have the following form:

<methodParameters>
    <parameter
         name="seed"> <!-- REQUIRED  -->
        <value>
            <integer>%1</integer>
        </value>
    </parameter>
</methodParameters>

where:

  • %1 is a parameter named “seed”. This is a int, and the value should conform to the following constraint: An integer value.. More formally, the constraint is:

    %1 > 0
    

    The default value is 1.


Outputs

alternativesRanks

The ranks of the alternatives.

The returned value is a XMCDA document whose main tag is <alternativesValues>. It has the following form:

<alternativesValues mcdaConcept="alternativesRanks">
    <alternativeValue>
        [...]
    </alternativeValue>
    [...]
</alternativesValues>

messages

A list of messages generated by the algorithm.

The returned value is a XMCDA document whose main tag is <methodMessages>.


Original xml description