implemented removal of old routes when new routes are searched

This commit is contained in:
Stephan Richter
2020-12-04 11:55:38 +01:00
parent e2e983ec44
commit 33d596f5c3
7 changed files with 23 additions and 12 deletions

View File

@@ -74,11 +74,12 @@ public class ActionList extends Action implements Iterable<Action>{
}
if (exists) {
LOG.debug("action not added.");
} else {
} else { // bestehemde Aktion der neuen Liste zuweisen
this.add(otherAction);
LOG.debug("action added.");
}
}
actions.forEach(action -> other.removeChild(action)); // zugewiesene Aktionen von alter Liste löschen
}
public boolean drop(Action action) {