Link samples table to GUI events
This commit is contained in:
@@ -158,6 +158,17 @@ public class BasePlate extends DeviceBase {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Sample getSampleByName(String name) {
|
||||
try{
|
||||
Puck p = getPuckByName(name.substring(0,2));
|
||||
if (p!=null){
|
||||
return p.getSamples()[Integer.valueOf(name.substring(2,3))-1];
|
||||
}
|
||||
} catch (Exception ex){
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void clearId(String id) {
|
||||
for (Device d : getChildren()) {
|
||||
if (d instanceof Puck){
|
||||
|
||||
Reference in New Issue
Block a user