Changeset 26 for trunk


Ignore:
Timestamp:
04/14/11 13:52:46 (14 years ago)
Author:
sherbold
Message:
  • apdated CMDprintDot to de.ugoe.cs.eventbench.models.IDotCompatible
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/commands/CMDprintDot.java

    r20 r26  
    55 
    66import de.ugoe.cs.eventbench.data.GlobalDataContainer; 
    7 import de.ugoe.cs.eventbench.models.DotPrinter; 
     7import de.ugoe.cs.eventbench.models.IDotCompatible; 
    88import de.ugoe.cs.util.console.Command; 
    99import de.ugoe.cs.util.console.Console; 
     
    2525                } 
    2626                 
    27                 DotPrinter model = null;  
     27                IDotCompatible model = null;  
    2828                Object dataObject = GlobalDataContainer.getInstance().getData(modelname); 
    2929                if( dataObject==null ) { 
    3030                        Console.println("Model " + modelname + "not found in storage."); 
    3131                } 
    32                 else if( !(dataObject instanceof DotPrinter) ) { 
    33                         Console.println("Object " + modelname + " does not implement DotPrinter!"); 
     32                else if( !(dataObject instanceof IDotCompatible) ) { 
     33                        Console.println("Object " + modelname + " does not implement IDotCompatible!"); 
    3434                } else { 
    35                         model = (DotPrinter) dataObject; 
    36                         model.printDot(); 
     35                        model = (IDotCompatible) dataObject; 
     36                        Console.println(model.getDotRepresentation()); 
    3737                } 
    3838        } 
Note: See TracChangeset for help on using the changeset viewer.