"startfinish"));
}
public TaskDependencyConstraint.Collision getCollision() {
TaskDependencyConstraint.Collision result = null;
Task dependee = getDependency().getDependee();
Task dependant = getDependency().getDependant();
GanttCalendar dependeeStart = dependee.getStart();
GanttCalendar dependantEnd = dependant.getEnd();
//
int difference = getDependency().getDifference();
GanttCalendar comparisonDate = dependeeStart.Clone();
comparisonDate.add(difference);
boolean isActive = getDependency().getHardness()==TaskDependency.Hardness.RUBBER ? dependantEnd
.compareTo(comparisonDate) < 0 : dependantEnd
.compareTo(comparisonDate) != 0;
// GanttCalendar acceptableStart = dependant.getStart();
GanttCalendar acceptableStart = dependee.getStart().Clone();
if (isActive) {
Task clone = dependee.unpluggedClone();
TaskMutator mutator = clone.createMutator();
mutator.shift(-dependant.getDuration().getLength());
acceptableStart = clone.getStart();
}
addDelay(acceptableStart);
result = new TaskDependencyConstraint.DefaultCollision(acceptableStart,
TaskDependencyConstraint.Collision.START_LATER_VARIATION,
isActive);