Generify pt 1
This commit is contained in:
@@ -17,14 +17,17 @@
|
||||
|
||||
package tenor;
|
||||
|
||||
public class SingularToSingularTaskRelationship extends TaskRelationship implements ISingularChildTaskRelationship, ISingularParentTaskRelationship {
|
||||
public class SingularToSingularTaskRelationship
|
||||
extends TaskRelationship<SingularTaskNode, ISingularTask>
|
||||
implements ISingularChildTaskRelationship<SingularTaskNode>, ISingularParentTaskRelationship<ISingularTask> {
|
||||
|
||||
@Override
|
||||
public double allocatedPriority() {
|
||||
return parent().priorityAllocatedToChild(this);
|
||||
return parentTask().priorityAllocatedToChild(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public double cost() {
|
||||
return child().cost();
|
||||
return childTask().cost();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user