|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsynesketch.emotion.AffectWord
public class AffectWord
Represents one unit from the Synesketch Lexicon: a word associated with emotional meaning, and it's emotional weights and valence.
Synesketch Lexicon, which consits of several thousand words (with emoticons), associates these atributes to a word:
| Constructor Summary | |
|---|---|
AffectWord(java.lang.String word)
Class constructor which sets the affect word |
|
AffectWord(java.lang.String word,
double generalWeight,
double happinessWeight,
double sadnessWeight,
double angerWeight,
double fearWeight,
double disgustWeight,
double surpriseWeight)
Class constructor which sets the affect word and it's weights. |
|
AffectWord(java.lang.String word,
double generalWeight,
double happinessWeight,
double sadnessWeight,
double angerWeight,
double fearWeight,
double disgustWeight,
double surpriseWeight,
double quoficient)
Class constructor which sets the affect word and it's weights, adjusted by the quoeficient. |
|
| Method Summary | |
|---|---|
void |
adjustWeights(double quoficient)
Adjusts weights by the certain quoficient. |
AffectWord |
clone()
Makes duplicate of the object. |
void |
flipValence()
Flips valence of the word -- calculates change from postive to negative emotion. |
double |
getAngerWeight()
Getter for the anger weight. |
double |
getDisgustWeight()
Getter for the disgust weight. |
double |
getFearWeight()
Getter for the fear weight. |
double |
getGeneralValence()
Getter for the general valence. |
double |
getGeneralWeight()
Getter for the general weight. |
double |
getHappinessWeight()
Getter for the happiness weight. |
double |
getSadnessWeight()
Getter for the sadness weight. |
double |
getSurpriseWeight()
Getter for the surprise weight. |
java.lang.String |
getWord()
Getter for the word. |
boolean |
isZeroEkman()
Sets the boolean value which determines does a word have specific emotional weight for emotion types defined by Ekman: happiness, sadness, fear, anger, disgust, and surprise. |
void |
setAngerWeight(double angerWeight)
Getter for the anger weight. |
void |
setDisgustWeight(double disgustWeight)
Setter for the disgust weight. |
void |
setFearWeight(double fearWeight)
Getter for the fear weight. |
void |
setGeneralValence(int generalValence)
Setter for the general valence |
void |
setGeneralWeight(double generalWeight)
Setter for the general weight. |
void |
setHappinessWeight(double happinessWeight)
Setter for the happiness weight. |
void |
setSadnessWeight(double sadnessWeight)
Setter for the sadness weight. |
void |
setStartsWithEmoticon(boolean startsWithEmoticon)
Sets does the word start with emoticon. |
void |
setSurpriseWeight(double surpriseWeight)
Setter for the surprise weight. |
boolean |
startsWithEmoticon()
Returns true if the word starts with the emoticon. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AffectWord(java.lang.String word)
word - String representing the word
public AffectWord(java.lang.String word,
double generalWeight,
double happinessWeight,
double sadnessWeight,
double angerWeight,
double fearWeight,
double disgustWeight,
double surpriseWeight)
word - String representing the wordgeneralWeight - double representing the general emotional weighthappinessWeight - double representing the happiness weightsadnessWeight - double representing the sadness weightangerWeight - double representing the anger weightfearWeight - double representing the fear weightdisgustWeight - double representing the disgust weightsurpriseWeight - double representing the surprise weight
public AffectWord(java.lang.String word,
double generalWeight,
double happinessWeight,
double sadnessWeight,
double angerWeight,
double fearWeight,
double disgustWeight,
double surpriseWeight,
double quoficient)
word - String representing the wordgeneralWeight - double representing the general emotional weighthappinessWeight - double representing the happiness weightsadnessWeight - double representing the sadness weightangerWeight - double representing the anger weightfearWeight - double representing the fear weightdisgustWeight - double representing the disgust weightsurpriseWeight - double representing the surprise weightquoficient - double representing the quoficient for adjusting the weights| Method Detail |
|---|
public void adjustWeights(double quoficient)
quoficient - double representing the quoficient for adjusting the weightspublic void flipValence()
public AffectWord clone()
clone in class java.lang.ObjectAffectWord, new duplicated objectpublic boolean startsWithEmoticon()
public void setStartsWithEmoticon(boolean startsWithEmoticon)
startsWithEmoticon - boolean (true if the word starts with the emoticon, false if
not)public double getAngerWeight()
public void setAngerWeight(double angerWeight)
angerWeight - double which represents the anger weightpublic double getDisgustWeight()
public void setDisgustWeight(double disgustWeight)
disgustWeight - double which represents the disgust weightpublic double getFearWeight()
public void setFearWeight(double fearWeight)
fearWeight - double which represents the fear weightpublic double getHappinessWeight()
public void setHappinessWeight(double happinessWeight)
happinessWeight - double which represents the happiness weightpublic double getSadnessWeight()
public void setSadnessWeight(double sadnessWeight)
sadnessWeight - double which represents the sadness weightpublic double getSurpriseWeight()
public void setSurpriseWeight(double surpriseWeight)
surpriseWeight - double which represents the surprise weightpublic java.lang.String getWord()
String which represents the wordpublic double getGeneralWeight()
public void setGeneralWeight(double generalWeight)
generalWeight - double which represents the general weightpublic double getGeneralValence()
public void setGeneralValence(int generalValence)
generalValence - double which represents the general valencepublic boolean isZeroEkman()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||