MCPcopy Create free account
hub / github.com/Neop/mudmap2 / connectChild

Method connectChild

src/main/java/mudmap2/backend/Place.java:342–350  ·  view source on GitHub ↗

Connects a place as child, this place will be added to the child as parent @param place

(final Place place)

Source from the content-addressed store, hash-verified

340 * @param place
341 */
342 public void connectChild(final Place place) {
343 if (place != null) {
344 children.add(place);
345 place.parents.add(this);
346 callWorldChangeListeners();
347 } else {
348 throw new NullPointerException();
349 }
350 }
351
352 /**
353 * Removes a parent - child connection

Callers 10

testConnectChildMethod · 0.95
testRemoveChildMethod · 0.95
testGetChildrenMethod · 0.95
testGetParentsMethod · 0.95
testRemoveConnectionsMethod · 0.95
testReadWriteFileMethod · 0.95
testReadWriteFileMethod · 0.95
pasteMethod · 0.95
readFileMethod · 0.95
actionPerformedMethod · 0.80

Calls 1

Tested by 7

testConnectChildMethod · 0.76
testRemoveChildMethod · 0.76
testGetChildrenMethod · 0.76
testGetParentsMethod · 0.76
testRemoveConnectionsMethod · 0.76
testReadWriteFileMethod · 0.76
testReadWriteFileMethod · 0.76