Ignore:
Timestamp:
08/31/12 11:07:58 (12 years ago)
Author:
pharms
Message:
  • added command to generate task trees based on a sequence
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-core-tasktrees/src/main/java/de/ugoe/cs/quest/tasktrees/manager/TaskTreeManager.java

    r725 r727  
    11package de.ugoe.cs.quest.tasktrees.manager; 
    22 
     3import java.util.Collection; 
     4import java.util.List; 
    35import java.util.logging.Level; 
    46 
     
    4345    public TaskTreeManager() { 
    4446        rootSequence = taskTreeNodeFactory.createNewSequence(); 
     47    } 
     48 
     49    /** 
     50     * <p> 
     51     * TODO: comment 
     52     * </p> 
     53     * 
     54     * @param sequences 
     55     * @return 
     56     */ 
     57    public synchronized ITaskTree createTaskTree(Collection<List<Event>> sequences) { 
     58         
     59        for (List<Event> sequence : sequences) { 
     60            for (Event event : sequence) { 
     61                handleNewEvent(event); 
     62            } 
     63        } 
     64         
     65        return getTaskTree(); 
    4566    } 
    4667 
Note: See TracChangeset for help on using the changeset viewer.