Search in sources :

Example 1 with SampleProgressStep

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");
    }
}
Also used : BoxProgressStep(uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.BoxProgressStep) SampleProgressStep(uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.SampleProgressStep) SequencingContainerModelProgressStep(uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.SequencingContainerModelProgressStep) SequencerPartitionContainerProgressStep(uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.SequencerPartitionContainerProgressStep) PoolProgressStep(uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.PoolProgressStep)

Example 2 with SampleProgressStep

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;
}
Also used : SampleProgressStep(uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.SampleProgressStep) Sample(uk.ac.bbsrc.tgac.miso.core.data.Sample) SampleImpl(uk.ac.bbsrc.tgac.miso.core.data.impl.SampleImpl)

Aggregations

SampleProgressStep (uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.SampleProgressStep)2 Sample (uk.ac.bbsrc.tgac.miso.core.data.Sample)1 SampleImpl (uk.ac.bbsrc.tgac.miso.core.data.impl.SampleImpl)1 BoxProgressStep (uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.BoxProgressStep)1 PoolProgressStep (uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.PoolProgressStep)1 SequencerPartitionContainerProgressStep (uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.SequencerPartitionContainerProgressStep)1 SequencingContainerModelProgressStep (uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.SequencingContainerModelProgressStep)1