Ignore:
Timestamp:
08/17/12 08:33:29 (12 years ago)
Author:
pharms
Message:
  • adapted task tree creation stuff to more general event handling
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 //------------------------------------------------------------------------------------------------- 
    21// Module    : $RCSfile: DummyInteraction.java,v $ 
    32// Version   : $Revision: 0.0 $  $Author: patrick $  $Date: 02.04.2012 $ 
     
    54// Creation  : 2012 by patrick 
    65// Copyright : Patrick Harms, 2012 
    7 //------------------------------------------------------------------------------------------------- 
     6 
    87package de.ugoe.cs.quest.tasktrees.testutils; 
    98 
    10 import de.ugoe.cs.quest.eventcore.userinteraction.Interaction; 
     9import de.ugoe.cs.quest.eventcore.gui.IInteraction; 
    1110 
    12 //------------------------------------------------------------------------------------------------- 
    1311/** 
    1412 * TODO comment 
     
    1715 * @author 2012, last modified by $Author: patrick$ 
    1816 */ 
    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   } 
     17public class DummyInteraction implements IInteraction { 
     18     
     19    /**  */ 
     20    private static final long serialVersionUID = 1L; 
    4021 
    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; 
    5024 
    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; 
    6127 
    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    } 
    7137 
    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    } 
    8146 
    82   //----------------------------------------------------------------------------------------------- 
    83   /** 
    84    * @return the interactionType 
    85    */ 
    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    } 
    9156 
    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    } 
    10188 
    10289} 
Note: See TracChangeset for help on using the changeset viewer.