Changeset 203 for trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/commands/AbstractTrainCommand.java
- Timestamp:
- 09/27/11 20:09:17 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/commands/AbstractTrainCommand.java
r184 r203 2 2 3 3 import java.security.InvalidParameterException; 4 import java.util.Collection; 4 5 import java.util.List; 5 6 … … 68 69 } 69 70 70 List<List<Event<?>>> sequences = null;71 Collection<List<Event<?>>> sequences = null; 71 72 Object dataObject = GlobalDataContainer.getInstance().getData( 72 73 sequencesName); … … 77 78 } 78 79 try { 79 sequences = ( List<List<Event<?>>>) dataObject;80 sequences = (Collection<List<Event<?>>>) dataObject; 80 81 } catch (ClassCastException e) { 81 82 Console.println("Object " + sequencesName 82 + "not of type List<List<Event<?>>>."); 83 + "not of type Collection<List<Event<?>>>."); 84 return; 83 85 } 86 /* TODO implement better type check 84 87 if (sequences.size() == 0 || !(sequences.get(0).get(0) instanceof Event) ) { 85 88 Console.println("Object " + sequencesName 86 + "not of type List<List<Event<?>>>.");89 + "not of type Collection<List<Event<?>>>."); 87 90 return; 88 91 } 92 */ 89 93 90 94 TrieBasedModel model = createModel();
Note: See TracChangeset
for help on using the changeset viewer.