Search in sources :

Example 1 with PoolProgressStep

use of uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.PoolProgressStep in project miso-lims by miso-lims.

the class DefaultWorkflowManagerTest method makePoolProgressStep.

private PoolProgressStep makePoolProgressStep(long id) {
    Pool pool = new PoolImpl();
    pool.setId(id);
    PoolProgressStep step = new PoolProgressStep();
    step.setInput(pool);
    return step;
}
Also used : Pool(uk.ac.bbsrc.tgac.miso.core.data.Pool) PoolImpl(uk.ac.bbsrc.tgac.miso.core.data.impl.PoolImpl) PoolProgressStep(uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.PoolProgressStep)

Example 2 with PoolProgressStep

use of uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.PoolProgressStep 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 3 with PoolProgressStep

use of uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.PoolProgressStep in project miso-lims by miso-lims.

the class HibernateProgressDaoIT method makePoolProgressStep.

private PoolProgressStep makePoolProgressStep(long poolId, int stepNumber) {
    PoolProgressStep step = new PoolProgressStep();
    Pool pool = new PoolImpl();
    pool.setId(poolId);
    step.setInput(pool);
    step.setStepNumber(stepNumber);
    return step;
}
Also used : Pool(uk.ac.bbsrc.tgac.miso.core.data.Pool) PoolImpl(uk.ac.bbsrc.tgac.miso.core.data.impl.PoolImpl) PoolProgressStep(uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.PoolProgressStep)

Aggregations

PoolProgressStep (uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.PoolProgressStep)3 Pool (uk.ac.bbsrc.tgac.miso.core.data.Pool)2 PoolImpl (uk.ac.bbsrc.tgac.miso.core.data.impl.PoolImpl)2 BoxProgressStep (uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.BoxProgressStep)1 SampleProgressStep (uk.ac.bbsrc.tgac.miso.core.data.workflow.impl.SampleProgressStep)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