Example #1
0
 /**
  * Returns true if at least one output parameter has a value.
  *
  * @return True if we have at least one output parameter value;
  */
 private boolean hasSomeOrAllOutputParameterValues() {
   InstrumentType instrumentType = getInstrumentType();
   if (instrumentType.isRepeatable()) {
     return haveSomeOrAllRepeatingOutputParameterValues();
   } else {
     return haveSomeOrAllNonRepeatableOutputParameterValues();
   }
 }
Example #2
0
 private boolean isEnableNextLink(WizardForm form) {
   InstrumentType instrumentType = activeInstrumentRunService.getInstrumentType();
   if (instrumentType.isRepeatable()) {
     // minimum is having the expected count of repeatable measures
     int currentCount = activeInstrumentRunService.getInstrumentRun().getValidMeasureCount();
     int expectedCount =
         instrumentType.getExpectedMeasureCount(activeInstrumentRunService.getParticipant());
     boolean skipped = ((InstrumentOutputParameterPanel) get(getContentId())).isSkipMeasurement();
     if (currentCount < expectedCount && !skipped) {
       return false;
     } else {
       return true;
     }
   } else {
     return true;
   }
 }