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 evaluated route information for an agent such as agentID, congested segment ID and agent route choice.
9    * @author prajakta
10   *
11   */
12  public class EvaluateRouteInfo {
13      
14      private String ownerID;
15      public String getOwnerID() {
16          return ownerID;
17      }
18      public void setOwnerID(String ownerID) {
19          this.ownerID = ownerID;
20      }
21      public ConcurrentHashMap getAgentsRouteChoice() {
22          return agentsRouteChoice;
23      }
24      public void setAgentsRouteChoice(ConcurrentHashMap agentsRouteChoice) {
25          this.agentsRouteChoice = agentsRouteChoice;
26      }
27      public AID[] getReceiverID() {
28          return receiverID;
29      }
30      public void setReceiverID(AID[] receiverID) {
31          this.receiverID = receiverID;
32      }
33      public String getCongestedSegmentID() {
34          return congestedSegmentID;
35      }
36      public void setCongestedSegmentID(String congestedSegmentID) {
37          this.congestedSegmentID = congestedSegmentID;
38      }
39      private ConcurrentHashMap agentsRouteChoice;
40      private AID[] receiverID;
41      private String congestedSegmentID;
42      private boolean routeEvalFlag=false;
43      
44      public boolean isRouteEvalFlag() {
45          return routeEvalFlag;
46      }
47      public void setRouteEvalFlag(boolean routeEvalFlag) {
48          this.routeEvalFlag = routeEvalFlag;
49      }
50      
51      public EvaluateRouteInfo(String owner){
52          this.ownerID = owner;
53          routeEvalFlag=false;
54      }
55  }
56