public void addSuccessor(Task successor) { this.successors.put(successor.getID(), successor); }
public void addChild(Task child) { this.children.put(child.getID(), child); }
public void addPredecessor(Task predecessor) { this.predecessors.put(predecessor.getID(), predecessor); }