code: public boolean markActive() {
  		if (TaskSlotState.ALLOCATED == state || TaskSlotState.ACTIVE == state) {
  			state = TaskSlotState.ACTIVE;
  
  			return true;
  		} else {
  			return false;
  		}
  	}
docs: Mark this slot as active. A slot can only be marked active if it's in state allocated.
  
  <p>The method returns true if the slot was set to active. Otherwise it returns false.
  
  @return True if the new state of the slot is active; otherwise false