Changeset 18 for trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/commands/CMDgenerateRandomReplay.java
- Timestamp:
- 04/14/11 11:12:06 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/commands/CMDgenerateRandomReplay.java
r1 r18 8 8 import de.ugoe.cs.eventbench.data.GlobalDataContainer; 9 9 import de.ugoe.cs.eventbench.data.ReplayableEvent; 10 import de.ugoe.cs.eventbench.m arkov.MarkovModel;10 import de.ugoe.cs.eventbench.models.IStochasticProcess; 11 11 import de.ugoe.cs.util.console.Command; 12 12 import de.ugoe.cs.util.console.Console; … … 36 36 } 37 37 38 MarkovModelmodel = null;38 IStochasticProcess model = null; 39 39 Object dataObject = GlobalDataContainer.getInstance().getData(modelname); 40 40 if( dataObject==null ) { 41 41 Console.println("Model " + modelname + " not found in storage."); 42 42 } 43 else if( !(dataObject instanceof MarkovModel) ) {43 else if( !(dataObject instanceof IStochasticProcess) ) { 44 44 Console.println("Object " + modelname + " not of type MarkovModel!"); 45 45 } else { 46 model = ( MarkovModel) dataObject;46 model = (IStochasticProcess) dataObject; 47 47 List<List<ReplayableEvent<?>>> sequences = new LinkedList<List<ReplayableEvent<?>>>(); 48 48 try {
Note: See TracChangeset
for help on using the changeset viewer.