Ignore:
Timestamp:
06/23/2016 06:30:20 PM (10 years ago)
Author:
jdalbey
Message:

MultiFile? commit: Add CADViewer Interface and change CADSimulator to Observer Pattern.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tmcsim/cadsimulator/managers/MediaManager.java

    r2 r44  
    1919import tmcsim.cadsimulator.videocontrol.DVDStatusUpdate; 
    2020import tmcsim.cadsimulator.videocontrol.DVDTitleUpdate; 
    21 import tmcsim.cadsimulator.viewer.CADSimulatorViewer; 
     21import tmcsim.cadsimulator.viewer.model.CADSimulatorModel; 
    2222import tmcsim.common.CCTVDirections; 
    2323import tmcsim.common.CCTVInfo; 
     
    7373    private StillImagesDB theImage_DB = null; 
    7474     
    75     /** Reference to the CADSimulatorViewer. */ 
    76     private CADSimulatorViewer theViewer; 
     75    /** Reference to the CADSimulatorModel. */ 
     76    private CADSimulatorModel theModel; 
    7777 
    7878    /** Properties object for the Media portion of the CAD. */ 
     
    9090     */ 
    9191    public MediaManager(String propertiesFile, ATMSManager theATMSManager,  
    92             CADSimulatorViewer viewer) { 
     92            CADSimulatorModel model) { 
    9393        theDVD_DB   = new DVDPlayerDB();         
    9494        theImage_DB = new StillImagesDB(); 
    9595         
    96         theViewer = viewer; 
     96        theModel = model; 
    9797 
    9898        try { 
     
    166166                        ((DVDStatusUpdate)arg).exception); 
    167167            } 
    168             theViewer.updateDVDStatus((DVDStatusUpdate)arg); 
     168            theModel.updateDVDStatus((DVDStatusUpdate)arg); 
    169169        } 
    170170        else if(arg instanceof DVDTitleUpdate) { 
    171             theViewer.updateDVDTitle((DVDTitleUpdate)arg); 
     171            theModel.updateDVDTitle((DVDTitleUpdate)arg); 
    172172        } 
    173173    } 
Note: See TracChangeset for help on using the changeset viewer.