1   package examples.bookTrading;
2   
3   import jade.core.AID;
4   
5   import java.util.concurrent.ConcurrentHashMap;
6   
7   /**
8    * This class is used to store and retrieve the information of all the agents to whom the route information was sent 
9    * and also stores the number of agents who have received this message and the ID of the congested segment. 
10   * This class also stored information about the agents to which the CFPs has been sent
11   * @author prajakta
12   *
13   */
14  public class SentMessageInfo {
15      
16      private String ownerID;
17      public String getOwnerID() {
18          return ownerID;
19      }
20      public void setOwnerID(String ownerID) {
21          this.ownerID = ownerID;
22      }
23      public ConcurrentHashMap getAgentsRouteHash() {
24          return agentsRouteHash;
25      }
26      public void setAgentsRouteHash(ConcurrentHashMap agentsRouteHash) {
27          this.agentsRouteHash = agentsRouteHash;
28      }
29      public String getReceiverIDs() {
30          return receiverIDs;
31      }
32      public void setReceiverIDs(String receiverIDs) {
33          this.receiverIDs = receiverIDs;
34      }
35      public String getCongestedSegmentID() {
36          return congestedSegmentID;
37      }
38      public void setCongestedSegmentID(String congestedSegmentID) {
39          this.congestedSegmentID = congestedSegmentID;
40      }
41      private ConcurrentHashMap agentsRouteHash;
42      private String receiverIDs;
43      private String congestedSegmentID;
44      
45      
46      public SentMessageInfo(String owner){
47          this.ownerID = owner;
48      }
49      
50      
51      //Message check for CFPs
52      
53      
54      private AID[] receiverIDcfp;
55      
56      public AID[] getReceiverIDcfp() {
57          return receiverIDcfp;
58      }
59      public void setReceiverIDcfp(AID[] receiverIDcfp) {
60          this.receiverIDcfp = receiverIDcfp;
61      }
62      public String getCongSegIDcfp() {
63          return congSegIDcfp;
64      }
65      public void setCongSegIDcfp(String congSegIDcfp) {
66          this.congSegIDcfp = congSegIDcfp;
67      }
68      public PreferenceUtilityIndex getPrefUtilitycfp() {
69          return prefUtilitycfp;
70      }
71      public void setPrefUtilitycfp(PreferenceUtilityIndex prefUtilitycfp) {
72          this.prefUtilitycfp = prefUtilitycfp;
73      }
74      private String congSegIDcfp;
75      
76      private PreferenceUtilityIndex prefUtilitycfp;
77      
78  
79  }
80