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