source: trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeimpl/EventTaskInstance.java @ 1294

Last change on this file since 1294 was 1294, checked in by pharms, 11 years ago
  • rework of task model to move event instance stuff to task instances
  • introduction of sequence, selection, iteration and optional instances
File size: 2.1 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.treeimpl;
16
17import de.ugoe.cs.autoquest.eventcore.Event;
18import de.ugoe.cs.autoquest.tasktrees.treeifc.IEventTask;
19import de.ugoe.cs.autoquest.tasktrees.treeifc.IEventTaskInstance;
20
21/**
22 * <p>
23 * TODO comment
24 * </p>
25 *
26 * @author Patrick Harms
27 */
28class EventTaskInstance extends TaskInstance implements IEventTaskInstance {
29
30    /**
31     * <p>
32     * default serial version UID
33     * </p>
34     */
35    private static final long serialVersionUID = 1L;
36   
37    /**
38     * <p>
39     * the event represented by this instance
40     * </p>
41     */
42    private Event event;
43
44    /**
45     * <p>
46     * TODO: comment
47     * </p>
48     *
49     * @param task
50     * @param event
51     */
52    EventTaskInstance(IEventTask task, Event event) {
53        super(task);
54        this.event = event;
55    }
56
57    /* (non-Javadoc)
58     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.IEventTaskInstance#getEvent()
59     */
60    @Override
61    public Event getEvent() {
62        return event;
63    }
64
65    /* (non-Javadoc)
66     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.IEventTaskInstance#getEventTask()
67     */
68    @Override
69    public IEventTask getEventTask() {
70        return (IEventTask) super.getTask();
71    }
72
73    /* (non-Javadoc)
74     * @see de.ugoe.cs.autoquest.tasktrees.treeimpl.IEventTaskInstance#clone()
75     */
76    @Override
77    public synchronized IEventTaskInstance clone() {
78        return (IEventTaskInstance) super.clone();
79    }
80
81}
Note: See TracBrowser for help on using the repository browser.