Package de.timefinder.data

Examples of de.timefinder.data.Feature


        return person;
    }

    public void createFeature() {
        Feature feature = new Feature();
        getFeatureDao().attach(feature);
        feature.setName("Feature " + feature.getId());
    }
View Full Code Here


            if (loc.getCapacity() == null)
                logger.warn("location has no capacity:" + loc.getName());
            else
                tfLoc.setCapacity(loc.getCapacity().intValue());

            Feature building = getOrCreateBuilding(loc.getBuilding());
            if (building != null)
                tfLoc.addFeature(building);
        }

        /***** CourseSections into Events (and Persons) ****/
 
View Full Code Here

        Assignment event1 = newAssignment(0, 1);
        assertNotNull(aManager.assign(event1));
        assertEquals(loc1, event1.getLocation());
        assertEquals(1, aManager.getAll().size());

        Feature loc1Feature = newFeature("special");
        loc1.addFeature(loc1Feature);

        Location locForEvent1 = newLocation("loc2", 5);
        allLocations.add(locForEvent1);
        aManager = new AssignmentManager(0, allLocations);
View Full Code Here

    public void testTestAssignmentWithSpecialEvent() {
        Location loc2 = newLocation("loc2", 5);
        allLocations.add(loc2);
        aManager = new AssignmentManager(0, allLocations);

        Feature special = newFeature("special");
        loc1.addFeature(special);
        Assignment ass1 = newAssignment("1", 0, 1);
        ass1.getEvent().addFeature(special);
        Assignment ass2 = newAssignment("2", 0, 1);
        ass2.getEvent().addFeature(special);
View Full Code Here

    @Test
    public void testOrder() {
        Location loc2 = newLocation("loc2", 5);
        allLocations.add(loc2);

        Feature special = newFeature("loc1");
        loc1.addFeature(special);
        aManager = new AssignmentManager(0, allLocations);

        Assignment ass1 = newAssignment("1", 0, 1);
        Assignment ass2 = newAssignment("2", 0, 1);
View Full Code Here

    @Test
    public void testAssignedLocationAfterRollback2() {
        Location loc2 = newLocation("loc2", 5);
        allLocations.add(loc2);
        Feature special = newFeature("loc1");
        loc1.addFeature(special);

        aManager = new AssignmentManager(0, allLocations);

        Assignment ass1 = newAssignment("1", 0, 1);
View Full Code Here

        int slotsPerWeek = 6;
        int slotsPerDay = 6;
        settings.setTimeslotsPerDay(slotsPerDay);
        settings.setNumberOfDays(slotsPerWeek / slotsPerDay);

        Feature loc1Feature = newFeature("special");

        Assignment ass1 = newAssignment("1", -1, 2);
        ass1.getEvent().addFeature(loc1Feature);
        Assignment ass2 = newAssignment("2", -1, 2);
        Assignment ass3 = newAssignment("3", -1, 1);
View Full Code Here

        return Feature.class;
    }

    @Override
    public Feature create() {
        return new Feature();
    }
View Full Code Here

        loc2.setCapacity(20);
        loc3 = new Location();
        loc3.setCapacity(20);
        loc4 = new Location();
        loc4.setCapacity(20);
        feature1 = new Feature();
        feature2 = new Feature();
        feature3 = new Feature();
        feature4 = new Feature();

        ev1.setName("event1");
        ev2.setName("event2");
        ev3.setName("event3");
        ev4.setName("event4");
View Full Code Here

    }

    @Test
    public void addFeature() {
        Location room = newLocation("test");
        Feature f = newFeature("feature");
        room.addFeature(f);
        assertEquals(f, room.getFeatures().iterator().next());

        Feature feature = new Feature();
        instance.addFeature(feature);
        instance.addFeature(feature);
        assertEquals(1, instance.getFeatures().size());
    }
View Full Code Here

TOP

Related Classes of de.timefinder.data.Feature

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.