source: branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeimpl/EventTask.java

Last change on this file was 1734, checked in by rkrimmel, 10 years ago

Added automatically created javadoc, still needs to be commented properly though

  • Property svn:executable set to *
File size: 1.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.treeimpl;
16
17import de.ugoe.cs.autoquest.tasktrees.treeifc.IEventTask;
18import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskVisitor;
19
20// TODO: Auto-generated Javadoc
21/**
22 * <p>
23 * this is the default implementation of the interface {@link IEventTask}. It
24 * does not do anything fancy except implementing the interface.
25 * </p>
26 *
27 * @author Patrick Harms
28 */
29class EventTask extends Task implements IEventTask {
30
31        /** <p> default serial version UID </p>. */
32        private static final long serialVersionUID = 1L;
33
34        /**
35         * <p>
36         * simple constructor initializing this task with a description for the
37         * represented events
38         * </p>.
39         *
40         * @param type            a type for the represented events
41         */
42        EventTask(String type) {
43                super(type);
44        }
45
46        /*
47         * (non-Javadoc)
48         *
49         * @see de.ugoe.cs.autoquest.tasktrees.treeimpl.Task#accept(ITaskVisitor)
50         */
51        @Override
52        public void accept(ITaskVisitor visitor) {
53                visitor.visit(this);
54        }
55
56        /*
57         * (non-Javadoc)
58         *
59         * @see de.ugoe.cs.autoquest.tasktrees.treeimpl.Task#clone()
60         */
61        @Override
62        public EventTask clone() {
63                // Event type and target are unchangeable and do not need to be cloned
64                return (EventTask) super.clone();
65        }
66
67}
Note: See TracBrowser for help on using the repository browser.