Changeset 557 for trunk/quest-core-tasktrees-test/src/test/java/de/ugoe/cs/quest/tasktrees/testutils/DummyInteraction.java
- Timestamp:
- 08/17/12 08:33:29 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-core-tasktrees-test/src/test/java/de/ugoe/cs/quest/tasktrees/testutils/DummyInteraction.java
r452 r557 1 //-------------------------------------------------------------------------------------------------2 1 // Module : $RCSfile: DummyInteraction.java,v $ 3 2 // Version : $Revision: 0.0 $ $Author: patrick $ $Date: 02.04.2012 $ … … 5 4 // Creation : 2012 by patrick 6 5 // Copyright : Patrick Harms, 2012 7 //------------------------------------------------------------------------------------------------- 6 8 7 package de.ugoe.cs.quest.tasktrees.testutils; 9 8 10 import de.ugoe.cs.quest.eventcore. userinteraction.Interaction;9 import de.ugoe.cs.quest.eventcore.gui.IInteraction; 11 10 12 //-------------------------------------------------------------------------------------------------13 11 /** 14 12 * TODO comment … … 17 15 * @author 2012, last modified by $Author: patrick$ 18 16 */ 19 //------------------------------------------------------------------------------------------------- 20 public class DummyInteraction implements Interaction 21 { 22 /** */ 23 private int mInteractionNumber; 24 25 /** */ 26 private String mInteractionType; 27 28 //----------------------------------------------------------------------------------------------- 29 /** 30 * @param interactionNumber 31 * @param interactionType 32 */ 33 //----------------------------------------------------------------------------------------------- 34 public DummyInteraction(String interactionType, int interactionNumber) 35 { 36 super(); 37 mInteractionNumber = interactionNumber; 38 mInteractionType = interactionType; 39 } 17 public class DummyInteraction implements IInteraction { 18 19 /** */ 20 private static final long serialVersionUID = 1L; 40 21 41 //----------------------------------------------------------------------------------------------- 42 /* (non-Javadoc) 43 * @see de.harms.attef.userinteraction.Interaction#getName() 44 */ 45 //----------------------------------------------------------------------------------------------- 46 public String getName() 47 { 48 return mInteractionType; 49 } 22 /** */ 23 private int interactionNumber; 50 24 51 //----------------------------------------------------------------------------------------------- 52 /* (non-Javadoc) 53 * @see java.lang.Object#toString() 54 */ 55 //----------------------------------------------------------------------------------------------- 56 @Override 57 public String toString() 58 { 59 return mInteractionType; 60 } 25 /** */ 26 private String interactionType; 61 27 62 //-----------------------------------------------------------------------------------------------63 /* (non-Javadoc)64 * @see de.harms.attef.userinteraction.Interaction#startsLogicalSequence()65 */66 //-----------------------------------------------------------------------------------------------67 public boolean startsLogicalSequence()68 {69 return false;70 }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 } 71 37 72 //----------------------------------------------------------------------------------------------- 73 /* (non-Javadoc) 74 * @see de.harms.attef.userinteraction.Interaction#finishesLogicalSequence() 75 */ 76 //----------------------------------------------------------------------------------------------- 77 public boolean finishesLogicalSequence() 78 { 79 return false; 80 } 38 /* 39 * (non-Javadoc) 40 * 41 * @see de.harms.attef.userinteraction.Interaction#getName() 42 */ 43 public String getName() { 44 return interactionType; 45 } 81 46 82 //-----------------------------------------------------------------------------------------------83 /**84 * @return the interactionType85 */86 //-----------------------------------------------------------------------------------------------87 public String getInteractionType()88 {89 return mInteractionType;90 }47 /* 48 * (non-Javadoc) 49 * 50 * @see java.lang.Object#toString() 51 */ 52 @Override 53 public String toString() { 54 return interactionType; 55 } 91 56 92 //----------------------------------------------------------------------------------------------- 93 /** 94 * @return the interactionNumber 95 */ 96 //----------------------------------------------------------------------------------------------- 97 public int getInteractionNumber() 98 { 99 return mInteractionNumber; 100 } 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 } 101 88 102 89 }
Note: See TracChangeset
for help on using the changeset viewer.