Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
 }
Esempio n. 5
0
 public void NewProperties(PropertySheet ps)
 {
     InitRecognizer((Recognizer)ps.GetComponent(PropRecognizer));
     _allocatedMonitors   = ps.GetComponentList <IRunnable>(PropAllocatedMonitors);
     _deallocatedMonitors = ps.GetComponentList <IRunnable>(PropDeallocatedMonitors);
 }
Esempio n. 6
0
 public virtual void NewProperties(PropertySheet ps)
 {
     Init(ps.GetInstanceName(), (ISearchManager)ps.GetComponent(PropSearchManager), ps.GetBoolean(FireNonFinalResults), ps.GetBoolean(AutoAllocate), ps.GetComponentList <IResultListener>(PropResultListeners));
 }
Esempio n. 7
0
 public void NewProperties(PropertySheet ps)
 {
     _useMfccs  = ps.GetBoolean(PropUseMffcs);
     _dataProcs = ps.GetComponentList <IConfigurable>(DataProcs);
 }
Esempio n. 8
0
 public override void NewProperties(PropertySheet ps)
 {
     base.NewProperties(ps);
     //logger = ps.getLogger();
     Create(ps.GetInt(PropBytesPerRead), ps.GetComponentList <IAudioFileProcessListener>(AudioFileListeners));
 }
Esempio n. 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();
 }