public void removeParentJob(Job parentJob){
  if (!parentJobs.contains(parentJob)) {
    throw new RuntimeException("Tried to remove job " + parentJob + " when it wasn't a parent");
  }
  boolean removed=parentJobs.remove(parentJob);
  if (!removed) {
    throw new RuntimeException("Shouldn't happen!");
  }
}

public void removeParentJob ( Job parentJob ) { if ( ! parentJobs . contains ( parentJob ) ) { throw new RuntimeException ( "Tried to remove job " + parentJob + " when it wasn't a parent" ) ; } boolean removed = parentJobs . remove ( parentJob ) ; if ( ! removed ) { throw new RuntimeException ( "Shouldn't happen!" ) ; } }
removes a parent job from this job ' s set of parent jobs . this should be called when the parent job has finished running .
