Beispiel #1
0
 /**
  * Utility function that sends an <code>ENGINE_RESUMED</code> event to all <code>EngineListeners
  * </code> registered with this <code>Engine</code>. Called by <code>dispatchSpeechEvent</code>.
  *
  * @param event the <code>ENGINE_RESUMED</code> event
  * @see #postEngineResumed
  * @see #dispatchSpeechEvent
  */
 public void fireEngineResumed(EngineEvent event) {
   if (engineListeners == null) {
     return;
   }
   Iterator<EngineListener> iterator = engineListeners.iterator();
   while (iterator.hasNext()) {
     EngineListener el = (EngineListener) iterator.next();
     el.engineResumed(event);
   }
 }
Beispiel #2
0
 /**
  * Utility function that sends a <code>ENGINE_DEALLOCATING_RESOURCES</code> event to all <code>
  * EngineListeners</code> registered with this <code>Engine</code>. Called by <code>
  * dispatchSpeechEvent</code>.
  *
  * @param event the <code>ENGINE_DEALLOCATING_RESOURCES</code> event
  * @see #postEngineDeallocatingResources
  * @see #dispatchSpeechEvent
  */
 public void fireEngineDeallocatingResources(EngineEvent event) {
   if (engineListeners == null) {
     return;
   }
   Iterator<EngineListener> iterator = engineListeners.iterator();
   while (iterator.hasNext()) {
     EngineListener el = (EngineListener) iterator.next();
     el.engineDeallocatingResources(event);
   }
 }