Decision Deck project

diviz software

Using diviz: Developer's corner:

XMCDA standard

XMCDA web services

Frozen initiatives



randomAlternatives

Provider:PyXMCDA
Version:1.0

Description

-Contact: Thomas Veneziano (thomas.veneziano@uni.lu)

This web service allows to create a simple list of alternative by simply providing the desired number of alternatives, or a list of alternatives names.

Inputs

nbAlternatives

Description:

Indicates the desired number of alternatives. It must be a strict positive integer.

GUI information:

-Status: define parameter value via XMCDA file or input by hand, by default via input by hand.

-Name: nbAlternatives

-Constraint description: The value should be a positive integer.

-Default value: 2


alternativesPrefix

Description:

Indicates the desired prefix for the name of the alternatives. If not provided, alternatives will be called a1, a2, ... If provided, alternatives will be called prefix1, prefix2, ... Note that it will only be used if you provide a number of alternatives.

XMCDA related:

-Tag: methodParameters

-Code:

<methodParameters>
    <parameter
         name="alternativesPrefix"><!-- REQUIRED  -->
        <value>
            <label>%1</label>
        </value>
    </parameter>
</methodParameters>

GUI information:

-Status: define parameter value via XMCDA file or input by hand, by default via input by hand.

-Name: alternativesPrefix

-Default value: a

alternativesNames

-Optional: yes, enabled by default

Description:

Indicates a list of alternatives names. When supplied, the service ignores parameters nbAlternatives and alternativesPrefix

XMCDA related:

-Tag: methodParameters

-Code:

<methodParameters>
    <parameters
         name="alternativesNames"><!-- REQUIRED  -->
        <parameter><value>
            <label>[..]</label>
        </value></parameter>
        [..]
    </parameter>
</methodParameters>

Outputs

messages

Description:

A list of messages generated by the algorithm.

XMCDA related:

-Tag: methodMessages

alternatives

Description:

A list of alternatives with active tags.

XMCDA related:

-Tag: alternatives

For further technical details on the web service underlying this program, have a look at its documentation here.