source: branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/ITaskInstanceScopeRule.java @ 1735

Last change on this file since 1735 was 1734, checked in by rkrimmel, 10 years ago

Added automatically created javadoc, still needs to be commented properly though

  • Property svn:executable set to *
File size: 1.9 KB
Line 
1//   Copyright 2012 Georg-August-Universität Göttingen, Germany
2//
3//   Licensed under the Apache License, Version 2.0 (the "License");
4//   you may not use this file except in compliance with the License.
5//   You may obtain a copy of the License at
6//
7//       http://www.apache.org/licenses/LICENSE-2.0
8//
9//   Unless required by applicable law or agreed to in writing, software
10//   distributed under the License is distributed on an "AS IS" BASIS,
11//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12//   See the License for the specific language governing permissions and
13//   limitations under the License.
14
15package de.ugoe.cs.autoquest.tasktrees.temporalrelation;
16
17import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskInstance;
18
19// TODO: Auto-generated Javadoc
20/**
21 * <p>
22 * a task instance scope rule is able to detected temporal relationships between
23 * the children of a task instance provided to the {@link #apply(ITaskInstance)}
24 * method. A rule creates temporal relationships between the task instances,
25 * i.e. substructures in the task tree, if it detects a temporal relationship
26 * and instantiates the temporal relationships accordingly.
27 * </p>
28 *
29 * @author Patrick Harms
30 */
31interface ITaskInstanceScopeRule extends ITemporalRelationshipRule {
32
33        /**
34         * <p>
35         * applies the rule to the given task instance. The returned rule
36         * application result is null, if the rule can not be applied, i.e. it does
37         * not detect a temporal relationship. It returns a rule application result
38         * with a status {@link RuleApplicationStatus#RULE_APPLICATION_FINISHED} if
39         * the rule was applied. The result contains all newly created parent tasks
40         * and task instances.
41         * </p>
42         *
43         * @param taskInstance
44         *            the task instances to apply the rule on
45         *
46         * @return the rule application result as described.
47         */
48        RuleApplicationResult apply(ITaskInstance taskInstance);
49
50}
Note: See TracBrowser for help on using the repository browser.