Generify pt 1

This commit is contained in:
Brady
2018-10-30 15:51:19 -05:00
parent c887b27df9
commit f2f806669c
27 changed files with 146 additions and 93 deletions

View File

@@ -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();
}
}