Ejemplo n.º 1
0
  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);
      }
    }
  }
Ejemplo n.º 2
0
  public void raiseOnAttention(int attValue) {
    Logs.info(EEGHEADSET_STR, ATTENTION_STR + ": " + attValue);

    for (IHeadSetData headSetData : m_HeadSetData) {
      if (headSetData != null) {
        headSetData.onAttentionReceived(attValue);
      }
    }
  }
Ejemplo n.º 3
0
  public void raiseOnMeditation(int medValue) {

    Logs.info(EEGHEADSET_STR, MEDITATION_STR + ": " + medValue);

    for (IHeadSetData headSetData : m_HeadSetData) {
      if (headSetData != null) {
        headSetData.onMeditationReceived(medValue);
      }
    }
  }
Ejemplo n.º 4
0
  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;
  }