(Product product)
| 28 | } |
| 29 | |
| 30 | public static void removeUnit(Product product) { |
| 31 | for (Map.Entry<Location, Unit> entry: locationMap.entrySet()){ |
| 32 | // if (SimpleStrategy.works()) |
| 33 | //get lock on entry.getKey() |
| 34 | if(entry.getValue()!=null && product.id.equals(entry.getValue().productId)){ |
| 35 | locationMap.remove(entry.getKey()); |
| 36 | } |
| 37 | //release lock |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | public static Map<Location, Unit> getShelvesStatus(){ |
| 42 | return locationMap; |
no test coverage detected