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/CMDmodelSize.java

    r131 r171  
    1 /** 
    2  *  
    3  */ 
    41package de.ugoe.cs.eventbench.commands; 
    52 
     
    1310 
    1411/** 
    15  * @author sherbold 
    16  * 
     12 * <p> 
     13 * Command that prints the size of a stochastic process to the console. 
     14 * </p> 
     15 *  
     16 * @author Steffen Herbold 
     17 * @version 1.0 
    1718 */ 
    1819public class CMDmodelSize implements Command { 
    1920 
    20         /* (non-Javadoc) 
     21        /* 
     22         * (non-Javadoc) 
     23         *  
    2124         * @see de.ugoe.cs.util.console.Command#run(java.util.List) 
    2225         */ 
     
    2932                        throw new InvalidParameterException(); 
    3033                } 
    31                  
    32                 Object dataObject = GlobalDataContainer.getInstance().getData(modelname); 
    33                 if( dataObject==null ) { 
     34 
     35                Object dataObject = GlobalDataContainer.getInstance() 
     36                                .getData(modelname); 
     37                if (dataObject == null) { 
    3438                        Console.printerrln("No model with name " + modelname + "found"); 
    3539                        return; 
    3640                } 
    37                 if( !(dataObject instanceof IStochasticProcess) ) { 
    38                         Console.printerrln("Object " + modelname + " not of type IStochasticProcess!"); 
     41                if (!(dataObject instanceof IStochasticProcess)) { 
     42                        Console.printerrln("Object " + modelname 
     43                                        + " not of type IStochasticProcess!"); 
    3944                        return; 
    4045                } 
    41                  
     46 
    4247                IStochasticProcess process = (IStochasticProcess) dataObject; 
    43                 Console.println("#symbols: " + process.getNumSymbols() + " ; #FOMstates " + process.getNumFOMStates()); 
     48                Console.println("#symbols: " + process.getNumSymbols() 
     49                                + " ; #FOMstates " + process.getNumFOMStates()); 
    4450        } 
    4551 
    46         /* (non-Javadoc) 
     52        /* 
     53         * (non-Javadoc) 
     54         *  
    4755         * @see de.ugoe.cs.util.console.Command#help() 
    4856         */ 
Note: See TracChangeset for help on using the changeset viewer.