source: trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/TaskIdentityComparator.java @ 1285

Last change on this file since 1285 was 1285, checked in by pharms, 11 years ago
  • improved performance of task instance trie generation by using different symbol management strategies while creating the trie. This performance improvement is significant and allows to detect tasks now in a much faster manner.
File size: 1.4 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.taskequality.TaskEquality;
18import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskInstance;
19
20/**
21 * TODO comment
22 */
23class TaskIdentityComparator extends TaskComparator {
24
25    /**  */
26    private static final long serialVersionUID = 1L;
27   
28    /**
29     * <p>
30     * TODO: comment
31     * </p>
32     *
33     * @param minimalNodeEquality
34     */
35    public TaskIdentityComparator() {
36        super(TaskEquality.IDENTICAL);
37    }
38   
39    /* (non-Javadoc)
40     * @see SymbolComparator#equals(Object, Object)
41     */
42    @Override
43    public boolean equals(ITaskInstance taskInstance1, ITaskInstance taskInstance2) {
44        return taskInstance1.getTask() == taskInstance2.getTask();
45    }       
46
47}
Note: See TracBrowser for help on using the repository browser.