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<?>>>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.