コード例 #1
0
 protected Object[] getDescriptionArgs(
     InstrumentParameter checkedParameter, ActiveInstrumentRunService activeRunService) {
   InstrumentParameter otherParameter =
       activeRunService.getInstrumentType().getInstrumentParameter(parameterCode);
   if (percent != null && offset == null) {
     return new Object[] {checkedParameter.getLabel(), otherParameter.getLabel(), percent};
   } else if (percent == null && offset != null) {
     return new Object[] {
       checkedParameter.getLabel(),
       otherParameter.getLabel(),
       offset,
       checkedParameter.getMeasurementUnit()
     };
   } else {
     return new Object[] {
       checkedParameter.getLabel(),
       otherParameter.getLabel(),
       percent,
       offset,
       checkedParameter.getMeasurementUnit()
     };
   }
 }
コード例 #2
0
 protected Object[] getDescriptionArgs(
     InstrumentParameter checkedParameter, ActiveInstrumentRunService activeRunService) {
   InstrumentParameter otherParameter =
       activeRunService.getInstrumentType().getInstrumentParameter(parameterCode);
   return new Object[] {checkedParameter.getLabel(), otherParameter.getLabel()};
 }