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