Browse Source

增加其他类型试管支持

master
sige 2 years ago
parent
commit
9f916051f8
  1. 12
      src/main/java/com/dreamworks/boditech/driver/consumable/CsmSampleTube.java

12
src/main/java/com/dreamworks/boditech/driver/consumable/CsmSampleTube.java

@ -3,6 +3,12 @@ import com.dreamworks.boditech.driver.Device;
import java.util.Objects;
public class CsmSampleTube {
// tube type : Epp 1.5
public static final String TYPE_MINI = "Mini";
// tube type : Epp 1.5
public static final String TYPE_C_TIP = "CTip";
// tube type : Epp 1.5
public static final String TYPE_IMPROVET01 = "ImproveT01";
// tube type : Epp 1.5
public static final String TYPE_EPP15 = "Epp1.5";
// tube type : Epp 0.5
public static final String TYPE_EPP05 = "Epp0.5";
@ -59,6 +65,12 @@ public class CsmSampleTube {
return this.device.getLocationByName("regularEpp0.5mlDepth");
} else if (CsmSampleTube.TYPE_EPP15.equals(this.type)) {
return this.device.getLocationByName("regularEpp1.5mlDepth");
} else if (CsmSampleTube.TYPE_IMPROVET01.equals(this.type)) {
return this.device.getLocationByName("regularImproveT01Depth");
} else if ( CsmSampleTube.TYPE_C_TIP.equals(this.type) ) {
return this.device.getLocationByName("regularCTipDepth");
} else if ( CsmSampleTube.TYPE_MINI.equals(this.type) ) {
return this.device.getLocationByName("regularMiniDepth");
} else {
throw new RuntimeException("unknown tube type " + this.type);
}

Loading…
Cancel
Save