Changeset 206 in tmcsimulator for trunk/src/tmcsim/cadsimulator/CADServer.java


Ignore:
Timestamp:
11/01/2017 12:31:34 PM (9 years ago)
Author:
jdalbey
Message:

TrafficModelManager?.java Refactor to use Observable, along with the view. Add Reload button functionality.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tmcsim/cadsimulator/CADServer.java

    r188 r206  
    2121import tmcsim.cadsimulator.managers.SimulationClockManager; 
    2222import tmcsim.cadsimulator.managers.TrafficModelManager; 
     23import tmcsim.cadsimulator.managers.TrafficModelViewer; 
    2324import tmcsim.cadsimulator.viewer.model.CADSimulatorState; 
    2425import tmcsim.common.SimulationException; 
     
    177178     */ 
    178179    protected static TrafficModelManager theTrafficMgr = null; 
     180    private TrafficModelViewer trafficView = null; 
     181     
    179182    /** 
    180183     * Properties file for the CADSimulator. 
     
    256259                    CAD_PROPERTIES.TRAFFICMGR_PROP_FILE.name), 
    257260                    theCoordinator); 
     261            trafficView = new TrafficModelViewer(theTrafficMgr); 
     262             theTrafficMgr.addObserver(trafficView); 
    258263 
    259264            theMediaMgr = new MediaManager( 
     
    310315 
    311316        theViewer.setVisible(true); 
     317        trafficView.setVisible(true); 
     318 
    312319 
    313320    } 
Note: See TracChangeset for help on using the changeset viewer.