Package org.zkoss.ganttz.data

Examples of org.zkoss.ganttz.data.ITaskFundamentalProperties$IModifications


    private void givenOneTaskWithTwoDependantTasksLastOneWithBiggerOrEqualThanConstraint(
            int daysTask1, int daysSubtask1, int daysSubtask2,
            LocalDate dateConstraintSubtask2) {
        diagramGraphExample = createNiceMock(ICriticalPathCalculable.class);

        ITaskFundamentalProperties task = createTask(START, daysTask1);
        ITaskFundamentalProperties subtask1 = createTask(START, daysSubtask1);
        ITaskFundamentalProperties subtask2 = createTaskWithBiggerOrEqualThanConstraint(
                START, daysSubtask2, dateConstraintSubtask2);

        List<ITaskFundamentalProperties> listOfTasks = Arrays.asList(task,
                subtask1, subtask2);
View Full Code Here


     * </pre>
     */
    private void givenTaskContainerWithOneSubtask(int daysSubtask1) {
        diagramGraphExample = createNiceMock(ICriticalPathCalculable.class);

        ITaskFundamentalProperties taskContainer = createTask(START,
                daysSubtask1);
        ITaskFundamentalProperties subtask1 = createTask(START, daysSubtask1);

        List<ITaskFundamentalProperties> listOfTasks = Arrays.asList(
                taskContainer, subtask1);

        expect(diagramGraphExample.getTasks()).andReturn(listOfTasks)
View Full Code Here

     */
    private void givenTaskContainerWithTwoSubtasks(int daysSubtask1,
            int daysSubtask2) {
        diagramGraphExample = createNiceMock(ICriticalPathCalculable.class);

        ITaskFundamentalProperties taskContainer = createTask(START, Math.max(
                daysSubtask1, daysSubtask2));
        ITaskFundamentalProperties subtask1 = createTask(START, daysSubtask1);
        ITaskFundamentalProperties subtask2 = createTask(START, daysSubtask2);

        List<ITaskFundamentalProperties> listOfTasks = Arrays.asList(
                taskContainer, subtask1, subtask2);

        expect(diagramGraphExample.getTasks()).andReturn(listOfTasks)
View Full Code Here

     */
    private void givenTaskContainerWithOneSubtaskDependingOnOneTask(
            int daysTask1, int daysSubtask1) {
        diagramGraphExample = createNiceMock(ICriticalPathCalculable.class);

        ITaskFundamentalProperties task1 = createTask(START, daysTask1);
        ITaskFundamentalProperties taskContainer = createTask(START,
                daysSubtask1);
        ITaskFundamentalProperties subtask1 = createTask(START, daysSubtask1);

        List<ITaskFundamentalProperties> listOfTasks = Arrays.asList(
                task1,
                taskContainer, subtask1);

View Full Code Here

     */
    private void givenOneTaskDependingOnTaskContainerWithOneSubtask(
            int daysSubtask1, int daysTask1) {
        diagramGraphExample = createNiceMock(ICriticalPathCalculable.class);

        ITaskFundamentalProperties taskContainer = createTask(START,
                daysSubtask1);
        ITaskFundamentalProperties subtask1 = createTask(START, daysSubtask1);
        ITaskFundamentalProperties task1 = createTask(START, daysTask1);

        List<ITaskFundamentalProperties> listOfTasks = Arrays.asList(
                taskContainer, subtask1, task1);

        expect(diagramGraphExample.getTasks()).andReturn(listOfTasks)
View Full Code Here

     * </pre>
     */
    private void givenExampleWithContainers() {
        diagramGraphExample = createNiceMock(ICriticalPathCalculable.class);

        ITaskFundamentalProperties taskContainer1 = createTask(START, 10);
        ITaskFundamentalProperties task10 = createTask(START, 10);
        ITaskFundamentalProperties task5 = createTask(START, 5);

        ITaskFundamentalProperties task8 = createTask(START, 8);

        List<ITaskFundamentalProperties> listOfTasks = Arrays.asList(
                taskContainer1, task10, task5, task8);

        expect(diagramGraphExample.getTasks()).andReturn(listOfTasks)
View Full Code Here

     * </pre>
     */
    private void givenAnotherWithContainers() {
        diagramGraphExample = createNiceMock(ICriticalPathCalculable.class);

        ITaskFundamentalProperties task8 = createTask(START, 8);

        ITaskFundamentalProperties taskContainer1 = createTask(START, 10);
        ITaskFundamentalProperties task5 = createTask(START, 5);
        ITaskFundamentalProperties task10 = createTask(START, 10);

        List<ITaskFundamentalProperties> listOfTasks = Arrays.asList(task8,
                taskContainer1, task5, task10);

        expect(diagramGraphExample.getTasks()).andReturn(listOfTasks)
View Full Code Here

     * </pre>
     */
    private void givenComplexExample() {
        diagramGraphExample = createNiceMock(ICriticalPathCalculable.class);

        ITaskFundamentalProperties taskContainer1 = createTask(START, 10);
        ITaskFundamentalProperties task10 = createTask(START, 10);
        ITaskFundamentalProperties task5 = createTask(START, 5);

        ITaskFundamentalProperties taskContainer2 = createTask(START, 8);
        ITaskFundamentalProperties task8 = createTask(START, 8);
        ITaskFundamentalProperties task4 = createTask(START, 4);

        ITaskFundamentalProperties task9 = createTask(START, 9);

        List<ITaskFundamentalProperties> listOfTasks = Arrays.asList(
                taskContainer1, task10, task5, taskContainer2, task8, task4,
                task9);

View Full Code Here

     */
    private void givenTaskContainerWithAnotherContainer(int daysSubtask1,
            int daysSubtask2) {
        diagramGraphExample = createNiceMock(ICriticalPathCalculable.class);

        ITaskFundamentalProperties taskContainer1 = createTask(START, Math.max(
                daysSubtask1, daysSubtask2));
        ITaskFundamentalProperties subtask1 = createTask(START, daysSubtask1);
        ITaskFundamentalProperties taskContainer2 = createTask(START,
                daysSubtask2);
        ITaskFundamentalProperties subtask2 = createTask(START, daysSubtask2);

        List<ITaskFundamentalProperties> listOfTasks = Arrays.asList(
                taskContainer1, subtask1, taskContainer2, subtask2);

        expect(diagramGraphExample.getTasks()).andReturn(listOfTasks)
View Full Code Here

     * </pre>
     */
    private void givenStartStartContainerExample(int daysTask1, int daysSubTask1) {
        diagramGraphExample = createNiceMock(ICriticalPathCalculable.class);

        ITaskFundamentalProperties task1 = createTask(START, daysTask1);
        ITaskFundamentalProperties taskContainer = createTask(START,
                daysSubTask1);
        ITaskFundamentalProperties subtask1 = createTask(START, daysSubTask1);

        List<ITaskFundamentalProperties> listOfTasks = Arrays.asList(task1,
                taskContainer, subtask1);

        expect(diagramGraphExample.getTasks()).andReturn(listOfTasks)
View Full Code Here

TOP

Related Classes of org.zkoss.ganttz.data.ITaskFundamentalProperties$IModifications

Copyright © 2018 www.massapicom. 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.