- Timestamp:
- 04/14/11 13:52:46 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/commands/CMDprintDot.java
r20 r26 5 5 6 6 import de.ugoe.cs.eventbench.data.GlobalDataContainer; 7 import de.ugoe.cs.eventbench.models. DotPrinter;7 import de.ugoe.cs.eventbench.models.IDotCompatible; 8 8 import de.ugoe.cs.util.console.Command; 9 9 import de.ugoe.cs.util.console.Console; … … 25 25 } 26 26 27 DotPrintermodel = null;27 IDotCompatible model = null; 28 28 Object dataObject = GlobalDataContainer.getInstance().getData(modelname); 29 29 if( dataObject==null ) { 30 30 Console.println("Model " + modelname + "not found in storage."); 31 31 } 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!"); 34 34 } else { 35 model = ( DotPrinter) dataObject;36 model.printDot();35 model = (IDotCompatible) dataObject; 36 Console.println(model.getDotRepresentation()); 37 37 } 38 38 }
Note: See TracChangeset
for help on using the changeset viewer.