source: trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/guimodel/IGUIElementSpec.java @ 831

Last change on this file since 831 was 831, checked in by sherbold, 12 years ago
  • code documentation and clean-up
File size: 1.3 KB
Line 
1
2package de.ugoe.cs.quest.eventcore.guimodel;
3
4import java.io.Serializable;
5
6/**
7 * <p>
8 * Common interface for GUI element specifications.
9 * </p>
10 *
11 * @version 1.0
12 * @author Patrick Harms
13 */
14public interface IGUIElementSpec extends Serializable {
15
16    /**
17     * <p>
18     * Returns a string represenation of the GUI element type that this specification represents.
19     * </p>
20     *
21     * @return
22     */
23    public String getType();
24
25    /**
26     * <p>
27     * Evaluates if two GUI specifications are similar. Similar means that a heuristic determines
28     * that the two GUI specifications describe the same GUI element.
29     * </p>
30     *
31     * @param other
32     *            specification whose similarity to this is evaluated
33     * @return true if the specifications are similar; false otherwise
34     */
35    public boolean getSimilarity(IGUIElementSpec other);
36
37    /**
38     * <p>
39     * Defines that {@link IGUIElement} implementations have to define equals.
40     * </p>
41     *
42     * @see Object#equals(Object)
43     */
44    @Override
45    public boolean equals(Object other);
46
47    /**
48     * <p>
49     * Defines that {@link IGUIElement} implementations have to define hashCode.
50     * </p>
51     *
52     * @see Object#hashCode()
53     */
54    @Override
55    public int hashCode();
56}
Note: See TracBrowser for help on using the repository browser.