source: trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeifc/ITaskFactory.java @ 1191

Last change on this file since 1191 was 1191, checked in by pharms, 11 years ago
  • improved java doc
  • Property svn:executable set to *
File size: 2.8 KB
Line 
1//   Copyright 2012 Georg-August-Universität Göttingen, Germany
2//
3//   Licensed under the Apache License, Version 2.0 (the "License");
4//   you may not use this file except in compliance with the License.
5//   You may obtain a copy of the License at
6//
7//       http://www.apache.org/licenses/LICENSE-2.0
8//
9//   Unless required by applicable law or agreed to in writing, software
10//   distributed under the License is distributed on an "AS IS" BASIS,
11//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12//   See the License for the specific language governing permissions and
13//   limitations under the License.
14
15package de.ugoe.cs.autoquest.tasktrees.treeifc;
16
17import java.util.List;
18
19import de.ugoe.cs.autoquest.eventcore.IEventTarget;
20import de.ugoe.cs.autoquest.eventcore.IEventType;
21
22/**
23 * <p>
24 * factory for the different task types
25 * </p>
26 *
27 * @author Patrick Harms
28 */
29public interface ITaskFactory {
30
31    /**
32     * <p>
33     * creates a new event task with the given type and target
34     * </p>
35     *
36     * @param eventType   the type of the event represented by the task
37     * @param eventTarget the target of the event represented by the task
38     *
39     * @return the event task
40     */
41    IEventTask createNewEventTask(IEventType eventType, IEventTarget eventTarget);
42
43    /**
44     * <p>
45     * creates a new empty sequence
46     * </p>
47     *
48     * @return the sequence
49     */
50    ISequence createNewSequence();
51
52    /**
53     * <p>
54     * creates a new empty iteration
55     * </p>
56     *
57     * @return the iteration
58     */
59    IIteration createNewIteration();
60
61    /**
62     * <p>
63     * creates a new empty optional
64     * </p>
65     *
66     * @return the optional
67     */
68    IOptional createNewOptional();
69
70    /**
71     * <p>
72     * creates a new empty selection
73     * </p>
74     *
75     * @return the selection
76     */
77    ISelection createNewSelection();
78
79    /**
80     * <p>
81     * creates a new task instance with the given task as its model
82     * </p>
83     *
84     * @param task the model of the task instance to be created
85     *
86     * @return the task instance
87     */
88    ITaskInstance createNewTaskInstance(ITask task);
89
90    /**
91     * <p>
92     * creates a new empty task instance list
93     * </p>
94     *
95     * @return the task instance list
96     */
97    ITaskInstanceList createNewTaskInstanceList();
98
99    /**
100     * <p>
101     * creates a new empty user session
102     * </p>
103     *
104     * @return the user session
105     */
106    IUserSession createUserSession();
107
108    /**
109     * <p>
110     * creates a task model based on the provided user sessions
111     * </p>
112     *
113     * @param userSessions the session based on which the task model shall be created
114     *
115     * @return the task model
116     */
117    ITaskModel createTaskModel(List<IUserSession> userSessions);
118
119}
Note: See TracBrowser for help on using the repository browser.