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 | |
---|
15 | package de.ugoe.cs.autoquest.tasktrees.treeifc;
|
---|
16 |
|
---|
17 | import de.ugoe.cs.autoquest.eventcore.IEventTarget;
|
---|
18 | import de.ugoe.cs.autoquest.eventcore.IEventType;
|
---|
19 |
|
---|
20 | /**
|
---|
21 | * <p> |
---|
22 | * Event tasks represent single events. They have no children and are therefore the leaf nodes of |
---|
23 | * a task model. They provide information about the event they represent. This includes the event |
---|
24 | * type and the target. |
---|
25 | * </p>
|
---|
26 | *
|
---|
27 | * @author Patrick Harms
|
---|
28 | */
|
---|
29 | public interface IEventTask extends ITask {
|
---|
30 |
|
---|
31 | /** |
---|
32 | * <p> |
---|
33 | * return the type of the event represented by this task |
---|
34 | * </p> |
---|
35 | *
|
---|
36 | * @return as described
|
---|
37 | */
|
---|
38 | public IEventType getEventType();
|
---|
39 |
|
---|
40 | /**
|
---|
41 | * <p> |
---|
42 | * return the target of the event represented by this task |
---|
43 | * </p> |
---|
44 | * |
---|
45 | * @return as described |
---|
46 | */
|
---|
47 | public IEventTarget getEventTarget();
|
---|
48 |
|
---|
49 | /**
|
---|
50 | * <p> |
---|
51 | * returns a clone of this task, i.e. another event task being identical to this. The event |
---|
52 | * type and target are not cloned but reused. |
---|
53 | * </p> |
---|
54 | * |
---|
55 | * @return as described |
---|
56 | */
|
---|
57 | public IEventTask clone();
|
---|
58 |
|
---|
59 | }
|
---|