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/CMDupdateModel.java

    r184 r203  
    22 
    33import java.security.InvalidParameterException; 
     4import java.util.Collection; 
    45import java.util.List; 
    56 
     
    3839                } 
    3940 
    40                 List<List<Event<?>>> sequences = null; 
     41                Collection<List<Event<?>>> sequences = null; 
    4142                Object dataObject = GlobalDataContainer.getInstance().getData( 
    4243                                sequencesName); 
     
    4748                } 
    4849                try { 
    49                         sequences = (List<List<Event<?>>>) dataObject; 
     50                        sequences = (Collection<List<Event<?>>>) dataObject; 
    5051                } catch (ClassCastException e) { 
    5152                        Console.println("Object " + sequencesName 
    52                                         + "not of type List<List<Event<?>>>."); 
     53                                        + "not of type Collection<List<Event<?>>>."); 
    5354                } 
    5455                if (sequences.size() == 0 
    55                                 || !(sequences.get(0).get(0) instanceof Event)) { 
     56                                || !(sequences.iterator().next().get(0) instanceof Event)) { 
    5657                        Console.println("Object " + sequencesName 
    57                                         + "not of type List<List<Event<?>>>."); 
     58                                        + "not of type Collection<List<Event<?>>>."); 
    5859                        return; 
    5960                } 
Note: See TracChangeset for help on using the changeset viewer.