info
Class ConversationInfo

java.lang.Object
  extended by info.ConversationInfo

public class ConversationInfo
extends java.lang.Object

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

agentId

private int agentId
Id of the agent


gender

private int gender
Gender of the agent - not set or used now


sentMessagesCount

private int sentMessagesCount
Number of messages sent to the agent


receivedMessagesCount

private int receivedMessagesCount
Number of messages received from the agent


lastProposalTime

private double lastProposalTime
Last time we made proposal to this agent


lastGreetingTime

private double lastGreetingTime
Last time we have greeted this agent


lastMessageTime

private double lastMessageTime
Last time we have sent some message to the agent


lastReceivedMessageTime

private double lastReceivedMessageTime
Last time we have received message from the agent


lastReceivedMessage

private java.lang.String lastReceivedMessage
Here we store the last message we have received - we are not using this for anything yet


messageCounter

private java.util.ArrayList<java.lang.Double> messageCounter
Counts number of messages per some period


sentProposals

private java.util.ArrayList<ProposalInfo> sentProposals
Here we store all proposals we have sent to this agent


receivedProposals

private java.util.ArrayList<ProposalInfo> receivedProposals
Here we store all proposal we have received from the agent


happyCount

private int happyCount
Number of joy smilies we have received from this agent


sadCount

private int sadCount
Number of distress smilies we have received from this agent


likeCount

private int likeCount
Number of like smilies we have received from this agent


dislikeCount

private int dislikeCount
Number of dislike smilies we have received from this agent


angerCount

private int angerCount
Number of anger smilies we have received from this agent


fearCount

private int fearCount
Number of fear smilies we have received from this agent

Constructor Detail

ConversationInfo

public ConversationInfo(int id)
Constructor for this class. Requires just agent id parameter.

Parameters:
id - agent id
Method Detail

getReceivedProposals

public java.util.ArrayList<ProposalInfo> getReceivedProposals()
Gets received proposals.

Returns:
received proposals

getSentProposals

public java.util.ArrayList<ProposalInfo> getSentProposals()
Gets sent proposals.

Returns:
sent proposals

getAgentId

public int getAgentId()
Gets agent id.

Returns:
agent id

getGender

public int getGender()
Gets gender information Note: Not used right now.

Returns:
gender

setGender

public void setGender(int gender)
Set the agents gender.

Parameters:
gender - input gender

getReceivedMessagesCount

public int getReceivedMessagesCount()
Gets received messages count.

Returns:
received messages count

setReceivedMessagesCount

public void setReceivedMessagesCount(int receivedMessagesCount)
Sets received messages count.

Parameters:
receivedMessagesCount - new count

getSentMessagesCount

public int getSentMessagesCount()
Gets sent messages count number.

Returns:
sent messages count

setSentMessagesCount

public void setSentMessagesCount(int sentMessagesCount)
Sets sent messages count.

Parameters:
sentMessagesCount - new count

getLastGreetingTime

public double getLastGreetingTime()
Gets last time we have greeted this agent.

Returns:
last time we have greeted this agent

setLastGreetingTime

public void setLastGreetingTime(double lastGreetingTime)
Sets last greeting time.

Parameters:
lastGreetingTime - new time

getLastMessageTime

public double getLastMessageTime()
Gets last time we have sent message to this agent.

Returns:
last message time

setLastMessageTime

public void setLastMessageTime(double lastMessageTime)
Sets last send message time.

Parameters:
lastMessageTime - new time

getLastProposalTime

public double getLastProposalTime()
Gets last time we have sent proposal to this agent.

Returns:
last proposal time

setLastProposalTime

public void setLastProposalTime(double lastProposalTime)
Sets last time we have sent a proposal to this agent.

Parameters:
lastProposalTime - new time

getLastReceivedMessageTime

public double getLastReceivedMessageTime()
Gets last time we have received message from this agent.

Returns:
last received message time

setLastReceivedMessageTime

public void setLastReceivedMessageTime(double lastReceivedMessageTime)
Sets last time we have received message from this agent.

Parameters:
lastReceivedMessageTime - new time

getLastReceivedMessage

public java.lang.String getLastReceivedMessage()
Gets last received message text.

Returns:
last received message text

setLastReceivedMessage

public void setLastReceivedMessage(java.lang.String lastReceivedMessage)
Sets last received message text.

Parameters:
lastReceivedMessage - new text

updateReceivedMessage

public void updateReceivedMessage(java.lang.String text,
                                  double currentTime)
This method is used for update when we receive new message from the agent. It sets all needed information into this class internals.

Parameters:
text - text of the message
currentTime - time when the message was received

getAngerCount

public int getAngerCount()
Gets number of anger smilies we have received from the agent.

Returns:
anger smilies count

setAngerCount

public void setAngerCount(int angerCount)
Sets number of anger smilies we have received from the agent.

Parameters:
angerCount - new count

getDislikeCount

public int getDislikeCount()
Gets number of dislike smilies we have received from the agent.

Returns:
dislike smilies count

setDislikeCount

public void setDislikeCount(int dislikeCount)
Sets number of dislike smilies we have received from the agent.

Parameters:
dislikeCount - new count

getFearCount

public int getFearCount()
Gets number of fear smilies we have received from the agent.

Returns:
fear smilies count

setFearCount

public void setFearCount(int fearCount)
Sets number of fear smilies we have received from the agent.

Parameters:
fearCount - new count

getHappyCount

public int getHappyCount()
Gets number of joy smilies we have received from the agent.

Returns:
number of joy smilies

setHappyCount

public void setHappyCount(int happyCount)
Sets number of joy smilies we have received from the agent.

Parameters:
happyCount - new count

getLikeCount

public int getLikeCount()
Gets number of like smilies we have received from the agent.

Returns:
like smilies count

setLikeCount

public void setLikeCount(int likeCount)
Sets number of like smilies we have received from the agent.

Parameters:
likeCount - new count

getMessageCounter

public java.util.ArrayList<java.lang.Double> getMessageCounter()
Gets the message counter ArrayList object.

Returns:
message counter ArrayList

getSadCount

public int getSadCount()
Gets number of distress smilies we have received from the agent.

Returns:
distress smilies count

setSadCount

public void setSadCount(int sadCount)
Sets number of distress smilies we have received from the agent.

Parameters:
sadCount - new count

updateSentMessages

public void updateSentMessages(double currentTime)
Updates the sent messages history - the time and the message count.

Parameters:
currentTime - time the message was sent