Search in sources :

Example 1 with GraphicAssociateInteraction

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

the class GraphicAssociateInteractionArchive method getMaxAssociations.

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

Example 2 with GraphicAssociateInteraction

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

the class GraphicAssociateInteractionArchive method getMaxAssociations.

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

Aggregations

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