code: public boolean isAllocated(int index, JobID jobId, AllocationID allocationId) {
  		TaskSlot taskSlot = taskSlots.get(index);
  
  		return taskSlot.isAllocated(jobId, allocationId);
  	}
docs: Check whether the slot for the given index is allocated for the given job and allocation id.
  
  @param index of the task slot
  @param jobId for which the task slot should be allocated
  @param allocationId which should match the task slot's allocation id
  @return True if the given task slot is allocated for the given job and allocation id