source: trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/IEventTargetSpec.java @ 2252

Last change on this file since 2252 was 2146, checked in by pharms, 7 years ago
  • refactored GUI model so that hierarchical event target structures can also be used and created by plugins not being strictly for GUIs
  • Property svn:mime-type set to text/plain
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.eventcore;
16
17import java.io.Serializable;
18
19/**
20 * <p>
21 * Common interface for event target specifications.
22 * </p>
23 *
24 * @version 1.1
25 * @author Patrick Harms, Steffen Herbold
26 */
27public interface IEventTargetSpec extends Serializable {
28
29    /**
30     * <p>
31     * Evaluates if two event target specifications are similar. Similar means that a heuristic
32     * determines that the two event target specifications describe the same event target.
33     * </p>
34     *
35     * @param other
36     *            specification whose similarity to this is evaluated
37     *           
38     * @return true if the specifications are similar; false otherwise
39     */
40    public boolean getSimilarity(IEventTargetSpec other);
41
42    /**
43     * <p>
44     * Defines that {@link IEventTargetSpec} implementations have to define equals.
45     * </p>
46     *
47     * @see Object#equals(Object)
48     */
49    @Override
50    public boolean equals(Object other);
51
52    /**
53     * <p>
54     * Defines that {@link IEventTargetSpec} implementations have to define hashCode.
55     * </p>
56     *
57     * @see Object#hashCode()
58     */
59    @Override
60    public int hashCode();
61}
Note: See TracBrowser for help on using the repository browser.