cz.cuni.amis.pogamut.emohawk.agent.module.sensomotoric
Class Emoticon

Package class diagram package Emoticon
java.lang.Object
  extended by cz.cuni.amis.pogamut.emohawk.agent.module.sensomotoric.Emoticon

public class Emoticon
extends Object

Represents bot emoticon. Bot emoticon consists from up to three emoticons and background bubble.

Author:
knight

Constructor Summary
Emoticon(EmoticonType centerEmoticon, EmoticonBubbleType bubble)
          Single emoticon constructor - sets center emoticon type.
Emoticon(EmoticonType leftEmoticon, EmoticonType rightEmoticon, EmoticonBubbleType bubble)
          Double emoticon constructor - sets left and right emoticon (only way to display double emoticon).
Emoticon(EmoticonType leftEmoticon, EmoticonType centerEmoticon, EmoticonType rightEmoticon, EmoticonBubbleType bubble)
          Triple emoticon constructor - has to have all three emoticons set.
 
Method Summary
 boolean equals(Object obj)
           
 EmoticonBubbleType getBubble()
           
 EmoticonType getCenterEmoticon()
           
 int getEmoticonCount()
           
 EmoticonType[] getEmoticonTypes()
          Returns all 3 emoticons as currently displayed by you (displayed from LEFT-to-RIGHT).
 EmoticonType getLeftEmoticon()
           
 EmoticonType getRightEmoticon()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Emoticon

public Emoticon(EmoticonType leftEmoticon,
                EmoticonType centerEmoticon,
                EmoticonType rightEmoticon,
                EmoticonBubbleType bubble)
Triple emoticon constructor - has to have all three emoticons set.

Parameters:
leftEmoticon -
centerEmoticon -
rightEmoticon -
bubble -

Emoticon

public Emoticon(EmoticonType centerEmoticon,
                EmoticonBubbleType bubble)
Single emoticon constructor - sets center emoticon type.

Parameters:
centerEmoticon -
bubble -

Emoticon

public Emoticon(EmoticonType leftEmoticon,
                EmoticonType rightEmoticon,
                EmoticonBubbleType bubble)
Double emoticon constructor - sets left and right emoticon (only way to display double emoticon).

Parameters:
leftEmoticon -
rightEmoticon -
bubble -
Method Detail

getBubble

public EmoticonBubbleType getBubble()

getCenterEmoticon

public EmoticonType getCenterEmoticon()

getLeftEmoticon

public EmoticonType getLeftEmoticon()

getRightEmoticon

public EmoticonType getRightEmoticon()

getEmoticonCount

public int getEmoticonCount()

getEmoticonTypes

public EmoticonType[] getEmoticonTypes()
Returns all 3 emoticons as currently displayed by you (displayed from LEFT-to-RIGHT). 0 emoticons displayed: returns [] 1 emoticon displayed: returns [CENTER] 2 emoticons displayed: returns [LEFT, RIGHT] 3 emoticons displayed: returns [LEFT, CENTER, RIGHT]

Returns:
array of [left, center, right] emoticon being displayed, NONE emoticons are omitted!

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.