- Timestamp:
- 10/05/11 17:29:56 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/commands/CMDcalcCoverage.java
r234 r240 5 5 import java.util.List; 6 6 7 import de.ugoe.cs.eventbench.CommandHelpers; 7 8 import de.ugoe.cs.eventbench.SequenceInstanceOf; 8 9 import de.ugoe.cs.eventbench.coverage.CoverageCalculatorObserved; … … 57 58 observedName); 58 59 if (dataObjectProcess == null) { 59 Co nsole.printerrln("Model " + modelname + " not found in storage.");60 CommandHelpers.objectNotFoundMessage(modelname); 60 61 return; 61 62 } 62 63 if (!(dataObjectProcess instanceof IStochasticProcess)) { 63 Console.printerrln("Object " + modelname 64 + " not of type IStochasticProcess!"); 64 CommandHelpers.objectNotType(modelname, "IStochasticProcess"); 65 65 return; 66 66 } 67 67 if (dataObjectObserved == null) { 68 Co nsole.printerrln("Observed sequences not found in storage.");68 CommandHelpers.objectNotFoundMessage(observedName); 69 69 return; 70 70 } 71 71 if (!SequenceInstanceOf.isCollectionOfSequences(dataObjectObserved)) { 72 Co nsole.printerrln("Object " + observedName73 + " of type Collection<List<Event<?>>>!");72 CommandHelpers.objectNotType(observedName, 73 "Collection<List<Event<?>>>"); 74 74 return; 75 75 } … … 97 97 .getData(sequenceName); 98 98 if (dataObjectSequences == null) { 99 Console.println("Sequences " + sequenceName 100 + " not found in storage."); 99 CommandHelpers.objectNotFoundMessage(sequenceName); 101 100 return; 102 101 } else if (!SequenceInstanceOf 103 102 .isCollectionOfSequences(dataObjectSequences)) { 104 Co nsole.printerrln("Object " + sequenceName105 + "not of type Collection<List<Event<?>!");103 CommandHelpers.objectNotType(sequenceName, 104 "Collection<List<Event<?>>>"); 106 105 return; 107 106 }
Note: See TracChangeset
for help on using the changeset viewer.