public class MarcBMLTranslationComponent extends LivingComponent implements MarcSocket.DataListener
Constructor and Description |
---|
MarcBMLTranslationComponent(java.lang.String outboundPort,
ComponentConfig config) |
Modifier and Type | Method and Description |
---|---|
boolean |
act()
Acts and runs all functionalities of the class based on system beat.
|
void |
close()
Closes socket for communicating with MARC toolkit.
|
void |
dataReceived(java.lang.String message)
Processes received data
|
void |
definePublishedData()
Checking type of output data.
|
void |
defineReceivedData()
Checking type of input data
|
java.lang.String |
generateEml(EmotionalAppraisal checks,
java.lang.String mode)
Generates EML message
|
void |
resetSmilingFace(Bml bmlSmilingFace)
Resets MARC toolkit avatar face to a smiling face.
|
void |
sendEml(EmotionalAppraisal checks,
java.lang.String mode)
Sends EML message to MARC toolkit
|
public MarcBMLTranslationComponent(java.lang.String outboundPort, ComponentConfig config)
public void defineReceivedData()
public void definePublishedData()
public void dataReceived(java.lang.String message)
dataReceived
in interface MarcSocket.DataListener
message
- received data in terms of a text messagepublic void resetSmilingFace(Bml bmlSmilingFace)
bmlSmilingFace
- BML message for a smiling facepublic java.lang.String generateEml(EmotionalAppraisal checks, java.lang.String mode)
checks
- Emotional appraisal theory valuesmode
- Emotional appraisal theory modespublic void sendEml(EmotionalAppraisal checks, java.lang.String mode)
checks
- Emotional appraisal theory valuesmode
- Emotional appraisal theory modespublic void close()
public boolean act()