Changeset 1357 for trunk/autoquest-core-tasktrees/src/main/java
- Timestamp:
- 02/07/14 18:08:10 (11 years ago)
- Location:
- trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeifc/ITask.java
r1294 r1357 44 44 /** 45 45 * <p> 46 * returns a human readable description for task. 46 * returns a human readable type for the task. 47 * </p> 48 * 49 * @return as described 50 */ 51 public String getType(); 52 53 /** 54 * <p> 55 * returns a human readable description for the task. 47 56 * </p> 48 57 * -
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeimpl/EventTask.java
r1294 r1357 43 43 */ 44 44 EventTask(String description) { 45 super .setDescription(description);45 super(description); 46 46 } 47 47 -
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeimpl/MarkingTemporalRelationship.java
r1215 r1357 46 46 /** 47 47 * <p> 48 * a human readable name for this temporal relationship49 * </p>50 */51 private String relationshipType;52 53 /**54 * <p>55 48 * initializes this temporal relationship with a human readable name 56 49 * </p> … … 59 52 */ 60 53 MarkingTemporalRelationship(String relationshipType) { 54 super(relationshipType); 55 61 56 if ((relationshipType == null) || ("".equals(relationshipType))) { 62 57 throw new IllegalArgumentException 63 58 ("the relationship type must be something meaningful"); 64 59 } 65 66 this.relationshipType = relationshipType;67 super.setDescription(this.relationshipType);68 60 } 69 61 … … 101 93 this.markedTask = markedTask; 102 94 103 super.setDescription( relationshipType + " of " + markedTask);95 super.setDescription(markedTask.toString()); 104 96 } 105 97 -
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeimpl/StructuringTemporalRelationship.java
r1215 r1357 55 55 */ 56 56 StructuringTemporalRelationship(String relationshipType) { 57 super(relationshipType); 58 57 59 if ((relationshipType == null) || ("".equals(relationshipType))) { 58 60 throw new IllegalArgumentException 59 61 ("the relationship type must be something meaningful"); 60 62 } 61 62 super.setDescription(relationshipType);63 63 } 64 64 -
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/treeimpl/Task.java
r1294 r1357 54 54 */ 55 55 private int id; 56 57 /** 58 * <p> 59 * a human readable type of the task (used for visualization purposes) 60 * </p> 61 */ 62 private String type; 56 63 57 64 /** … … 72 79 * <p> 73 80 * constructs a new task with a new id. The id is generated using the {@link #getNewId()} 74 * methdod 75 * </p> 76 */ 77 Task() { 78 id = getNewId(); 81 * method 82 * </p> 83 * 84 * @param type the human readable type of the task 85 * 86 * @throws IllegalArgumentException in the case the provided type is null 87 */ 88 Task(String type) { 89 this.id = getNewId(); 90 this.type = type; 91 92 if (type == null) { 93 throw new IllegalArgumentException("type must not be null"); 94 } 79 95 } 80 96 … … 101 117 public int getId() { 102 118 return id; 119 } 120 121 /* (non-Javadoc) 122 * @see de.ugoe.cs.autoquest.tasktrees.treeifc.ITask#getType() 123 */ 124 @Override 125 public String getType() { 126 return type; 103 127 } 104 128 … … 143 167 public synchronized String toString() { 144 168 StringBuffer result = new StringBuffer(); 145 result.append("task "); 169 result.append(type); 170 result.append(" #"); 146 171 result.append(id); 147 172 … … 185 210 /** 186 211 * <p> 212 * internally used to remove an instance from this task 213 * </p> 214 * 215 * @param instance the instance to be removed from this task 216 */ 217 void removeInstance(ITaskInstance instance) { 218 this.instances.remove(instance); 219 } 220 221 /** 222 * <p> 187 223 * internally used to add an instance to this task 188 224 * </p>
Note: See TracChangeset
for help on using the changeset viewer.