Changeset 1281
- Timestamp:
- 07/26/13 10:12:47 (11 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-tasktrees-test/src/test/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/AbstractTemporalRelationshipTC.java
r1190 r1281 143 143 } 144 144 145 assertTrue(status != RuleApplicationStatus.FEASIBLE);146 147 145 if ((result != null) && (result.getNewlyCreatedTaskInstances() != null)) { 148 146 for (int i = result.getNewlyCreatedTaskInstances().size() - 1; i >= 0; i--) { … … 230 228 assertNotNull(result); 231 229 assertNotNull(result.getRuleApplicationStatus()); 232 assertTrue(result.getRuleApplicationStatus() != RuleApplicationStatus.FEASIBLE);233 230 234 231 ITaskInstanceList expectedList = decoder.decode(expectedOutputSpec); -
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/ITemporalRelationshipRule.java
r1146 r1281 17 17 /** 18 18 * <p> 19 * TODO comment 19 * a temporal relationship rule is the main interface for all rules applied for generating 20 * temporal relationships in a task tree. It is just a marker interface. More important are the 21 * sub interfaces {@link ISessionScopeRule} and {@link ITaskInstanceListScopeRule}. 20 22 * </p> 21 23 * -
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/RuleApplicationStatus.java
r1146 r1281 25 25 enum RuleApplicationStatus { 26 26 FINISHED, 27 // TODO drop feasible28 FEASIBLE,29 27 NOT_APPLIED; 30 28 } -
trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/RuleUtils.java
r1146 r1281 23 23 /** 24 24 * <p> 25 * TODO comment25 * provides some convenience methods for rule application 26 26 * </p> 27 27 * … … 30 30 class RuleUtils { 31 31 32 /** */ 32 /** 33 * <p> 34 * counter for generating unique ids. Starts at 0 for each new program start 35 * </p> 36 */ 33 37 private static int idCounter = 0; 34 38 35 39 /** 40 * <p> 41 * generates a sub sequence for a specified range of elements in the provided task instances 42 * list. 43 * </p> 44 * 45 * @param parent the list of which the range shall be extracted 46 * @param startIndex the start index of the range 47 * @param endIndex the end index of the range (inclusive) 48 * @param model the task model (required for instantiating the sub sequence) 49 * @param taskFactory the task factory used for instantiating the sub sequence 50 * @param taskBuilder the task builder to perform changes in the task structure 36 51 * 52 * @return a task instance representing the requested sub sequence 37 53 */ 38 54 static ITaskInstance getSubSequenceInRange(ITaskInstanceList parent, … … 53 69 54 70 /** 71 * <p> 72 * replaces a sub sequence for a specified range of elements in the provided task instances 73 * list by a sub task instance 74 * </p> 75 * 76 * @param parent the list of which the range shall be replaced 77 * @param startIndex the start index of the range 78 * @param endIndex the end index of the range (inclusive) 79 * @param model the task model (required for instantiating the sub sequence) 80 * @param taskFactory the task factory used for instantiating the sub sequence 81 * @param taskBuilder the task builder to perform changes in the task structure 55 82 * 83 * @return the replacement for the range 56 84 */ 57 85 static ITaskInstance createNewSubSequenceInRange(ITaskInstanceList parent, … … 76 104 77 105 /** 78 * 106 * <p> 107 * returns the next available id (uses the id counter) 108 * </p> 109 * 110 * @return the next available id 79 111 */ 80 112 static synchronized String getNewId() { … … 83 115 84 116 /** 85 * 117 * <p> 118 * prevent instantiation 119 * </p> 86 120 */ 87 121 private RuleUtils() {
Note: See TracChangeset
for help on using the changeset viewer.