Example #1
0
 public void actionPerformed(ActionEvent e) {
   String sel = e.getActionCommand();
   if (sel.equals("Properties...")) controller.showConfigDialog();
   else
     try {
       if (sel.equals("Track roadusers that crossed"))
         TrackerFactory.showTracker(
             controller.getSimModel(), controller, node, TrackerFactory.JUNCTION_ROADUSERS);
       else if (sel.equals("Track junction waiting time"))
         TrackerFactory.showTracker(
             controller.getSimModel(), controller, node, TrackerFactory.JUNCTION_WAIT);
     } catch (GLDException exc) {
     }
 }
Example #2
0
 public void actionPerformed(ActionEvent e) {
   String sel = e.getActionCommand();
   try {
     if (sel.equals("Properties...")) controller.showConfigDialog();
     else if (sel.equals("Track waiting queue length"))
       TrackerFactory.showTracker(
           controller.getSimModel(), controller, node, TrackerFactory.SPECIAL_QUEUE);
     else if (sel.equals("Track trip waiting time"))
       TrackerFactory.showTracker(
           controller.getSimModel(), controller, node, TrackerFactory.SPECIAL_WAIT);
     else if (sel.equals("Track roadusers arrived"))
       TrackerFactory.showTracker(
           controller.getSimModel(), controller, node, TrackerFactory.SPECIAL_ROADUSERS);
   } catch (GLDException exc) {
     controller.showError(exc.toString());
   }
 }
Example #3
0
 public void actionPerformed(ActionEvent e) {
   if (e.getActionCommand().equals("Properties...")) controller.showConfigDialog();
 }