Changeset 324


Ignore:
Timestamp:
12/16/11 10:17:25 (13 years ago)
Author:
sherbold
Message:
  • changed signature of de.ugoe.cs.util.eventbench.models.TrieBasedModel?.train() and update() from using Collection<List<Event<?>>> to Collection<List<? extends Event<?>>>
Location:
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench
Files:
3 edited

Legend:

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

    r246 r324  
    8181                        return; 
    8282                } 
    83                 Collection<List<Event<?>>> sequences = (Collection<List<Event<?>>>) dataObject; 
     83                Collection<List<? extends Event<?>>> sequences = (Collection<List<? extends Event<?>>>) dataObject; 
    8484 
    8585                TrieBasedModel model = createModel(); 
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/commands/CMDupdateModel.java

    r240 r324  
    5252                        return; 
    5353                } 
    54                 Collection<List<Event<?>>> sequences = (Collection<List<Event<?>>>) dataObject; 
     54                Collection<List<? extends Event<?>>> sequences = (Collection<List<? extends Event<?>>>) dataObject; 
    5555 
    5656                dataObject = GlobalDataContainer.getInstance().getData(modelname); 
  • trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/efg/EFGModelGenerator.java

    r227 r324  
    4444                EFG efg = (EFG) IO.readObjFromFile(efgFileName, EFG.class); 
    4545 
    46                 Collection<List<Event<?>>> subsequences = generateEdgeSequences(efg); 
     46                Collection<List<? extends Event<?>>> subsequences = generateEdgeSequences(efg); 
    4747                FirstOrderMarkovModel model = new FirstOrderMarkovModel(new Random()); 
    4848                model.train(subsequences); 
     
    6363                EFG efg = (EFG) IO.readObjFromFile(efgFileName, EFG.class); 
    6464 
    65                 Collection<List<Event<?>>> subsequences = generateEdgeSequences(efg); 
     65                Collection<List<? extends Event<?>>> subsequences = generateEdgeSequences(efg); 
    6666                DeterministicFiniteAutomaton model = new DeterministicFiniteAutomaton( 
    6767                                new Random()); 
     
    8181         * @return edge sequence set 
    8282         */ 
    83         private Collection<List<Event<?>>> generateEdgeSequences(EFG efg) { 
     83        private Collection<List<? extends Event<?>>> generateEdgeSequences(EFG efg) { 
    8484                List<Event<?>> events = createEvents(efg); 
    8585                /* 
     
    8989                 */ 
    9090                EventGraphType efgGraph = efg.getEventGraph(); 
    91                 Collection<List<Event<?>>> subsequences = new LinkedList<List<Event<?>>>(); 
     91                Collection<List<? extends Event<?>>> subsequences = new LinkedList<List<? extends Event<?>>>(); 
    9292 
    9393                int efgSize = events.size(); 
Note: See TracChangeset for help on using the changeset viewer.