Beispiel #1
0
        public void  NewProperties(PropertySheet propertySheet)
        {
            _decoder  = (Decoder)propertySheet.GetComponent(PropDecoder);
            _monitors = propertySheet.GetComponentList <IMonitor>(PropMonitors);

            _name = propertySheet.InstanceName;
        }
        public override void NewProperties(PropertySheet ps)
        {
            base.NewProperties(ps);

            _maxBufferSize = ps.GetInt(PropBufferSize);
            _waitIfEmpty   = ps.GetBoolean(PropWaitIfEmpty);

            if (_waitIfEmpty) // if false we don't need the value
            {
                _waitTime = ps.GetInt(PropWaitTimeMs);
            }

            _dataListeners = ps.GetComponentList <IDataListener>(DataListeners);
        }
Beispiel #3
0
        /*
         * /// (non-Javadoc)
         *
         * /// @see edu.cmu.sphinx.util.props.Configurable#newProperties(edu.cmu.sphinx.util.props.PropertySheet)
         */
        public void NewProperties(PropertySheet ps)
        {
            cm = ConfigurationManagerUtils.GetPropertyManager(ps);

            skip        = ps.GetInt(PROP_SKIP);
            utteranceId = ps.GetInt(PROP_COUNT);
            if (utteranceId <= 0)
            {
                utteranceId = Integer.MAX_VALUE;
            }

            whichBatch            = ps.GetInt(PROP_WHICH_BATCH);
            totalBatches          = ps.GetInt(PROP_TOTAL_BATCHES);
            usePooledBatchManager = ps.GetBoolean(PROP_USE_POOLED_BATCH_MANAGER);

            recognizer          = (Recognizer)ps.GetComponent(PROP_RECOGNIZER);
            inputDataProcessors = ps.GetComponentList <IDataProcessor>(PROP_INPUT_DATA_PROCESSORS);
        }
Beispiel #4
0
 /*
  * /// (non-Javadoc)
  *
  * /// @see edu.cmu.sphinx.util.props.Configurable#newProperties(edu.cmu.sphinx.util.props.PropertySheet)
  */
 public override void NewProperties(PropertySheet ps)
 {
     _activeListFactories = ps.GetComponentList <ActiveListFactory>(PropActiveListFactories);
     CheckPriorLists      = ps.GetBoolean(PropCheckPriorListsEmpty);
 }
Beispiel #5
0
 public void NewProperties(PropertySheet ps)
 {
     InitRecognizer((Recognizer)ps.GetComponent(PropRecognizer));
     _allocatedMonitors   = ps.GetComponentList <IRunnable>(PropAllocatedMonitors);
     _deallocatedMonitors = ps.GetComponentList <IRunnable>(PropDeallocatedMonitors);
 }
 public virtual void NewProperties(PropertySheet ps)
 {
     Init(ps.GetInstanceName(), (ISearchManager)ps.GetComponent(PropSearchManager), ps.GetBoolean(FireNonFinalResults), ps.GetBoolean(AutoAllocate), ps.GetComponentList <IResultListener>(PropResultListeners));
 }
 public void NewProperties(PropertySheet ps)
 {
     _useMfccs  = ps.GetBoolean(PropUseMffcs);
     _dataProcs = ps.GetComponentList <IConfigurable>(DataProcs);
 }
 public override void NewProperties(PropertySheet ps)
 {
     base.NewProperties(ps);
     //logger = ps.getLogger();
     Create(ps.GetInt(PropBytesPerRead), ps.GetComponentList <IAudioFileProcessListener>(AudioFileListeners));
 }
Beispiel #9
0
 /// <summary>
 /// @see Configurable#newProperties(sphincs.util.props.PropertySheet)
 /// </summary>
 /// <param name="ps"></param>
 public override void NewProperties(PropertySheet ps)
 {
     base.NewProperties(ps);
     _frontEndList = ps.GetComponentList <IDataProcessor>(PropPipeline);
     Init();
 }