game-ai/src/main/java/com/jzy/game/ai/btree/decorator/SemaphoreGuard.java
/**
	 * Acquires the semaphore. Also, the first execution of this method retrieves
	 * the semaphore by name and stores it locally.
	 * <p>
	 * This method is called when the task is entered.
	 */
Acquires the semaphore. Also, the first execution of this method retrieves
the semaphore by name and stores it locally.

This method is called when the task is entered.
Acquires the semaphore . Also the first execution of this method retrieves the semaphore by name and stores it locally . This method is called when the task is entered .
@Override
	public void start() {
		if (semaphore == null) {
			semaphore = NonBlockingSemaphoreRepository.getSemaphore(name);
		}
		semaphoreAcquired = semaphore.acquire();
		super.start();
	}
@ Override public void start ( ) { if ( semaphore == null ) { semaphore = NonBlockingSemaphoreRepository . getSemaphore ( name ) ; } semaphoreAcquired = semaphore . acquire ( ) ; super . start ( ) ; }
Acquires the semaphore.
Acquires the semaphore .