public boolean isBoxBigEnough(BoxProgressStep step) { return step.getInput().getFreeCount() >= numAliquots; }
@Override public void processInput(BoxProgressStep step) { if (step.getInput().getFreeCount() >= 1) { boxStep = step; } else { error = String.format("Box '%s' is full", step.getInput().getAlias()); } }
@Override public void processInput(BoxProgressStep step) { if (isBoxBigEnough(step)) { boxStep = step; } else { error = String.format("Box '%s' does not have enough space for %d Aliquots (Box only has %d free spaces)", step.getInput().getAlias(), numAliquots, step.getInput().getFreeCount()); } }