1   package de.uni_stuttgart.informatik.canu.mobisim.notifications;
2   
3   import java.util.ArrayList;
4   import java.util.HashMap;
5   import java.util.Iterator;
6   import java.util.Map;
7   import java.util.Set;
8   import java.util.Map.Entry;
9   import java.util.concurrent.ConcurrentHashMap;
10  
11  import de.uni_stuttgart.informatik.canu.mobisim.core.Notification;
12  
13  /**
14   * This user-defined Java class extends the functionality of Notification Java class.
15   * It is used to store the information about the route choice parameters
16   * @author prajakta
17   *
18   */
19  public class RouteChoiceNotification extends Notification{
20  
21      private ConcurrentHashMap<String,ArrayList> pathPoints = new ConcurrentHashMap<String,ArrayList>();
22          
23      private boolean routeFlag = false;
24      public boolean isRouteFlag() {
25          return routeFlag;
26      }
27  
28      public void setRouteFlag(boolean routeFlag) {
29          this.routeFlag = routeFlag;
30      }
31  
32      public ConcurrentHashMap<String,ArrayList> getPathPoints() {
33          return pathPoints;
34      }
35  
36      public void setPathPoints(ConcurrentHashMap<String,ArrayList> pathPoints) {
37          this.pathPoints = pathPoints;
38          if(pathPoints!=null && pathPoints.size()>0){
39              
40          }   
41              
42          
43      }   
44      
45      public RouteChoiceNotification(Object sender, Object receiver, ConcurrentHashMap<String,ArrayList> routeMap) {
46          super(sender, receiver);
47          setPathPoints(routeMap);    
48      }
49      
50      public RouteChoiceNotification(Object sender, Object receiver, boolean flag) {
51          super(sender, receiver);
52          setRouteFlag(flag);     
53      }
54  }
55