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

Last change on this file since 557 was 557, checked in by pharms, 12 years ago
  • adapted task tree creation stuff to more general event handling
File size: 1.9 KB
Line 
1// Module    : $RCSfile: DummyInteraction.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
6
7package de.ugoe.cs.quest.tasktrees.testutils;
8
9import de.ugoe.cs.quest.eventcore.gui.IInteraction;
10
11/**
12 * TODO comment
13 *
14 * @version $Revision: $ $Date: 02.04.2012$
15 * @author 2012, last modified by $Author: patrick$
16 */
17public class DummyInteraction implements IInteraction {
18   
19    /**  */
20    private static final long serialVersionUID = 1L;
21
22    /** */
23    private int interactionNumber;
24
25    /** */
26    private String interactionType;
27
28    /**
29     * @param interactionNumber
30     * @param interactionType
31     */
32    public DummyInteraction(String interactionType, int interactionNumber) {
33        super();
34        this.interactionNumber = interactionNumber;
35        this.interactionType = interactionType;
36    }
37
38    /*
39     * (non-Javadoc)
40     *
41     * @see de.harms.attef.userinteraction.Interaction#getName()
42     */
43    public String getName() {
44        return interactionType;
45    }
46
47    /*
48     * (non-Javadoc)
49     *
50     * @see java.lang.Object#toString()
51     */
52    @Override
53    public String toString() {
54        return interactionType;
55    }
56
57    /*
58     * (non-Javadoc)
59     *
60     * @see de.harms.attef.userinteraction.Interaction#startsLogicalSequence()
61     */
62    public boolean startsLogicalSequence() {
63        return false;
64    }
65
66    /*
67     * (non-Javadoc)
68     *
69     * @see de.harms.attef.userinteraction.Interaction#finishesLogicalSequence()
70     */
71    public boolean finishesLogicalSequence() {
72        return false;
73    }
74
75    /**
76     * @return the interactionType
77     */
78    public String getInteractionType() {
79        return interactionType;
80    }
81
82    /**
83     * @return the interactionNumber
84     */
85    public int getInteractionNumber() {
86        return interactionNumber;
87    }
88
89}
Note: See TracBrowser for help on using the repository browser.