1   package examples.bookTrading;
2   
3   import java.io.Serializable;
4   import java.util.TreeMap;
5   import java.util.concurrent.ConcurrentHashMap;
6   
7   
8   /**
9    * This class is used to store and retrieve preference information such as vehicle ID (of which the preference is to be stored), communication ID,
10   * preference band types and preference band values. 
11   * @author prajakta
12   *
13   */
14  public class PreferenceUtilityIndex implements Serializable{
15      public PreferenceUtilityIndex(String vID, String commString/*,int jnOrder*/) {
16          this.vehicleID = vID;
17          this.commID = commString;
18          
19          //this.jOrder = jnOrder;
20          
21      }
22      private String vehicleID;
23      public String getVehicleID() {
24          return vehicleID;
25      }
26      public void setVehicleID(String vehicleID) {
27          this.vehicleID = vehicleID;
28      }
29      public String getB1() {
30          return B1;
31      }
32      public void setB1(String b1) {
33          B1 = b1;
34      }
35      public String getB2() {
36          return B2;
37      }
38      public void setB2(String b2) {
39          B2 = b2;
40      }
41      public String getB3() {
42          return B3;
43      }
44      public void setB3(String b3) {
45          B3 = b3;
46      }
47      public String getB4() {
48          return B4;
49      }
50      public void setB4(String b4) {
51          B4 = b4;
52      }
53      public String getB5() {
54          return B5;
55      }
56      public void setB5(String b5) {
57          B5 = b5;
58      }
59      private String B1;
60      private String B2;
61      private String B3;
62      private String B4;
63      private String B5;
64      
65      private String B1Val;
66      public String getB1Val() {
67          return B1Val;
68      }
69      public void setB1Val(String b1Val) {
70          B1Val = b1Val;
71      }
72      public String getB2Val() {
73          return B2Val;
74      }
75      public void setB2Val(String b2Val) {
76          B2Val = b2Val;
77      }
78      public String getB3Val() {
79          return B3Val;
80      }
81      public void setB3Val(String b3Val) {
82          B3Val = b3Val;
83      }
84      public String getB4Val() {
85          return B4Val;
86      }
87      public void setB4Val(String b4Val) {
88          B4Val = b4Val;
89      }
90      public String getB5Val() {
91          return B5Val;
92      }
93      public void setB5Val(String b5Val) {
94          B5Val = b5Val;
95      }
96      private String B2Val;
97      private String B3Val;
98      private String B4Val;
99      private String B5Val;
100     
101     private String commID;
102     private String prevSeg;
103     private String segmentID;
104     private int reasonForCongestion;
105     
106     public String getCommID() {
107         return commID;
108     }
109 
110     public void setCommID(String commID) {
111         this.commID = commID;
112     }
113     public String getSegmentID() {
114         return segmentID;
115     }
116     public void setSegmentID(String segmentID) {
117         this.segmentID = segmentID;
118     }
119     public int getReasonForCongestion() {
120         return reasonForCongestion;
121     }
122     public void setReasonForCongestion(int reasonForCongestion) {
123         this.reasonForCongestion = reasonForCongestion;
124     }       
125     public String getPrevSeg() {
126         return prevSeg;
127     }
128     public void setPrevSeg(String prevSeg) {
129     this.prevSeg = prevSeg;
130     }
131     
132     
133     
134     /*private int jOrder;
135     public int getjOrder() {
136         return jOrder;
137     }
138     public void setjOrder(int jOrder) {
139         this.jOrder = jOrder;
140     }*/
141 }
142