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