Changeset 1215 for trunk/autoquest-core-tasktrees/src
- Timestamp:
- 05/27/13 15:24:09 (11 years ago)
- Location:
- trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeimpl
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeimpl/EventTask.java
r1157 r1215 21 21 22 22 /** 23 * TODO comment 24 * 25 * @version $Revision: $ $Date: $ 26 * @author 2011, last modified by $Author: $ 23 * <p> 24 * this is the default implementation of the interface {@link IEventTask}. It does not do anything 25 * fancy except implementing the interface. 26 * </p> 27 * 28 * @author Patrick Harms 27 29 */ 28 30 class EventTask extends Task implements IEventTask { 29 31 30 /** */ 32 /** 33 * <p> 34 * default serial version UID 35 * </p> 36 */ 31 37 private static final long serialVersionUID = 1L; 32 38 33 /** */ 39 /** 40 * <p> 41 * the type of the represented event 42 * </p> 43 */ 34 44 private IEventType eventType; 35 45 36 /** */ 46 /** 47 * <p> 48 * the target of the represented event 49 * </p> 50 */ 37 51 private IEventTarget eventTarget; 38 52 39 53 /** 40 * @param eventType 41 * @param eventTarget 54 * <p> 55 * simple constructor initializing this task with an event type and an event target 56 * </p> 57 * 58 * @param eventType the type of the represented event 59 * @param eventTarget the target of the represented event 42 60 */ 43 61 EventTask(IEventType eventType, IEventTarget eventTarget) { … … 47 65 } 48 66 49 /* *50 * @ return Returns the interaction.67 /* (non-Javadoc) 68 * @see de.ugoe.cs.autoquest.tasktrees.treeifc.IEventTask#getEventType() 51 69 */ 70 @Override 52 71 public IEventType getEventType() { 53 72 return eventType; 54 73 } 55 74 56 /* *57 * @ return Returns the GUIElement.75 /* (non-Javadoc) 76 * @see de.ugoe.cs.autoquest.tasktrees.treeifc.IEventTask#getEventTarget() 58 77 */ 78 @Override 59 79 public IEventTarget getEventTarget() { 60 80 return eventTarget; 61 81 } 62 82 63 /* 64 * (non-Javadoc) 65 * 66 * @see de.harms.tasktrees.TreeNode#clone() 83 /* (non-Javadoc) 84 * @see de.ugoe.cs.autoquest.tasktrees.treeimpl.Task#clone() 67 85 */ 68 86 @Override … … 73 91 74 92 /* (non-Javadoc) 75 * @see de.ugoe.cs.autoquest.tasktrees.treei fc.IEventTask#accept(de.ugoe.cs.autoquest.tasktrees.treeifc.TaskVisitor)93 * @see de.ugoe.cs.autoquest.tasktrees.treeimpl.Task#accept(ITaskVisitor) 76 94 */ 77 95 @Override -
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeimpl/Iteration.java
r1157 r1215 18 18 import de.ugoe.cs.autoquest.tasktrees.treeifc.IOptional; 19 19 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask; 20 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskVisitor;21 20 22 21 /** 23 * TODO comment 24 * 25 * @version $Revision: $ $Date: 19.02.2012$ 26 * @author 2012, last modified by $Author: patrick$ 22 * <p> 23 * this is the default implementation of the interface {@link IIteration}. It does not do anything 24 * fancy except implementing the interface. 25 * </p> 26 * 27 * @author Patrick Harms 27 28 */ 28 29 class Iteration extends MarkingTemporalRelationship implements IIteration { 29 30 30 /** */ 31 /** 32 * <p> 33 * default serial version UID 34 * </p> 35 */ 31 36 private static final long serialVersionUID = 1L; 32 37 33 38 /** 34 * 39 * <p> 40 * simple constructor providing the base class with a human readable name of the type of this 41 * task 42 * </p> 35 43 */ 36 44 Iteration() { … … 39 47 40 48 /* (non-Javadoc) 41 * @see MarkingTemporalRelationship#setMarkedTask(ITask)49 * @see de.ugoe.cs.autoquest.tasktrees.treeimpl.MarkingTemporalRelationship#setMarkedTask(ITask) 42 50 */ 43 51 @Override … … 55 63 } 56 64 57 /* 58 * (non-Javadoc) 59 * 60 * @see java.lang.Object#clone() 65 /* (non-Javadoc) 66 * @see de.ugoe.cs.autoquest.tasktrees.treeimpl.MarkingTemporalRelationship#clone() 61 67 */ 62 68 @Override … … 65 71 } 66 72 67 /* (non-Javadoc)68 * @see de.ugoe.cs.autoquest.tasktrees.treeimpl.TaskTreeNode#accept(de.ugoe.cs.autoquest.tasktrees.treeifc.NodeVisitor)69 */70 @Override71 public void accept(ITaskVisitor visitor) {72 visitor.visit(this);73 }74 75 73 } -
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeimpl/MarkingTemporalRelationship.java
r1146 r1215 20 20 /** 21 21 * <p> 22 * TODO comment 22 * this is the default implementation of the interface {@link IMarkingTemporalRelationship}. It 23 * does not do anything fancy except implementing the interface. 23 24 * </p> 24 25 * … … 29 30 { 30 31 31 /** */ 32 /** 33 * <p> 34 * default serial version UID 35 * </p> 36 */ 32 37 private static final long serialVersionUID = 1L; 33 38 34 39 /** 35 * 40 * <p> 41 * the task marked through this marking temporal relationship 42 * </p> 36 43 */ 37 44 private ITask markedTask; 38 45 39 46 /** 40 * 47 * <p> 48 * a human readable name for this temporal relationship 49 * </p> 41 50 */ 42 51 private String relationshipType; … … 44 53 /** 45 54 * <p> 46 * TODO: comment55 * initializes this temporal relationship with a human readable name 47 56 * </p> 48 57 * 49 * @param description58 * @param relationshipType the human readable name of this temporal relationship 50 59 */ 51 60 MarkingTemporalRelationship(String relationshipType) { … … 83 92 84 93 /** 85 * @param markedTask the markedTask to set 94 * <p> 95 * used to set the marked task 96 * </p> 97 * 98 * @param markedTask the marked task to set 86 99 */ 87 100 protected void setMarkedTask(ITask markedTask) { -
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeimpl/Optional.java
r1157 r1215 17 17 import de.ugoe.cs.autoquest.tasktrees.treeifc.IOptional; 18 18 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask; 19 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskVisitor;20 19 21 20 /** 22 * TODO comment 23 * 24 * @version $Revision: $ $Date: 19.02.2012$ 25 * @author 2012, last modified by $Author: patrick$ 21 * <p> 22 * this is the default implementation of the interface {@link IOptional}. It does not do anything 23 * fancy except implementing the interface. 24 * </p> 25 * 26 * @author Patrick Harms 26 27 */ 27 28 class Optional extends MarkingTemporalRelationship implements IOptional { 28 29 29 /** */ 30 /** 31 * <p> 32 * default serial version UID 33 * </p> 34 */ 30 35 private static final long serialVersionUID = 1L; 31 36 32 37 /** 33 * 38 * <p> 39 * simple constructor providing the base class with a human readable name of the type of this 40 * task 41 * </p> 34 42 */ 35 43 Optional() { … … 38 46 39 47 /* (non-Javadoc) 40 * @see MarkingTemporalRelationship#setMarkedTask(ITask)48 * @see de.ugoe.cs.autoquest.tasktrees.treeimpl.MarkingTemporalRelationship#setMarkedTask(ITask) 41 49 */ 42 50 @Override … … 50 58 } 51 59 52 /* 53 * (non-Javadoc) 54 * 55 * @see java.lang.Object#clone() 60 /* (non-Javadoc) 61 * @see de.ugoe.cs.autoquest.tasktrees.treeimpl.MarkingTemporalRelationship#clone() 56 62 */ 57 63 @Override … … 60 66 } 61 67 62 /* (non-Javadoc)63 * @see de.ugoe.cs.autoquest.tasktrees.treeifc.ITemporalRelationship#accept(de.ugoe.cs.autoquest.tasktrees.treeifc.TaskVisitor)64 */65 @Override66 public void accept(ITaskVisitor visitor) {67 // TODO Auto-generated method stub68 System.out.println("TODO: implement ITemporalRelationship.accept ");69 70 }71 68 } -
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeimpl/Selection.java
r1157 r1215 17 17 import de.ugoe.cs.autoquest.tasktrees.treeifc.ISelection; 18 18 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask; 19 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskVisitor;20 19 21 20 /** 22 * TODO comment 23 * 24 * @version $Revision: $ $Date: 19.02.2012$ 25 * @author 2012, last modified by $Author: patrick$ 21 * <p> 22 * this is the default implementation of the interface {@link ISelection}. It does not do anything 23 * fancy except implementing the interface. 24 * </p> 25 * 26 * @author Patrick Harms 26 27 */ 27 28 class Selection extends StructuringTemporalRelationship implements ISelection { 28 29 29 /** */ 30 /** 31 * <p> 32 * default serial version UID 33 * </p> 34 */ 30 35 private static final long serialVersionUID = 1L; 31 36 32 37 /** 33 * TODO: comment 34 * 35 * @param name 38 * <p> 39 * simple constructor providing the base class with a human readable name of the type of this 40 * task 41 * </p> 36 42 */ 37 43 Selection() { … … 39 45 } 40 46 41 /* 42 * (non-Javadoc) 43 * 44 * @see java.lang.Object#clone() 47 /* (non-Javadoc) 48 * @see de.ugoe.cs.autoquest.tasktrees.treeimpl.StructuringTemporalRelationship#clone() 45 49 */ 46 50 @Override … … 49 53 } 50 54 51 /** 52 * <p> 53 * TODO: comment 54 * </p> 55 * 56 * @param i 57 * @param newChild 55 /* (non-Javadoc) 56 * @see de.ugoe.cs.autoquest.tasktrees.treeimpl.StructuringTemporalRelationship#addChild(ITask) 58 57 */ 59 public void addChild(ITask newChild) { 58 @Override 59 void addChild(ITask newChild) { 60 60 super.addChild(newChild); 61 61 super.setDescription("selection of " + newChild); 62 62 } 63 63 64 /** 65 * <p> 66 * TODO: comment 67 * </p> 68 * 69 * @param i 70 * @param newChild 64 /* (non-Javadoc) 65 * @see de.ugoe.cs.autoquest.tasktrees.treeimpl.StructuringTemporalRelationship#addChild(int,ITask) 71 66 */ 72 public void addChild(int index, ITask newChild) { 67 @Override 68 void addChild(int index, ITask newChild) { 73 69 super.addChild(index, newChild); 74 70 super.setDescription("selection of " + newChild); 75 71 } 76 72 77 /* (non-Javadoc)78 * @see de.ugoe.cs.autoquest.tasktrees.treeifc.ITemporalRelationship#accept(de.ugoe.cs.autoquest.tasktrees.treeifc.TaskVisitor)79 */80 @Override81 public void accept(ITaskVisitor visitor) {82 visitor.visit(this);83 }84 85 73 } -
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeimpl/Sequence.java
r1157 r1215 16 16 17 17 import de.ugoe.cs.autoquest.tasktrees.treeifc.ISequence; 18 import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskVisitor;19 18 20 19 /** 21 * TODO comment 22 * 23 * @version $Revision: $ $Date: 19.02.2012$ 24 * @author 2012, last modified by $Author: patrick$ 20 * <p> 21 * this is the default implementation of the interface {@link ISequence}. It does not do anything 22 * fancy except implementing the interface. 23 * </p> 24 * 25 * @author Patrick Harms 25 26 */ 26 27 class Sequence extends StructuringTemporalRelationship implements ISequence { 27 28 28 /** */ 29 /** 30 * <p> 31 * default serial version UID 32 * </p> 33 */ 29 34 private static final long serialVersionUID = 1L; 30 35 31 36 /** 32 * TODO: comment 33 * 34 * @param name 37 * <p> 38 * simple constructor providing the base class with a human readable name of the type of this 39 * task 40 * </p> 35 41 */ 36 42 Sequence() { … … 38 44 } 39 45 40 /* 41 * (non-Javadoc) 42 * 43 * @see de.ugoe.cs.tasktree.treeimpl.TaskTreeNodeImpl#clone() 46 /* (non-Javadoc) 47 * @see de.ugoe.cs.autoquest.tasktrees.treeimpl.StructuringTemporalRelationship#clone() 44 48 */ 45 49 @Override … … 48 52 } 49 53 50 /* (non-Javadoc)51 * @see de.ugoe.cs.autoquest.tasktrees.treeimpl.TaskTreeNode#accept(de.ugoe.cs.autoquest.tasktrees.treeifc.NodeVisitor)52 */53 @Override54 public void accept(ITaskVisitor visitor) {55 visitor.visit(this);56 }57 58 54 } -
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeimpl/StructuringTemporalRelationship.java
r1146 r1215 23 23 /** 24 24 * <p> 25 * TODO comment 25 * this is the default implementation of the interface {@link IStructuringTemporalRelationship}. It 26 * does not do anything fancy except implementing the interface. 26 27 * </p> 27 28 * … … 32 33 { 33 34 34 /** */ 35 /** 36 * <p> 37 * default serial version UID 38 * </p> 39 */ 35 40 private static final long serialVersionUID = 1L; 36 41 37 42 /** 38 * 43 * <p> 44 * the list of children of this temporal relationship 45 * </p> 39 46 */ 40 47 private List<ITask> children = new LinkedList<ITask>(); … … 42 49 /** 43 50 * <p> 44 * TODO: comment51 * initializes this temporal relationship with a human readable name 45 52 * </p> 46 53 * 47 * @param description54 * @param relationshipType the human readable name of this temporal relationship 48 55 */ 49 56 StructuringTemporalRelationship(String relationshipType) { … … 83 90 /** 84 91 * <p> 85 * TODO: comment92 * used to add a new child to this temporal relationship. 86 93 * </p> 87 94 * 88 * @param i 89 * @param newChild 95 * @param newChild the new child to be added 90 96 */ 91 publicvoid addChild(ITask newChild) {97 void addChild(ITask newChild) { 92 98 children.add(newChild); 93 99 } … … 95 101 /** 96 102 * <p> 97 * TODO: comment103 * used to add a new child to this temporal relationship at a specific position. 98 104 * </p> 99 105 * 100 * @param i 101 * @param newChild 106 * @param index the index of the new child to be added. 107 * @param newChild the new child to be added 102 108 */ 103 publicvoid addChild(int index, ITask newChild) {109 void addChild(int index, ITask newChild) { 104 110 children.add(index, newChild); 105 111 } … … 107 113 /** 108 114 * <p> 109 * TODO: comment115 * removes a child from this temporal relationship at a specific position. 110 116 * </p> 111 117 * 112 * @param index 118 * @param index the index of the child to be removed. 113 119 */ 114 120 void removeChild(int index) { -
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeimpl/Task.java
r1157 r1215 19 19 20 20 /** 21 * TODO comment 21 * <p> 22 * this is the default implementation of the interface {@link ITask}. It 23 * does not do anything fancy except implementing the interface. 24 * </p> 22 25 * 23 * @version $Revision: $ $Date: $ 24 * @author 2011, last modified by $Author: $ 26 * @author Patrick Harms 25 27 */ 26 28 class Task implements ITask { 27 29 28 /** */ 30 /** 31 * <p> 32 * default serial version UID 33 * </p> 34 */ 29 35 private static final long serialVersionUID = 1L; 30 36 31 /** */ 37 /** 38 * <p> 39 * used as a counter to generate new ids for each newly created task. May overflow. 40 * </p> 41 */ 32 42 private static int temporalId = 0; 33 43 34 /** */ 44 /** 45 * <p> 46 * the id of the task (unique throughout the system as long as {@link #temporalId} does not 47 * overflow. 48 * </p> 49 */ 35 50 private int id; 36 51 37 /** */ 52 /** 53 * <p> 54 * a human readable description of the task 55 * </p> 56 */ 38 57 private String description; 39 58 40 59 /** 41 * 60 * <p> 61 * constructs a new task with a new id. The id is generated using the {@link #getNewId()} 62 * methdod 63 * </p> 42 64 */ 43 65 Task() { … … 46 68 47 69 /** 48 * TODO: comment 70 * <p> 71 * creates a new id for a task using {@link #temporalId} by incrementing it an returning its 72 * current value. Resets the counter if {@link Integer.MAX_VALUE} is reached. 73 * </p> 49 74 * 50 * @return 75 * @return a new unique id for a task as long as {@link #temporalId} does not overflow 51 76 */ 52 77 private static synchronized int getNewId() { … … 58 83 } 59 84 60 /* *61 * @ return Returns the name.85 /* (non-Javadoc) 86 * @see de.ugoe.cs.autoquest.tasktrees.treeifc.ITask#geId() 62 87 */ 88 @Override 63 89 public int getId() { 64 90 return id; 65 91 } 66 92 67 /* 68 * (non-Javadoc) 69 * 70 * @see de.ugoe.cs.tasktree.treeifc.TaskTreeNode#getDescription() 93 /* (non-Javadoc) 94 * @see de.ugoe.cs.autoquest.tasktrees.treeifc.ITask#getDescription() 71 95 */ 72 96 @Override … … 75 99 } 76 100 77 /* 78 * (non-Javadoc) 79 * 80 * @see de.ugoe.cs.autoquest.tasktrees.treeifc.TaskTreeNode#equals(TaskTreeNode) 101 /* (non-Javadoc) 102 * @see de.ugoe.cs.autoquest.tasktrees.treeifc.ITask#equals(ITask) 81 103 */ 82 104 @Override … … 87 109 } 88 110 89 /* 90 * (non-Javadoc) 91 * 92 * @see java.lang.Object#hashCode() 111 /* (non-Javadoc) 112 * @see de.ugoe.cs.autoquest.tasktrees.treeifc.ITask#hashCode() 93 113 */ 94 114 @Override … … 97 117 } 98 118 99 /* 100 * (non-Javadoc) 101 * 119 /* (non-Javadoc) 102 120 * @see java.lang.Object#toString() 103 121 */ … … 117 135 } 118 136 119 /* 120 * (non-Javadoc) 121 * 122 * @see java.lang.Object#clone() 137 /* (non-Javadoc) 138 * @see de.ugoe.cs.autoquest.tasktrees.treeifc.ITask#clone() 123 139 */ 124 140 @Override … … 137 153 138 154 /** 139 * TODO: comment 155 * <p> 156 * internally used to set the human readable description of the task 157 * </p> 140 158 * 141 * @param i 142 * @return 159 * @param description the new human readable description of the task 143 160 */ 144 161 void setDescription(String description) { … … 147 164 148 165 /* (non-Javadoc) 149 * @see de.ugoe.cs.autoquest.tasktrees.treeifc.ITask#accept( de.ugoe.cs.autoquest.tasktrees.treeifc.TaskVisitor)166 * @see de.ugoe.cs.autoquest.tasktrees.treeifc.ITask#accept(ITaskVisitor) 150 167 */ 151 168 @Override
Note: See TracChangeset
for help on using the changeset viewer.