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 id="..." [...]>
                <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 <programParameters>. It must have the following form:

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

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>.


messages

A list of messages generated by the algorithm.

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


Original xml description