|
|
@ -1,12 +1,10 @@ |
|
|
|
package com.dreamworks.boditech.driver.consumable; |
|
|
|
import com.dreamworks.boditech.driver.Device; |
|
|
|
import com.dreamworks.boditech.driver.entity.ParamBufferTubeUpdateByBox; |
|
|
|
import com.dreamworks.boditech.entity.IdChip; |
|
|
|
import com.dreamworks.boditech.entity.Project; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Objects; |
|
|
|
|
|
|
|
public class CsmBufferTubeManager { |
|
|
|
// device instance |
|
|
|
private final Device device; |
|
|
@ -24,13 +22,12 @@ public class CsmBufferTubeManager { |
|
|
|
for ( int i=0; i<6; i++ ) { |
|
|
|
CsmBufferTubeBox box = new CsmBufferTubeBox(); |
|
|
|
box.index = i; |
|
|
|
box.status = CsmBufferTubeBox.STATUS_NOT_LOADED; |
|
|
|
this.bufferTubeBoxes.add(box); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// get all buffer tube boxes |
|
|
|
public List<CsmBufferTubeBox> getAll() { |
|
|
|
public List<CsmBufferTubeBox> getAllBoxes() { |
|
|
|
return this.bufferTubeBoxes; |
|
|
|
} |
|
|
|
|
|
|
@ -57,12 +54,10 @@ public class CsmBufferTubeManager { |
|
|
|
} |
|
|
|
|
|
|
|
CsmBufferTubeBox box = this.bufferTubeBoxes.get(index); |
|
|
|
box.projectName = project.name; |
|
|
|
box.projectId = project.id; |
|
|
|
box.projectColor = project.color; |
|
|
|
box.setProject(project); |
|
|
|
box.tubeAmount = 25; |
|
|
|
box.lotCode = lotCode; |
|
|
|
box.isLoaded = true; |
|
|
|
box.status = CsmBufferTubeBox.STATUS_LOADED; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|