|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.ConversationInfo
public class ConversationInfo
Class holding information about conversation between us and other agent. We store sent and received proposals here as well.
| Field Summary | |
|---|---|
private int |
agentId
Id of the agent |
private int |
angerCount
Number of anger smilies we have received from this agent |
private int |
dislikeCount
Number of dislike smilies we have received from this agent |
private int |
fearCount
Number of fear smilies we have received from this agent |
private int |
gender
Gender of the agent - not set or used now |
private int |
happyCount
Number of joy smilies we have received from this agent |
private double |
lastGreetingTime
Last time we have greeted this agent |
private double |
lastMessageTime
Last time we have sent some message to the agent |
private double |
lastProposalTime
Last time we made proposal to this agent |
private java.lang.String |
lastReceivedMessage
Here we store the last message we have received - we are not using this for anything yet |
private double |
lastReceivedMessageTime
Last time we have received message from the agent |
private int |
likeCount
Number of like smilies we have received from this agent |
private java.util.ArrayList<java.lang.Double> |
messageCounter
Counts number of messages per some period |
private int |
receivedMessagesCount
Number of messages received from the agent |
private java.util.ArrayList<ProposalInfo> |
receivedProposals
Here we store all proposal we have received from the agent |
private int |
sadCount
Number of distress smilies we have received from this agent |
private int |
sentMessagesCount
Number of messages sent to the agent |
private java.util.ArrayList<ProposalInfo> |
sentProposals
Here we store all proposals we have sent to this agent |
| Constructor Summary | |
|---|---|
ConversationInfo(int id)
Constructor for this class. |
|
| Method Summary | |
|---|---|
int |
getAgentId()
Gets agent id. |
int |
getAngerCount()
Gets number of anger smilies we have received from the agent. |
int |
getDislikeCount()
Gets number of dislike smilies we have received from the agent. |
int |
getFearCount()
Gets number of fear smilies we have received from the agent. |
int |
getGender()
Gets gender information Note: Not used right now. |
int |
getHappyCount()
Gets number of joy smilies we have received from the agent. |
double |
getLastGreetingTime()
Gets last time we have greeted this agent. |
double |
getLastMessageTime()
Gets last time we have sent message to this agent. |
double |
getLastProposalTime()
Gets last time we have sent proposal to this agent. |
java.lang.String |
getLastReceivedMessage()
Gets last received message text. |
double |
getLastReceivedMessageTime()
Gets last time we have received message from this agent. |
int |
getLikeCount()
Gets number of like smilies we have received from the agent. |
java.util.ArrayList<java.lang.Double> |
getMessageCounter()
Gets the message counter ArrayList object. |
int |
getReceivedMessagesCount()
Gets received messages count. |
java.util.ArrayList<ProposalInfo> |
getReceivedProposals()
Gets received proposals. |
int |
getSadCount()
Gets number of distress smilies we have received from the agent. |
int |
getSentMessagesCount()
Gets sent messages count number. |
java.util.ArrayList<ProposalInfo> |
getSentProposals()
Gets sent proposals. |
void |
setAngerCount(int angerCount)
Sets number of anger smilies we have received from the agent. |
void |
setDislikeCount(int dislikeCount)
Sets number of dislike smilies we have received from the agent. |
void |
setFearCount(int fearCount)
Sets number of fear smilies we have received from the agent. |
void |
setGender(int gender)
Set the agents gender. |
void |
setHappyCount(int happyCount)
Sets number of joy smilies we have received from the agent. |
void |
setLastGreetingTime(double lastGreetingTime)
Sets last greeting time. |
void |
setLastMessageTime(double lastMessageTime)
Sets last send message time. |
void |
setLastProposalTime(double lastProposalTime)
Sets last time we have sent a proposal to this agent. |
void |
setLastReceivedMessage(java.lang.String lastReceivedMessage)
Sets last received message text. |
void |
setLastReceivedMessageTime(double lastReceivedMessageTime)
Sets last time we have received message from this agent. |
void |
setLikeCount(int likeCount)
Sets number of like smilies we have received from the agent. |
void |
setReceivedMessagesCount(int receivedMessagesCount)
Sets received messages count. |
void |
setSadCount(int sadCount)
Sets number of distress smilies we have received from the agent. |
void |
setSentMessagesCount(int sentMessagesCount)
Sets sent messages count. |
void |
updateReceivedMessage(java.lang.String text,
double currentTime)
This method is used for update when we receive new message from the agent. |
void |
updateSentMessages(double currentTime)
Updates the sent messages history - the time and the message count. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int agentId
private int gender
private int sentMessagesCount
private int receivedMessagesCount
private double lastProposalTime
private double lastGreetingTime
private double lastMessageTime
private double lastReceivedMessageTime
private java.lang.String lastReceivedMessage
private java.util.ArrayList<java.lang.Double> messageCounter
private java.util.ArrayList<ProposalInfo> sentProposals
private java.util.ArrayList<ProposalInfo> receivedProposals
private int happyCount
private int sadCount
private int likeCount
private int dislikeCount
private int angerCount
private int fearCount
| Constructor Detail |
|---|
public ConversationInfo(int id)
id - agent id| Method Detail |
|---|
public java.util.ArrayList<ProposalInfo> getReceivedProposals()
public java.util.ArrayList<ProposalInfo> getSentProposals()
public int getAgentId()
public int getGender()
public void setGender(int gender)
gender - input genderpublic int getReceivedMessagesCount()
public void setReceivedMessagesCount(int receivedMessagesCount)
receivedMessagesCount - new countpublic int getSentMessagesCount()
public void setSentMessagesCount(int sentMessagesCount)
sentMessagesCount - new countpublic double getLastGreetingTime()
public void setLastGreetingTime(double lastGreetingTime)
lastGreetingTime - new timepublic double getLastMessageTime()
public void setLastMessageTime(double lastMessageTime)
lastMessageTime - new timepublic double getLastProposalTime()
public void setLastProposalTime(double lastProposalTime)
lastProposalTime - new timepublic double getLastReceivedMessageTime()
public void setLastReceivedMessageTime(double lastReceivedMessageTime)
lastReceivedMessageTime - new timepublic java.lang.String getLastReceivedMessage()
public void setLastReceivedMessage(java.lang.String lastReceivedMessage)
lastReceivedMessage - new text
public void updateReceivedMessage(java.lang.String text,
double currentTime)
text - text of the messagecurrentTime - time when the message was receivedpublic int getAngerCount()
public void setAngerCount(int angerCount)
angerCount - new countpublic int getDislikeCount()
public void setDislikeCount(int dislikeCount)
dislikeCount - new countpublic int getFearCount()
public void setFearCount(int fearCount)
fearCount - new countpublic int getHappyCount()
public void setHappyCount(int happyCount)
happyCount - new countpublic int getLikeCount()
public void setLikeCount(int likeCount)
likeCount - new countpublic java.util.ArrayList<java.lang.Double> getMessageCounter()
public int getSadCount()
public void setSadCount(int sadCount)
sadCount - new countpublic void updateSentMessages(double currentTime)
currentTime - time the message was sent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||