Last change
on this file since 1747 was
1734,
checked in by rkrimmel, 10 years ago
|
Added automatically created javadoc, still needs to be commented properly though
|
File size:
1.5 KB
|
Line | |
---|
1 | /* |
---|
2 | * |
---|
3 | */ |
---|
4 | package de.ugoe.cs.autoquest.tasktrees.alignment.matrix; |
---|
5 | |
---|
6 | import java.util.LinkedList; |
---|
7 | |
---|
8 | import de.ugoe.cs.autoquest.tasktrees.treeifc.DefaultTaskTraversingVisitor; |
---|
9 | import de.ugoe.cs.autoquest.tasktrees.treeifc.IEventTask; |
---|
10 | import de.ugoe.cs.autoquest.tasktrees.treeifc.IEventTaskInstance; |
---|
11 | |
---|
12 | // TODO: Auto-generated Javadoc |
---|
13 | /** |
---|
14 | * The Class EventTaskInstancesListGenerator. |
---|
15 | */ |
---|
16 | public class EventTaskInstancesListGenerator extends |
---|
17 | DefaultTaskTraversingVisitor { |
---|
18 | |
---|
19 | /** The eventlist. */ |
---|
20 | private LinkedList<IEventTaskInstance> eventlist; |
---|
21 | |
---|
22 | /** |
---|
23 | * Instantiates a new event task instances list generator. |
---|
24 | */ |
---|
25 | public EventTaskInstancesListGenerator() { |
---|
26 | eventlist = new LinkedList<IEventTaskInstance>(); |
---|
27 | } |
---|
28 | |
---|
29 | /** |
---|
30 | * Gets the eventlist. |
---|
31 | * |
---|
32 | * @return the eventlist |
---|
33 | */ |
---|
34 | public LinkedList<IEventTaskInstance> getEventlist() { |
---|
35 | return eventlist; |
---|
36 | } |
---|
37 | |
---|
38 | /** |
---|
39 | * Sets the eventlist. |
---|
40 | * |
---|
41 | * @param eventlist the new eventlist |
---|
42 | */ |
---|
43 | public void setEventlist(LinkedList<IEventTaskInstance> eventlist) { |
---|
44 | this.eventlist = eventlist; |
---|
45 | } |
---|
46 | |
---|
47 | /* (non-Javadoc) |
---|
48 | * @see de.ugoe.cs.autoquest.tasktrees.treeifc.DefaultTaskTraversingVisitor#visit(de.ugoe.cs.autoquest.tasktrees.treeifc.IEventTask) |
---|
49 | */ |
---|
50 | @Override |
---|
51 | public void visit(IEventTask eventTask) { |
---|
52 | if (eventTask.getInstances().size() > 0) { |
---|
53 | final IEventTaskInstance eti = (IEventTaskInstance) eventTask |
---|
54 | .getInstances().iterator().next(); |
---|
55 | // System.out.println("Adding eventtaskinstance to list: " + eti); |
---|
56 | eventlist.add(eti); |
---|
57 | } |
---|
58 | } |
---|
59 | |
---|
60 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.