Ignore:
Timestamp:
09/28/11 03:03:13 (13 years ago)
Author:
sherbold
Message:
  • greatly improved type checking and consistency of type checking for objects checked out of the GlobalDataContainer?
File:
1 edited

Legend:

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

    r171 r209  
    4949                if (dataObject == null) { 
    5050                        Console.println("Model " + modelname + " not found in storage."); 
    51                 } else if (!(dataObject instanceof IStochasticProcess)) { 
     51                        return; 
     52                } 
     53                if (!(dataObject instanceof IStochasticProcess)) { 
    5254                        Console.println("Object " + modelname + " not of type MarkovModel!"); 
    53                 } else { 
    54                         model = (IStochasticProcess) dataObject; 
    55                         for (Event<?> event : model.randomSequence()) { 
    56                                 Console.println(event.toString()); 
    57                         } 
     55                        return; 
     56                } 
     57 
     58                model = (IStochasticProcess) dataObject; 
     59                for (Event<?> event : model.randomSequence()) { 
     60                        Console.println(event.toString()); 
    5861                } 
    5962        } 
Note: See TracChangeset for help on using the changeset viewer.