code: public boolean markInactive() {
  		if (TaskSlotState.ACTIVE == state || TaskSlotState.ALLOCATED == state) {
  			state = TaskSlotState.ALLOCATED;
  
  			return true;
  		} else {
  			return false;
  		}
  	}
docs: Mark the slot as inactive/allocated. A slot can only be marked as inactive/allocated if it's
  in state allocated or active.
  
  @return True if the new state of the slot is allocated; otherwise false