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
RevLine 
[1113]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
[922]15package de.ugoe.cs.autoquest.tasktrees.treeifc;
[439]16
[1146]17import java.util.List;
18
[922]19import de.ugoe.cs.autoquest.eventcore.IEventTarget;
20import de.ugoe.cs.autoquest.eventcore.IEventType;
[439]21
22/**
[1191]23 * <p>
24 * factory for the different task types
25 * </p>
[439]26 *
[1191]27 * @author Patrick Harms
[439]28 */
[1146]29public interface ITaskFactory {
[439]30
[1146]31    /**
[1191]32     * <p>
33     * creates a new event task with the given type and target
34     * </p>
[1146]35     *
[1191]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
[1146]40     */
41    IEventTask createNewEventTask(IEventType eventType, IEventTarget eventTarget);
[439]42
[1146]43    /**
[1191]44     * <p>
45     * creates a new empty sequence
46     * </p>
[1146]47     *
[1191]48     * @return the sequence
[1146]49     */
50    ISequence createNewSequence();
[439]51
[1146]52    /**
[1191]53     * <p>
54     * creates a new empty iteration
55     * </p>
[1146]56     *
[1191]57     * @return the iteration
[1146]58     */
59    IIteration createNewIteration();
[439]60
[1146]61    /**
[1191]62     * <p>
63     * creates a new empty optional
64     * </p>
[1146]65     *
[1191]66     * @return the optional
[1146]67     */
68    IOptional createNewOptional();
[1126]69
[1146]70    /**
[1191]71     * <p>
72     * creates a new empty selection
73     * </p>
[1146]74     *
[1191]75     * @return the selection
[1146]76     */
77    ISelection createNewSelection();
[439]78
[1146]79    /**
[1191]80     * <p>
81     * creates a new task instance with the given task as its model
82     * </p>
[1146]83     *
[1191]84     * @param task the model of the task instance to be created
85     *
86     * @return the task instance
[1146]87     */
88    ITaskInstance createNewTaskInstance(ITask task);
[439]89
[1146]90    /**
[1191]91     * <p>
92     * creates a new empty task instance list
93     * </p>
94     *
95     * @return the task instance list
[1146]96     */
97    ITaskInstanceList createNewTaskInstanceList();
98
99    /**
[1191]100     * <p>
101     * creates a new empty user session
102     * </p>
[1146]103     *
[1191]104     * @return the user session
[1146]105     */
106    IUserSession createUserSession();
107
108    /**
[1191]109     * <p>
110     * creates a task model based on the provided user sessions
111     * </p>
[1146]112     *
[1191]113     * @param userSessions the session based on which the task model shall be created
114     *
115     * @return the task model
[1146]116     */
117    ITaskModel createTaskModel(List<IUserSession> userSessions);
118
[439]119}
Note: See TracBrowser for help on using the repository browser.