- Timestamp:
- 07/14/2019 03:37:52 PM (7 years ago)
- Location:
- trunk/src
- Files:
-
- 10 edited
-
python/unifiedlogger/wing_project.wpr (modified) (1 diff)
-
tmcsim/application.properties (modified) (1 diff)
-
tmcsim/cadsimulator/managers/TrafficModelManager.java (modified) (1 diff)
-
tmcsim/client/CADClient.java (modified) (1 diff)
-
tmcsim/client/CADClientModel.java (modified) (1 diff)
-
tmcsim/client/CADClientView.java (modified) (3 diffs)
-
tmcsim/client/cadclientgui/screens/AssignedIncidents.java (modified) (1 diff)
-
tmcsim/client/cadclientgui/screens/PendingIncidents.java (modified) (1 diff)
-
tmcsim/client/cadclientgui/screens/UnitStatus.java (modified) (1 diff)
-
tmcsim/simulationmanager/SimulationManagerModel.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/python/unifiedlogger/wing_project.wpr
r444 r445 506 506 'traversal_pos': ((0, 507 507 4), 508 1563131 442.756592),508 1563131506.336019), 509 509 'user_data': {}}, 510 510 'window-alloc': (29, -
trunk/src/tmcsim/application.properties
r444 r445 1 #Sun, 14 Jul 2019 1 2:12:07-07001 #Sun, 14 Jul 2019 16:45:46 -0700 2 2 3 Application.revision=44 33 Application.revision=444 4 4 5 Application.buildnumber=15 25 Application.buildnumber=154 -
trunk/src/tmcsim/cadsimulator/managers/TrafficModelManager.java
r422 r445 422 422 catch (FileNotFoundException ex) 423 423 { 424 Logger.getLogger( GoogleMapAnimator.class.getName()).log(Level.SEVERE, null, ex);424 Logger.getLogger(TrafficModelManager.class.getName()).log(Level.SEVERE, null, ex); 425 425 } 426 426 // Wait for Google Map to process the data we just sent -
trunk/src/tmcsim/client/CADClient.java
r361 r445 513 513 theCoorInt.unregisterForCallback(client); 514 514 } catch (RemoteException e) { 515 e.printStackTrace(); 515 cadClientLogger.logp(Level.WARNING, "CADClient.java", "Main", 516 "Error unregistering in ensureProperShutdown()."); 516 517 } 517 518 } -
trunk/src/tmcsim/client/CADClientModel.java
r2 r445 132 132 receiveObject(in.readObject()); 133 133 } 134 catch (EOFException eofe) {134 /* catch (EOFException eofe) { 135 135 clientLogger.logp(Level.SEVERE, "CADClientModel", "run()", 136 136 "Exception in reading object from input stream.", eofe); 137 } 137 }*/ 138 138 catch (Exception e) { 139 139 clientLogger.logp(Level.SEVERE, "CADClientModel", "run()", -
trunk/src/tmcsim/client/CADClientView.java
r124 r445 3 3 import java.awt.Color; 4 4 import java.awt.Dimension; 5 import java.awt.event.ComponentAdapter; 6 import java.awt.event.ComponentEvent; 5 7 import java.awt.event.KeyEvent; 6 8 import java.awt.event.KeyListener; … … 14 16 import javax.swing.Box; 15 17 import javax.swing.BoxLayout; 18 import javax.swing.JDialog; 16 19 import javax.swing.JFrame; 17 20 import javax.swing.JOptionPane; … … 639 642 *</table> 640 643 */ 641 public void update(Observable o, Object arg) { 642 643 644 public void update(Observable o, Object arg) 645 { 644 646 if(arg == null) 645 647 { 646 JOptionPane.showMessageDialog(this, 647 "Connection to the CAD Server has been lost. " + 648 "Restart the CAD Client.", "Connection Error", 649 JOptionPane.ERROR_MESSAGE); 648 final JOptionPane pane = new JOptionPane("Connection to the CAD Server has been lost. " + 649 "Restart the CAD Client."); 650 JDialog dialog = pane.createDialog(this, "Connection Error"); 651 dialog.setModal(false); // don't block background components 652 // Listen for dialog closing 653 dialog.addComponentListener(new ComponentAdapter() 654 { 655 @Override 656 public void componentHidden(ComponentEvent e) 657 { 658 System.exit(-1); // force hard exit 659 } 660 }); 661 dialog.setVisible(true); 662 663 // JOptionPane.showMessageDialog(this, 664 // "Connection to the CAD Server has been lost. " + 665 // "Restart the CAD Client.", "Connection Error", 666 // JOptionPane.ERROR_MESSAGE); 650 667 //return; 651 668 // Changed to hard exit because Windows was hanging here 652 System.exit(-1);669 //System.exit(-1); 653 670 } 654 671 else 672 { 655 673 ObserverMessage oMessage = (ObserverMessage)arg; 656 674 657 switch(oMessage.type) { 658 case INCIDENT_INQUIRY: 659 IncidentInquiryModel iiModel = (IncidentInquiryModel)oMessage.value; 660 661 CADMainPane = new II_IncidentInquiry(iiModel, mainTextPane.getDocument()); 662 CADMainPane.addObserver(CADFooterPane); 663 664 if(!pageLocationSaved) 665 pageLocationMap.put(currentScreenNum, CADMainPane.getCurrentPage()); 666 667 updateViews(iiModel); 668 669 break; 670 671 case INCIDENT_SUMMARY: 672 IncidentSummaryModel isModel = (IncidentSummaryModel)oMessage.value; 673 674 CADMainPane = new SA_IncidentSummary(isModel, mainTextPane.getDocument()); 675 CADMainPane.addObserver(CADFooterPane); 676 677 if(!pageLocationSaved) 678 pageLocationMap.put(currentScreenNum, CADMainPane.getCurrentPage()); 679 680 updateViews(isModel); 681 break; 682 683 case INCIDENT_BOARD: 684 IncidentBoardModel ibModel = (IncidentBoardModel)oMessage.value; 685 686 CADMainPane = new IB_IncidentBoard(ibModel, mainTextPane.getDocument()); 687 CADMainPane.addObserver(CADFooterPane); 688 689 if(!pageLocationSaved) 690 pageLocationMap.put(currentScreenNum, CADMainPane.getCurrentPage()); 691 692 updateViews(ibModel); 693 break; 694 695 case ROUTED_MESSAGE: 696 RoutedMessageModel rmModel = (RoutedMessageModel)oMessage.value; 697 698 CADMainPane = new TO_RoutedMessage(rmModel, mainTextPane.getDocument()); 699 CADMainPane.addObserver(CADFooterPane); 700 701 if(!pageLocationSaved) 702 pageLocationMap.put(currentScreenNum, CADMainPane.getCurrentPage()); 703 704 updateViews(rmModel); 705 break; 706 707 case BLANK_SCREEN: 708 BlankScreenModel bsModel = (BlankScreenModel)oMessage.value; 709 710 CADMainPane = new CADMainView(mainTextPane.getDocument()); 711 CADMainPane.addObserver(CADFooterPane); 712 713 if(!pageLocationSaved) 714 pageLocationMap.put(currentScreenNum, CADMainPane.getCurrentPage()); 715 716 updateViews(bsModel); 717 break; 718 719 case SCREEN_UPDATE: 720 CADFooterPane.updateStatus(CADScreenModel.updateStringToMap( 721 (String)oMessage.value)); 722 break; 723 724 case TIME_UPDATE: 725 CADFooterPane.updateTime((String)oMessage.value); 726 break; 727 728 case ROUTED_MESSAGE_COUNT_UPDATE: 729 CADFooterPane.updateRoutedMessageCount((Integer)oMessage.value); 730 break; 731 732 case ROUTED_MESSAGE_UNREAD_UPDATE: 733 CADFooterPane.updateUnreadMessages((Boolean)oMessage.value); 734 break; 735 736 case CAD_INFO_MESSAGE: 737 CADFooterPane.displayInfoMessage((String)oMessage.value); 738 break; 739 } 675 switch(oMessage.type) 676 { 677 case INCIDENT_INQUIRY: 678 IncidentInquiryModel iiModel = (IncidentInquiryModel)oMessage.value; 679 680 CADMainPane = new II_IncidentInquiry(iiModel, mainTextPane.getDocument()); 681 CADMainPane.addObserver(CADFooterPane); 682 683 if(!pageLocationSaved) 684 pageLocationMap.put(currentScreenNum, CADMainPane.getCurrentPage()); 685 686 updateViews(iiModel); 687 688 break; 689 690 case INCIDENT_SUMMARY: 691 IncidentSummaryModel isModel = (IncidentSummaryModel)oMessage.value; 692 693 CADMainPane = new SA_IncidentSummary(isModel, mainTextPane.getDocument()); 694 CADMainPane.addObserver(CADFooterPane); 695 696 if(!pageLocationSaved) 697 pageLocationMap.put(currentScreenNum, CADMainPane.getCurrentPage()); 698 699 updateViews(isModel); 700 break; 701 702 case INCIDENT_BOARD: 703 IncidentBoardModel ibModel = (IncidentBoardModel)oMessage.value; 704 705 CADMainPane = new IB_IncidentBoard(ibModel, mainTextPane.getDocument()); 706 CADMainPane.addObserver(CADFooterPane); 707 708 if(!pageLocationSaved) 709 pageLocationMap.put(currentScreenNum, CADMainPane.getCurrentPage()); 710 711 updateViews(ibModel); 712 break; 713 714 case ROUTED_MESSAGE: 715 RoutedMessageModel rmModel = (RoutedMessageModel)oMessage.value; 716 717 CADMainPane = new TO_RoutedMessage(rmModel, mainTextPane.getDocument()); 718 CADMainPane.addObserver(CADFooterPane); 719 720 if(!pageLocationSaved) 721 pageLocationMap.put(currentScreenNum, CADMainPane.getCurrentPage()); 722 723 updateViews(rmModel); 724 break; 725 726 case BLANK_SCREEN: 727 BlankScreenModel bsModel = (BlankScreenModel)oMessage.value; 728 729 CADMainPane = new CADMainView(mainTextPane.getDocument()); 730 CADMainPane.addObserver(CADFooterPane); 731 732 if(!pageLocationSaved) 733 pageLocationMap.put(currentScreenNum, CADMainPane.getCurrentPage()); 734 735 updateViews(bsModel); 736 break; 737 738 case SCREEN_UPDATE: 739 CADFooterPane.updateStatus(CADScreenModel.updateStringToMap( 740 (String)oMessage.value)); 741 break; 742 743 case TIME_UPDATE: 744 CADFooterPane.updateTime((String)oMessage.value); 745 break; 746 747 case ROUTED_MESSAGE_COUNT_UPDATE: 748 CADFooterPane.updateRoutedMessageCount((Integer)oMessage.value); 749 break; 750 751 case ROUTED_MESSAGE_UNREAD_UPDATE: 752 CADFooterPane.updateUnreadMessages((Boolean)oMessage.value); 753 break; 754 755 case CAD_INFO_MESSAGE: 756 CADFooterPane.displayInfoMessage((String)oMessage.value); 757 break; 758 } 759 } 740 760 } 741 761 -
trunk/src/tmcsim/client/cadclientgui/screens/AssignedIncidents.java
r361 r445 613 613 assignedIncidentsTable.getRowSorter().setSortKeys(keys); 614 614 assignedIncidentsTable.getSelectionModel().setSelectionInterval(index, index); 615 } catch (RemoteException e) 616 { 617 e.printStackTrace(); 615 } catch (RemoteException ex) 616 { 617 System.out.println("RemoteException in refreshTable method of AssignedIncidents.java"); 618 System.out.println(ex.getMessage()); 618 619 } 619 620 revalidate(); -
trunk/src/tmcsim/client/cadclientgui/screens/PendingIncidents.java
r290 r445 525 525 pendingIncidentsTable.getRowSorter().setSortKeys(keys); 526 526 pendingIncidentsTable.getSelectionModel().setSelectionInterval(index, index); 527 } catch (RemoteException e) 528 { 529 e.printStackTrace(); 527 } catch (RemoteException ex) 528 { 529 System.out.println("RemoteException in refreshTable method of PendingIncidents.java"); 530 System.out.println(ex.getMessage()); 531 530 532 } 531 533 revalidate(); -
trunk/src/tmcsim/client/cadclientgui/screens/UnitStatus.java
r201 r445 1075 1075 unitStatusTable.getRowSorter().setSortKeys(keys); 1076 1076 unitStatusTable.getSelectionModel().setSelectionInterval(index, index); 1077 } catch (RemoteException e) 1078 { 1079 e.printStackTrace(); 1077 } catch (RemoteException ex) 1078 { 1079 System.out.println("RemoteException in refreshTable method of UnitStatus.java"); 1080 System.out.println(ex.getMessage()); 1080 1081 } 1081 1082 revalidate(); -
trunk/src/tmcsim/simulationmanager/SimulationManagerModel.java
r6 r445 119 119 theCoorInt.unregisterForCallback(this); 120 120 theCoorInt = null; 121 } catch (Exception e )121 } catch (Exception ex) 122 122 { 123 123 simManagerLogger.logp(Level.SEVERE, "SimulationManagerModel", 124 124 "closeSimManager", "Exception in unregistering Simulation" 125 + "Manager from the CAD Simulator.", e );125 + "Manager from the CAD Simulator.", ex.getMessage()); 126 126 } 127 127 }
Note: See TracChangeset
for help on using the changeset viewer.
