to set the data in a location @param location "where" to store the tuples @param data the tuples to store
(String location, String partID, Collection<Tuple> data)
| 318 | * @param data the tuples to store |
| 319 | */ |
| 320 | private void setInternal(String location, String partID, Collection<Tuple> data) { |
| 321 | Parts parts = locationToData.get(location); |
| 322 | if (partID == null) { |
| 323 | if (parts == null) { |
| 324 | partID = "mock"; |
| 325 | } else { |
| 326 | throw new RuntimeException("Can not set location " + location + " twice"); |
| 327 | } |
| 328 | } |
| 329 | if (parts == null) { |
| 330 | parts = new Parts(location); |
| 331 | locationToData.put(location, parts); |
| 332 | } |
| 333 | parts.set(partID, data); |
| 334 | } |
| 335 | |
| 336 | /** |
| 337 | * to set the data in a location |
no test coverage detected