use of uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.SampleProgressStep in project miso-lims by miso-lims.
the class BarcodableProgressStepFactory method makeProgressStep.
private ProgressStep makeProgressStep(BarcodableView view) throws IOException {
switch(view.getId().getTargetType()) {
case POOL:
PoolProgressStep poolStep = new PoolProgressStep();
poolStep.setInput(barcodableViewService.getEntity(view));
return poolStep;
case CONTAINER:
SequencerPartitionContainerProgressStep spcStep = new SequencerPartitionContainerProgressStep();
spcStep.setInput(barcodableViewService.getEntity(view));
return spcStep;
case CONTAINER_MODEL:
SequencingContainerModelProgressStep modelStep = new SequencingContainerModelProgressStep();
modelStep.setInput(barcodableViewService.getEntity(view));
return modelStep;
case SAMPLE:
SampleProgressStep sampleStep = new SampleProgressStep();
sampleStep.setInput(barcodableViewService.getEntity(view));
return sampleStep;
case BOX:
BoxProgressStep boxStep = new BoxProgressStep();
boxStep.setInput(barcodableViewService.getEntity(view));
return boxStep;
default:
throw new UnsupportedOperationException("Unsupported entity type");
}
}
use of uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.SampleProgressStep in project miso-lims by miso-lims.
the class HibernateProgressDaoIT method makeSampleProgressStep.
private SampleProgressStep makeSampleProgressStep(long sampleId, int stepNumber) {
SampleProgressStep step = new SampleProgressStep();
Sample sample = new SampleImpl();
sample.setId(sampleId);
step.setInput(sample);
step.setStepNumber(stepNumber);
return step;
}
Aggregations