Search in sources :

Example 1 with AssociateInteraction

use of uk.ac.ed.ph.jqtiplus.node.item.interaction.AssociateInteraction in project OpenOLAT by OpenOLAT.

the class AssociateInteractionArchive method getMaxAssociations.

@Override
protected int getMaxAssociations(Interaction interaction) {
    AssociateInteraction associateInteraction = (AssociateInteraction) interaction;
    int max = associateInteraction.getMaxAssociations();
    if (max == 0) {
        max = associateInteraction.getSimpleAssociableChoices().size() * (associateInteraction.getSimpleAssociableChoices().size() - 1);
    }
    return max;
}
Also used : AssociateInteraction(uk.ac.ed.ph.jqtiplus.node.item.interaction.AssociateInteraction)

Example 2 with AssociateInteraction

use of uk.ac.ed.ph.jqtiplus.node.item.interaction.AssociateInteraction in project openolat by klemens.

the class AssociateInteractionArchive method getMaxAssociations.

@Override
protected int getMaxAssociations(Interaction interaction) {
    AssociateInteraction associateInteraction = (AssociateInteraction) interaction;
    int max = associateInteraction.getMaxAssociations();
    if (max == 0) {
        max = associateInteraction.getSimpleAssociableChoices().size() * (associateInteraction.getSimpleAssociableChoices().size() - 1);
    }
    return max;
}
Also used : AssociateInteraction(uk.ac.ed.ph.jqtiplus.node.item.interaction.AssociateInteraction)

Aggregations

AssociateInteraction (uk.ac.ed.ph.jqtiplus.node.item.interaction.AssociateInteraction)2