source: trunk/quest-core-tasktrees-test/src/test/java/de/ugoe/cs/quest/tasktrees/testutils/DummyGUIElement.java @ 589

Last change on this file since 589 was 589, checked in by sherbold, 12 years ago
  • started changing the similarity structure of the GUI model. The equality is now absolute (i.e., boolean instead of an int indicating the degree). Also, lists of equally observed name/hash combinations are now stored. There still seem to be mistakes, however, the structural changes to the interfaces warrant a commit.
File size: 1.5 KB
RevLine 
[445]1// Module    : $RCSfile: DummyGUIElement.java,v $
2// Version   : $Revision: 0.0 $  $Author: patrick $  $Date: 02.04.2012 $
3// Project   : TaskTreeTestUtils
4// Creation  : 2012 by patrick
5// Copyright : Patrick Harms, 2012
[557]6
[445]7package de.ugoe.cs.quest.tasktrees.testutils;
8
[452]9import de.ugoe.cs.quest.eventcore.guimodel.AbstractDefaultGUIElement;
[557]10import de.ugoe.cs.quest.eventcore.guimodel.IGUIElement;
[589]11import de.ugoe.cs.quest.eventcore.guimodel.IGUIElementSpec;
[445]12
13/**
14 * TODO comment
15 *
16 * @version $Revision: $ $Date: 02.04.2012$
17 * @author 2012, last modified by $Author: patrick$
18 */
[557]19public class DummyGUIElement extends AbstractDefaultGUIElement implements IGUIElement {
20   
21    /**  */
22    private static final long serialVersionUID = 1L;
[445]23
[557]24    /** */
25    private String name;
[445]26
[557]27    /**
28     *
29     */
30    public DummyGUIElement(String name) {
[577]31        super(null);
[557]32        this.name = name;
33    }
[445]34
[557]35    /* (non-Javadoc)
36     * @see de.ugoe.cs.quest.eventcore.IEventTarget#getPlatform()
37     */
38    @Override
39    public String getPlatform() {
40        return "Dummy";
41    }
[445]42
[557]43    /*
44     * (non-Javadoc)
45     *
46     * @see java.lang.Object#toString()
47     */
48    @Override
49    public String toString() {
50        return name;
51    }
52
53    /*
54     * (non-Javadoc)
55     *
56     * @see de.harms.attef.userinteraction.GUIElement#equals(GUIElement)
57     */
58    public boolean equals(IGUIElement other) {
59        return this == other;
60    }
61
[589]62    @Override
63    public void updateSpecification(IGUIElementSpec specToIntegrateElementFor) {
64        // dummy
65    }
66
[445]67}
Note: See TracBrowser for help on using the repository browser.