Examples of FinishStartConstraintImpl


Examples of net.sourceforge.ganttproject.task.dependency.constraint.FinishStartConstraintImpl

        supertask.setStart(new GanttCalendar(2000, 01, 01));
        supertask.setEnd(new GanttCalendar(2000, 01, 04));
        //
        TaskDependency dep = taskManager
                .getDependencyCollection()
                .createDependency(task2, task1, new FinishStartConstraintImpl());
        //
        task1.setEnd(new GanttCalendar(2000, 01, 04));
        RecalculateTaskScheduleAlgorithm alg = taskManager
                .getAlgorithmCollection().getRecalculateTaskScheduleAlgorithm();
        alg.run(task1);
View Full Code Here

Examples of net.sourceforge.ganttproject.task.dependency.constraint.FinishStartConstraintImpl

        dependee.setStart(new GanttCalendar(1999, Calendar.NOVEMBER, 15));
        dependee.setEnd(new GanttCalendar(1999, Calendar.NOVEMBER, 16));
        //
        TaskDependency dep = getTaskManager().getDependencyCollection()
                .createDependency(dependant, dependee,
                        new FinishStartConstraintImpl());
        TaskDependency.ActivityBinding binding = dep.getActivityBinding();
        assertEquals(binding.getDependantActivity(),
                dependant.getActivities()[0]);
        assertEquals(binding.getDependeeActivity(), dependee.getActivities()[0]);
        //
View Full Code Here

Examples of net.sourceforge.ganttproject.task.dependency.constraint.FinishStartConstraintImpl

        TaskManager taskMgr = getTaskManager();
        Task task1 = taskMgr.createTask(1);
        Task task2 = taskMgr.createTask(2);
        TaskDependency dep = taskMgr
                .getDependencyCollection()
                .createDependency(task1, task2, new FinishStartConstraintImpl());
        //
        assertDependenciesCollectionContainsDependency(task1, dep);
        assertDependenciesCollectionContainsDependency(task2, dep);
    }
View Full Code Here

Examples of net.sourceforge.ganttproject.task.dependency.constraint.FinishStartConstraintImpl

        TaskManager taskMgr = getTaskManager();
        Task task1 = taskMgr.createTask(1);
        Task task2 = taskMgr.createTask(2);
        TaskDependency dep = taskMgr
                .getDependencyCollection()
                .createDependency(task1, task2, new FinishStartConstraintImpl());
        //
        dep.delete();
        assertDependenciesCollectionDoesntContainDependency(task1, dep);
        assertDependenciesCollectionDoesntContainDependency(task2, dep);
    }
View Full Code Here

Examples of net.sourceforge.ganttproject.task.dependency.constraint.FinishStartConstraintImpl

        Task task2 = taskMgr.createTask(2);
        Task task3 = taskMgr.createTask(3);
        //
        TaskDependency dep1 = taskMgr
                .getDependencyCollection()
                .createDependency(task1, task2, new FinishStartConstraintImpl());
        TaskDependency dep2 = taskMgr
                .getDependencyCollection()
                .createDependency(task1, task3, new FinishStartConstraintImpl());
        //
        dep1.delete();
        assertDependenciesCollectionContainsDependency(task1, dep2);

    }
View Full Code Here

Examples of net.sourceforge.ganttproject.task.dependency.constraint.FinishStartConstraintImpl

        Task task2 = taskMgr.createTask(2);
        Task task3 = taskMgr.createTask(3);
        //
        TaskDependency dep1 = taskMgr
                .getDependencyCollection()
                .createDependency(task1, task2, new FinishStartConstraintImpl());
        TaskDependency dep2 = taskMgr
                .getDependencyCollection()
                .createDependency(task2, task3, new FinishStartConstraintImpl());
        //
        assertDependencySliceContainsDependency(task2
                .getDependenciesAsDependant(), dep2);
        assertDependencySliceDoesntContainDependency(task2
                .getDependenciesAsDependant(), dep1);
View Full Code Here

Examples of net.sourceforge.ganttproject.task.dependency.constraint.FinishStartConstraintImpl

        TaskManager taskMgr = getTaskManager();
        Task task1 = taskMgr.createTask(1);
        Task task2 = taskMgr.createTask(2);
        TaskDependency dep1 = taskMgr
                .getDependencyCollection()
                .createDependency(task1, task2, new FinishStartConstraintImpl());
        TaskDependency dep2 = null;
        try {
            dep2 = taskMgr.getDependencyCollection().createDependency(task1,
                    task2, new FinishStartConstraintImpl());
        } catch (TaskDependencyException e) {
        }
        assertNull(
                "Wow, we can create dependency between the same tasks twice!",
                dep2);
View Full Code Here

Examples of net.sourceforge.ganttproject.task.dependency.constraint.FinishStartConstraintImpl

    }

    public TaskDependency createDependency(Task dependant, Task dependee)
            throws TaskDependencyException{
        return createDependency(dependant, dependee,
                new FinishStartConstraintImpl());
    }
View Full Code Here

Examples of net.sourceforge.ganttproject.task.dependency.constraint.FinishStartConstraintImpl

            }

            try {
                TaskDependency dep = myTaskManager.getDependencyCollection()
                        .createDependency(dependant, dependee,
                                new FinishStartConstraintImpl());
                dep
                        .setConstraint(myTaskManager
                                .createConstraint(ds.dependType));
                dep.setDifference(ds.difference);
                if (myContext.getTasksWithLegacyFixedStart().contains(dependant)) {
View Full Code Here

Examples of net.sourceforge.ganttproject.task.dependency.constraint.FinishStartConstraintImpl

        }

    private void createDependency(final Task dependee) {
      try {
                getTaskManager().getDependencyCollection().createDependency(
                    myDependant, dependee, new FinishStartConstraintImpl());
            } catch (TaskDependencyException e) {
              getUIFacade().showErrorDialog(e);
            }
            getProject().setModified();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.