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;
}
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;
}
Aggregations