Ignore:
Timestamp:
09/27/11 20:09:17 (13 years ago)
Author:
sherbold
Message:
  • Changed data type for handling of sequence-sets. Before, List<List<Event<?>>> was used, now Collection<List<Event<?>>> is used.
File:
1 edited

Legend:

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

    r184 r203  
    22 
    33import java.security.InvalidParameterException; 
     4import java.util.Collection; 
    45import java.util.List; 
    56 
     
    6869                } 
    6970 
    70                 List<List<Event<?>>> sequences = null; 
     71                Collection<List<Event<?>>> sequences = null; 
    7172                Object dataObject = GlobalDataContainer.getInstance().getData( 
    7273                                sequencesName); 
     
    7778                } 
    7879                try { 
    79                         sequences = (List<List<Event<?>>>) dataObject; 
     80                        sequences = (Collection<List<Event<?>>>) dataObject; 
    8081                } catch (ClassCastException e) { 
    8182                        Console.println("Object " + sequencesName 
    82                                         + "not of type List<List<Event<?>>>."); 
     83                                        + "not of type Collection<List<Event<?>>>."); 
     84                        return; 
    8385                } 
     86                /* TODO implement better type check 
    8487                if (sequences.size() == 0 || !(sequences.get(0).get(0) instanceof Event) ) { 
    8588                        Console.println("Object " + sequencesName 
    86                                         + "not of type List<List<Event<?>>>."); 
     89                                        + "not of type Collection<List<Event<?>>>."); 
    8790                        return; 
    8891                } 
     92                */ 
    8993 
    9094                TrieBasedModel model = createModel(); 
Note: See TracChangeset for help on using the changeset viewer.