Ignore:
Timestamp:
09/09/11 06:23:36 (13 years ago)
Author:
sherbold
Message:
  • code documentation and formatting
File:
1 edited

Legend:

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

    r26 r171  
    99import de.ugoe.cs.util.console.Console; 
    1010 
     11/** 
     12 * <p> 
     13 * Command that prints a dot representation of a model (if supported) to the 
     14 * console. 
     15 * </p> 
     16 *  
     17 * @author Steffen Herbold 
     18 * @version 1.0 
     19 */ 
    1120public class CMDprintDot implements Command { 
    1221 
     22        /* 
     23         * (non-Javadoc) 
     24         *  
     25         * @see de.ugoe.cs.util.console.Command#help() 
     26         */ 
    1327        @Override 
    1428        public void help() { 
     
    1630        } 
    1731 
     32        /* 
     33         * (non-Javadoc) 
     34         *  
     35         * @see de.ugoe.cs.util.console.Command#run(java.util.List) 
     36         */ 
    1837        @Override 
    1938        public void run(List<Object> parameters) { 
     
    2443                        throw new InvalidParameterException(); 
    2544                } 
    26                  
    27                 IDotCompatible model = null;  
    28                 Object dataObject = GlobalDataContainer.getInstance().getData(modelname); 
    29                 if( dataObject==null ) { 
     45 
     46                IDotCompatible model = null; 
     47                Object dataObject = GlobalDataContainer.getInstance() 
     48                                .getData(modelname); 
     49                if (dataObject == null) { 
    3050                        Console.println("Model " + modelname + "not found in storage."); 
    31                 } 
    32                 else if( !(dataObject instanceof IDotCompatible) ) { 
    33                         Console.println("Object " + modelname + " does not implement IDotCompatible!"); 
     51                } else if (!(dataObject instanceof IDotCompatible)) { 
     52                        Console.println("Object " + modelname 
     53                                        + " does not implement IDotCompatible!"); 
    3454                } else { 
    3555                        model = (IDotCompatible) dataObject; 
Note: See TracChangeset for help on using the changeset viewer.