public void initEmotionEngine() { m_provider = new SensorProvider(m_log, FuzzyResourcesDir); m_provider.AddListener(this); if (m_provider.Connected) OnConnect(); }
public SensorProvider(Log log, String fuzzy_resources) { ms_instance = this; init(log, fuzzy_resources); }
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; } }
public SensorProvider() { ms_instance = this; init(); }