public void raiseOnHeadSetChangedState(String headSetName, EConnectionState connectionState) { Logs.info(EEGHEADSET_STR, headSetName + " connecetd!"); for (IHeadSetData headSetData : m_HeadSetData) { if (headSetData != null) { headSetData.onHeadSetChangedState(headSetName, connectionState); } } }
public void raiseOnAttention(int attValue) { Logs.info(EEGHEADSET_STR, ATTENTION_STR + ": " + attValue); for (IHeadSetData headSetData : m_HeadSetData) { if (headSetData != null) { headSetData.onAttentionReceived(attValue); } } }
public void raiseOnMeditation(int medValue) { Logs.info(EEGHEADSET_STR, MEDITATION_STR + ": " + medValue); for (IHeadSetData headSetData : m_HeadSetData) { if (headSetData != null) { headSetData.onMeditationReceived(medValue); } } }
public void raiseOnPoorSignal(int poorSignalValue) { Logs.info(EEGHEADSET_STR, POOR_SIGNAL_STR + ": " + poorSignalValue); ESignalVolume signalVolume = ESignalVolume.getSignalVolume(poorSignalValue); if (signalVolume != ESignalVolume.GOOD_SIGNAL || m_CurrentPoorSignal != poorSignalValue) { for (IHeadSetData headSetData : m_HeadSetData) { if (headSetData != null) { headSetData.onPoorSignalReceived(signalVolume); } } } m_CurrentPoorSignal = poorSignalValue; }