Examples of Assignment


Examples of com.projity.pm.assignment.Assignment

    while (i.hasNext()) {
      task = (NormalTask)i.next();
      if (task.validateConstraints())
        addRepaired(task);
      if (task.getAssignments().isEmpty()) {
        Assignment ass = task.addDefaultAssignment();
        ass.setDirty(true);
        task.setDirty(true);
        ErrorLogger.logOnce("NoAssignment","Repaired task with no assignments",null);
        System.out.println("added default ass for " + task);
        addRepaired(task);
      }
View Full Code Here

Examples of com.webobjects.directtoweb.Assignment

        for(Enumeration e = dictionary().keyEnumerator(); e.hasMoreElements(); ) {
            String key = (String)e.nextElement();
            if(!"componentLevelKeys".equals(key)) {
                Object value = dictionary().valueForKey(key);
                EOQualifier q = EOQualifier.qualifierWithQualifierFormat( "pageConfiguration = '" + _pageConfiguration + "'" , null);
                Assignment a = createAssigment(key, value);
                arr.addObject(new Rule(level, q, a));
            }
        }
        NSArray keys = (NSArray)_dictionary.valueForKey("displayPropertyKeys");
        if(keys != null && keys.count() > 0) {
View Full Code Here

Examples of de.danet.an.workflow.assignment.Assignment

            val = activity.description();
            maybeAddTextNode(description, val);
            Collection assignments = activity.assignments();
            Iterator assignmentIterator = assignments.iterator();
            while (assignmentIterator.hasNext()) {
                Assignment assignment = (Assignment) iterator.next();
                WfResource resource = assignment.assignee();
                SOAPElement assignee = activityNode.addChildElement("Assignee",
                        Consts.WFXML_PREFIX);
                val = resource.resourceName();
                if (val == null) {
                    assignee.addTextNode(resource.resourceKey());
View Full Code Here

Examples of de.timefinder.data.algo.Assignment

        assertEquals(0, eventRaster.getNextFree(0, 1));
        assertEquals(LENGTH, eventRaster.getLastFreePlus1(0));
        assertEquals(LENGTH, eventRaster.getLastFreePlus1(LENGTH - 1));
        assertEquals(-1, eventRaster.getLastFreePlus1(LENGTH));

        Assignment ass = newAssignment(0, 5);

        assertTrue(eventRaster.add(ass));
        assertEquals(5, eventRaster.getNextFree(0, 1));

        eventRaster.remove(ass);
        try {
            // should NOT add an event which stays in conflicts to root event
            eventRaster.setRoot(ass);
            Assignment tmpEvent = newAssignment(3, 1);
            eventRaster.add(tmpEvent);
            assertTrue(false);
        } catch (Throwable ex) {
            assertTrue(true);
        }
View Full Code Here

Examples of de.timefinder.data.algo.Assignment

        }
    }

    @Test
    public void testNextFree2() {
        Assignment event1 = newAssignment(0, 5);
        assertTrue(eventRaster.add(event1));
        assertEquals(5, eventRaster.getNextFree(0, 1));

        // allow conflicting between the other events -> important
        Assignment event2 = newAssignment(4, 3);
        assertTrue(eventRaster.add(event2));
        assertEquals(7, eventRaster.getNextFree(0, 1));
        assertTrue(eventRaster.remove(event2));

        // external duration change is supported only by some implementations
View Full Code Here

Examples of de.timefinder.data.algo.Assignment

        assertEquals(15, eventRaster.getNextFree(15, 1));
    }

    @Test
    public void testNextFree3() {
        Assignment event2 = newAssignment(5, 1);
        eventRaster.add(event2);

        Assignment event1 = newAssignment(0, 5);
        eventRaster.add(event1);

        Assignment event3 = newAssignment(9, 1);
        eventRaster.add(event3);

        assertEquals(6, eventRaster.getNextFree(0, 1));
        assertEquals(7, eventRaster.getNextFree(7, 1));
        assertEquals(8, eventRaster.getNextFree(8, 1));
View Full Code Here

Examples of de.timefinder.data.algo.Assignment

        assertEquals(12, eventRaster.getNextFree(12, 4));
    }

    @Test
    public void testNextFree4() {
        Assignment ev1 = newAssignment(0, 4);
        Assignment ev2 = newAssignment(1, 4);
        Assignment ev3 = newAssignment(5, 1);

        assertTrue(eventRaster.add(ev1));
        assertTrue(eventRaster.add(ev2));
        assertTrue(eventRaster.add(ev3));
View Full Code Here

Examples of de.timefinder.data.algo.Assignment

        assertEquals(6, eventRaster.getNextFree(0, 1));
    }

    @Test
    public void testNextFree5() {
        Assignment ev1 = newAssignment(0, 3);
        Assignment ev2 = newAssignment(2, 3);
        Assignment ev3 = newAssignment(1, 5);
        Assignment ev4 = newAssignment(6, 1);

        assertTrue(eventRaster.add(ev1));
        assertTrue(eventRaster.add(ev2));
        assertTrue(eventRaster.add(ev3));
        assertTrue(eventRaster.add(ev4));
View Full Code Here

Examples of de.timefinder.data.algo.Assignment

        assertEquals(7, eventRaster.getNextFree(0, 1));
    }

    @Test
    public void testNextFree6() {
        Assignment ev1 = newAssignment(0, 10);
        Assignment ev2 = newAssignment(2, 1);
        Assignment ev3 = newAssignment(8, 1);

        assertTrue(eventRaster.add(ev1));
        assertTrue(eventRaster.add(ev2));
        assertTrue(eventRaster.add(ev3));
View Full Code Here

Examples of de.timefinder.data.algo.Assignment

        assertEquals(10, eventRaster.getNextFree(3, 1));
    }

    @Test
    public void testFirstFree() {
        Assignment event1 = newAssignment(1, 5);
        assertTrue(eventRaster.add(event1));
        assertEquals(0, eventRaster.getNextFree(0, 1));
    }
View Full Code Here
TOP
Copyright © 2015 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.