Пример #1
0
 public void initEmotionEngine()
 {
     m_provider = new SensorProvider(m_log, FuzzyResourcesDir);
     m_provider.AddListener(this);
     if (m_provider.Connected)
         OnConnect();
 }
Пример #2
0
 public SensorProvider(Log log, String fuzzy_resources)
 {
     ms_instance = this;
     init(log, fuzzy_resources);
 }
Пример #3
0
 public static SignalType SensorType2SignalType(SensorProvider.SensorType sensor)
 {
     switch (sensor)
     {
         case SensorProvider.SensorType.HR:
             return SignalType.HR;
         case SensorProvider.SensorType.GSR:
             return SignalType.GSR;
         case SensorProvider.SensorType.EMGSmile:
             return SignalType.EMGSmile;
         case SensorProvider.SensorType.EMGFrown:
             return SignalType.EMGFrown;
         default:
             return SignalType.Unknown;
     }
 }
Пример #4
0
 public SensorProvider()
 {
     ms_instance = this;
     init();
 }