int cSemaineUserinfoSender::processComponentMessage( cComponentMessage *msg ) 
{ 
  if (isMessageType(msg,"classificationResult")) {  
     if (!strcmp(msg->msgname, "gender")) { 
       sendGender(msg);
       return 1;
     } else if (!strcmp(msg->msgname, "offtalk")) {
       sendOffTalk(msg);
       return 1;
     }
  }
  else if (isMessageType(msg, "speakerId")) {  
    sendSpeakerId(msg);
    return 1;
  }
  else if (isMessageType(msg, "pitchDirection")) {  
    SMILE_IDBG(3, "received 'pitchDirection' message");
    sendPitchDirection(msg);
    return 1;  // message was processed
  }
  else if (isMessageType(msg, "turnSpeakingStatus")) {
    SMILE_IDBG(3, "received 'turnSpeakingStatus' message: %i", msg->intData[0]);
    sendSpeakingStatus(msg, msg->intData[0]);
    return 1; // message was processed
  }
  return 0; // if message was not processed
}  
int cSemaineEmmaSender::processComponentMessage( cComponentMessage *_msg ) 
{ 
  if (isMessageType(_msg,"classificationResult")) {  
    // determine origin by message's user-defined name, which can be set in the config file
    SMILE_IDBG(3,"received 'classificationResult' message");
    if (!strcmp(_msg->msgname,"arousal")) sendArousalC(_msg);
    else if (!strcmp(_msg->msgname,"valence")) sendValenceC(_msg);
    else if (!strcmp(_msg->msgname,"interest")) sendInterestC(_msg);
    else if (!strcmp(_msg->msgname,"gender")) sendGender(_msg);
    else if (!strcmp(_msg->msgname,"power")) sendPowerC(_msg);
    else if (!strcmp(_msg->msgname,"intensity")) sendIntensityC(_msg);
    else if (!strcmp(_msg->msgname,"anticipation")) sendAnticipationC(_msg);
    return 1;  // message was processed
  }
  else if (isMessageType(_msg,"pitchDirection")) {  
    SMILE_IDBG(3,"received 'pitchDirection' message");
    sendPitchDirection(_msg);
    return 1;  // message was processed
  }
  else if (isMessageType(_msg,"asrKeywordOutput")) {  
    SMILE_IDBG(3,"received 'asrKeywordOutput' message");
    sendKeywords(_msg);
    return 1;  // message was processed
  }
  else if (isMessageType(_msg,"turnSpeakingStatus")) {
    SMILE_IDBG(2,"received 'turnSpeakingStatus' message: %i",_msg->intData[0]);
    sendSpeakingStatus(_msg, _msg->intData[0]);
    return 1; // message was processed
  }

  return 0; // if message was not processed
}