Package eu.planets_project.pp.plato.model

Examples of eu.planets_project.pp.plato.model.Plan


        if (check()) {
            List<Plan> projectList = em.createQuery("select p from Plan p where p.planProperties.id = "+this.projectID).getResultList();

            if (!projectList.isEmpty())
            {
                Plan p = projectList.get(0);
                log.info("Deleting project "+p.getPlanProperties().getId());
                em.remove(p);
                em.flush();
                FacesMessages.instance().add(FacesMessage.SEVERITY_INFO, "Plan " + this.projectID + " deleted!");
            }
            else
View Full Code Here


    public void testPlainExport() throws Exception {
        ProjectExporter exporter = new ProjectExporter();

        String s = exporter.exportToString(TestProjectFactory.createMinimalistTestProject());

        Plan q = TestProjectFactory.createMinimalistTestProject();

        ByteArrayOutputStream buffer = new ByteArrayOutputStream();
        XMLWriter writer = new XMLWriter(buffer, ProjectExporter.prettyFormat);

        assert writer != null;
View Full Code Here

import eu.planets_project.pp.plato.model.values.PositiveFloatValue;
import eu.planets_project.pp.plato.model.values.PositiveIntegerValue;

public class TestProjectFactory {
    static public Plan createMinimalistTestProject() {
        Plan q = new Plan();

        String byteStream = "just a byte stream";

        q.getPlanProperties().setName(
                "Minimalist test project in state x");
        q.getPlanProperties().setDescription(
                "This is Kevin's minimalist project");
        q.getPlanProperties().setAuthor("Kevin Stadler");
        q.getPlanProperties().setOrganization(
                "Vienna University of Technology");

        q.getProjectBasis().setDocumentTypes(
                "textdateien MIT �������, die der kevin alle selbst geschrieben hat :(");

        SampleObject rec1 = new SampleObject();
        rec1.setFullname("sample 1");
        rec1.setShortName("eins");
        rec1.getData().setData(byteStream.getBytes());

        q.getSampleRecordsDefinition().setSamplesDescription(
                "some test samples");

        q.getSampleRecordsDefinition().addRecord(rec1);

        SampleObject rec2 = new SampleObject();
        rec2.setFullname("sample number two");
        rec2.setShortName("zwo");
        rec2.getData().setData(byteStream.getBytes());

        q.getSampleRecordsDefinition().addRecord(rec2);

        Alternative alt1 = Alternative.createAlternative();
        alt1.setName("PDF/A ToolA");
        alt1.setDescription("Convert to PDF/A using this new tool named 'A'");
        q.getAlternativesDefinition().addAlternative(alt1);

        Alternative alt2 = Alternative.createAlternative();
        alt2.setName("PDF/A ToolB");
        alt2.setDescription("Convert to PDF/A using the well-tested tool 'B'");
        q.getAlternativesDefinition().addAlternative(alt2);

        Decision d2 = new Decision();
        d2.setDecision(GoDecision.GO);
        d2.setActionNeeded("also no actions needed");
        d2.setReason("Reason, why no actions are needed? Hmm...");

        q.setDecision(d2);

        Node rootN = new Node();
        rootN.setName("Minimalist root node");

        Node childNode = new Node();
        childNode.setName("Image properties");
        rootN.addChild(childNode);

        Leaf leafWithUnit = new Leaf();
        leafWithUnit.setName("Amount of Pixel");
        leafWithUnit.changeScale(new PositiveIntegerScale());
        leafWithUnit.getScale().setUnit("px");
        childNode.addChild(leafWithUnit);

        Leaf ordinalLeaf = new Leaf();
        ordinalLeaf.setName("Karma");
        OrdinalScale ordinalScale = new OrdinalScale();
        ordinalScale.setRestriction("Good/Bad/Evil");
        ordinalLeaf.changeScale(ordinalScale);
        rootN.addChild(ordinalLeaf);

        Leaf numericLeaf = new Leaf();
        numericLeaf.setName("Filesize (in Relation to Original)");
        numericLeaf.changeScale(new PositiveFloatScale());
        numericLeaf.getScale().setUnit("MB");
        rootN.addChild(numericLeaf);

        Leaf singleLeaf = new Leaf();
        singleLeaf.setName("A Single-Leaf");
        singleLeaf.changeScale(new PositiveFloatScale());
        singleLeaf.getScale().setUnit("tbd");
        singleLeaf.setSingle(true);
        rootN.addChild(singleLeaf);

        Leaf restrictedLeaf = new Leaf();
        restrictedLeaf.setName("IntRange 0-10");
        IntRangeScale range = new IntRangeScale();
        range.setLowerBound(0);
        range.setUpperBound(10);
        restrictedLeaf.changeScale(range);
        rootN.addChild(restrictedLeaf);

        q.getTree().setRoot(rootN);

        q.getTree().initValues(q.getAlternativesDefinition().getAlternatives(),
                q.getSampleRecordsDefinition().getRecords().size());


        int j = 3;
        int alternativeIndex = 0;
        for (Alternative alt : q.getAlternativesDefinition().getAlternatives()) {

            double[] singleLeafValues = { 3.2, 5.2 };
            int[][] leafWithUnitValues = { { 1024, 2048 }, { 2048, 2048 } };
            int[][] ordinalValues = { { 0, 1 }, { 2, 1 } };
            double[][] numericValues = { { 6500.32, 7312, 28 },
                    { 8212.65, 7921.235 } };
            int[][] restrictedValues = { { 8, 5 }, { 3, 7 } };
            ((PositiveFloatValue) singleLeaf.getValueMap().get(alt.getName())
                    .getValue(0)).setValue(singleLeafValues[alternativeIndex]);

            List<String> ordinalOptions = ((OrdinalScale) ordinalLeaf
                    .getScale()).getList();

            for (int i = 0; i < q.getSampleRecordsDefinition().getRecords()
                    .size(); i++) {
                ((PositiveIntegerValue) leafWithUnit.getValueMap().get(
                        alt.getName()).getValue(i))
                        .setValue(leafWithUnitValues[alternativeIndex][i]);
                ((OrdinalValue) ordinalLeaf.getValueMap().get(alt.getName())
                        .getValue(i)).setValue(ordinalOptions
                        .get(ordinalValues[alternativeIndex][i]));
                ((PositiveFloatValue) numericLeaf.getValueMap().get(
                        alt.getName()).getValue(i))
                        .setValue(numericValues[alternativeIndex][i]);
                ((IntRangeValue) restrictedLeaf.getValueMap()
                        .get(alt.getName()).getValue(i))
                        .setValue(restrictedValues[alternativeIndex][i]);
            }
/*
            NumericTransformer nt = (NumericTransformer) singleLeaf
                    .getTransformer();
            for (int i = 0; i < nt.getThresholds().size(); i++) {
                nt.getThresholds().put(i, new Double(2 + i));
            }
            nt = (NumericTransformer) leafWithUnit.getTransformer();
            for (int i = 0; i < nt.getThresholds().size(); i++) {
                nt.getThresholds().set(i, new Double(Math.pow(2, i + 8)));
            }
            nt = (NumericTransformer) numericLeaf.getTransformer();
            for (int i = 0; i < nt.getThresholds().size(); i++) {
                nt.getThresholds().set(i, new Double(4000 + i * 1000));
            }
            nt.setMode(TransformationMode.LINEAR); // !!!

            nt = (NumericTransformer) restrictedLeaf.getTransformer();
            for (int i = 0; i < nt.getThresholds().size(); i++) {
                nt.getThresholds().set(i, new Double(1 + 2 * i));
            }
            OrdinalTransformer ot = (OrdinalTransformer) ordinalLeaf
                    .getTransformer();
            Map<String, TargetValueObject> map = ot.getMapping();

            int i = 4;
            for (String s : ordinalScale.getList()) {
                TargetValueObject o = new TargetValueObject();
                // 3 ordinal values, first -> 4, second -> 2, third -> 0
                o.setValue(i);
                map.put(s, o);
                i -= 2;
            }
*/
            j += 7;
            alternativeIndex++;
        }
        q.getTree().initWeights();
        q.getState().setValue(5);
        return q;
    }
View Full Code Here

                invokeMethod("#{newProject.createProject}");
            }

            @Override
            protected void renderResponse() throws Exception {
                Plan p = (Plan)getValue("#{selectedPlan}");

                assert p == null;
            }

        }.run();
View Full Code Here

                // Contexts.getSessionContext().set("selection", pp.get(2)); // we load the ONB project

                invokeMethod("#{loadPlan.load}");

                Plan p = (Plan)getValue("#{selectedPlan}");

                assert p != null;

                System.out.println("Selected project: " + p.getPlanProperties().getName());

                invokeMethod("#{defineSampleRecords.enter}");
            }

            @Override
            protected void renderResponse() {

                System.out.println ("Number of objects: " + getValue("#{selectedPlan.projectBasis.numberOfObjects}"));
            }

        }.run();

        new FacesRequest("") {

            @Override
            protected void updateModelValues() throws Exception {

                DataModel records = (DataModel)Contexts.getSessionContext().get("records");

                assert records != null;

                List<SampleObject> r = (List<SampleObject>)records.getWrappedData();

                assert r.size() > 0;

                System.out.println("Nr of sample records: " + r.size());

                for (int i = 0; i < records.getRowCount(); i++) {
                    records.setRowIndex(i);
                    System.out.println("Sample Record: " + ((SampleObject)records.getRowData()).getFullname());
                }

                Contexts.getSessionContext().set("record", r.get(0));
            }

            @Override
            protected void invokeApplication() throws Exception {

                invokeMethod("#{defineSampleRecords.askRemoveRecord}");
            }

            @Override
            protected void renderResponse() throws Exception {

                SampleObject toDelete = (SampleObject)Contexts.getSessionContext().get("record");

                int allowRemove = Integer.parseInt(Contexts.getSessionContext().get("allowRemove").toString());

                assert toDelete.getId() == allowRemove;
            }

        }.run();

        new FacesRequest("") {

            @Override
            public void updateModelValues() throws Exception {

            }

            @Override
            protected void invokeApplication() throws Exception {

                DataModel records = (DataModel)Contexts.getSessionContext().get("records");

                int nrOfRecords = records.getRowCount();

                invokeMethod("#{defineSampleRecords.removeRecord}");

                records = (DataModel)Contexts.getSessionContext().get("records");

                assert nrOfRecords == records.getRowCount()+1;
            }

            @Override
            protected void renderResponse() throws Exception {

                System.out.println ("View ID to render: " +getViewId() );
                assert false == isValidationFailure();
            }

        }.run();

        new FacesRequest("") {

            @Override
            public void updateModelValues() throws Exception {

                String file = "test content";

                Contexts.getSessionContext().set("fileName", "testFile");
                Contexts.getSessionContext().set("contentType", "txt");
                Contexts.getSessionContext().set("file", file.getBytes());

            }

            @Override
            protected void invokeApplication() throws Exception {

                DataModel records = (DataModel)Contexts.getSessionContext().get("records");

                int sampleRecordCount = records.getRowCount();

                String ret = (String)invokeMethod("#{defineSampleRecords.upload}");

                records = (DataModel)Contexts.getSessionContext().get("records");

                records.setRowIndex(1);
                ((SampleObject)records.getRowData()).setShortName("just a short name");

                assert sampleRecordCount+1 == records.getRowCount();

                ret = (String)invokeMethod("#{defineSampleRecords.proceed}");

                System.out.println ("return of proceed: " + ret + " sample record count: " + (sampleRecordCount+1));
            }

            @Override
            protected void renderResponse() throws Exception {

            }

        }.run();

        new FacesRequest("workflow/identrequirements.xhtml") {

            @Override
            protected void applyRequestValues() throws Exception {

                ValueBinding vb = getFacesContext().getApplication().createValueBinding("#{identifyRequirements.table}");

                assert vb != null;

                Class clazz = vb.getType(getFacesContext());

                Constructor c = clazz.getConstructor(null);

                assert c != null;


                // assert rowKeySet != null;

                System.out.println ("Type=" +clazz.getSimpleName());

                IdentifyRequirementsAction ir = (IdentifyRequirementsAction)getInstance(IdentifyRequirementsAction.class);

                assert ir != null;

                ir.setValidator(new MockTreeValidator());

            }

            @Override
            protected void invokeApplication() throws Exception {

                invokeMethod("#{identifyRequirements.proceed}");
            }

            @Override
            protected void renderResponse() throws Exception {
                assert false == isValidationFailure();
            }

        }.run();

        new FacesRequest("workflow/definealternatives.xhtml") {

            @Override
            protected void invokeApplication() throws Exception {

                invokeMethod("#{defineAlternatives.proceed}");
            }

            @Override
            protected void renderResponse() throws Exception {
                assert false == isValidationFailure();
            }

        }.run();

        new FacesRequest("workflow/gonogo.xhtml") {

            @Override
            protected void invokeApplication() throws Exception {

                invokeMethod("#{gonogo.proceed}");
            }

            @Override
            protected void renderResponse() throws Exception {
                assert false == isValidationFailure();
            }

        }.run();

        new FacesRequest("workflow/developexperiment.xhtml") {

            @Override
            protected void invokeApplication() throws Exception {

                invokeMethod("#{devexperiments.proceed}");
            }

            @Override
            protected void renderResponse() throws Exception {
                assert false == isValidationFailure();
            }

        }.run();

        new FacesRequest("workflow/runexperiment.xhtml") {

            @Override
            protected void invokeApplication() throws Exception {

//                try{
                invokeMethod("#{runexperiments.proceed}");
/*                } catch(Exception e) {

                    String name = "nothing";


                    EJBException ex = (EJBException)e.getCause();
                    if (ex != null) {

                        EntityExistsException ex2 = (EntityExistsException)ex.getCause();

                        System.out.println ("EntityExistsException: " + ex2.getMessage());

                        ConstraintViolationException ex3 = (ConstraintViolationException)ex2.getCause();

                        System.out.println("Constrain name = " + ex3.getConstraintName());
                        System.out.println("SQL: " + ex3.getSQL());

                        name = ex3.getCause().getClass().getName();
                    }

                    //name = e.getClass().getName();
                    System.out.println("** CONSTRAINT VIOLATION EXCEPTION: " + name);

                    //System.out.println("constraint name: " + e.getConstraintName());

                    //System.out.println("SQL: " + e.getSQL());
                }*/

            }

            @Override
            protected void renderResponse() throws Exception {
                assert false == isValidationFailure();
            }

        }.run();


        new FacesRequest("workflow/evaluateexperiment.xhtml") {

            @Override
            protected void updateModelValues() throws Exception {
                Plan p = (Plan)getValue("#{selectedPlan}");

                assert p != null;

                List<Leaf> leaves = p.getTree().getRoot().getAllLeaves();

                assert leaves.size() > 0;

                Contexts.getSessionContext().set("leaves", leaves);
            }


            @Override
            protected void invokeApplication() throws Exception {
                invokeMethod("#{evalexperiments.approve}");
            }

            @Override
            protected void renderResponse() throws Exception {
                assert false == isValidationFailure();

                List<Leaf> leaves = (List<Leaf>)Contexts.getSessionContext().get("leaves");

                assert leaves != null && leaves.size() > 0;

                Plan p = (Plan)getValue("#{selectedPlan}");

                assert p != null;

                List<Alternative> alternatives = p.getAlternativesDefinition().getConsideredAlternatives();

                for (Leaf leaf : leaves) {

                    for (Alternative alter : alternatives) {

                        if (leaf.isSingle()) {

                            // if (leaf.getScale().getType() == ScaleType.ordinal) {

                                Values vs = leaf.getValueMap().get(alter.getName());

                                assert vs != null;

                                assert vs.getList().get(0) != null;
                            // } else {

                            // }
                        } else {

                            int i = 0;
                            for (SampleObject record : p.getSampleRecordsDefinition().getRecords()) {

                                Values vs = leaf.getValueMap().get(alter.getName());

                                assert vs.getList().get(i++) != null;
                            }
View Full Code Here

    }

    @Test
    public void testProjectPersistence() {
        ObjectiveTree t = new TreeLoader().load("data/trees/pdfa.xml");
        Plan p = new Plan();
        p.getPlanProperties().setName("Plato-Testproject number");
        p.getPlanProperties().setAuthor("Christoph Becker");

        Decision d = new Decision();
        d.setDecision(GoDecision.GO);
        d.setActionNeeded("nothing");
        d.setReason("This is just SOO great, oh man!");

        p.setDecision(d);
        p.getPlanProperties().setDescription("This is the best and best and even better test project one can imagine.");
        p.getProjectBasis().setDocumentTypes("This is a test documentation string.");
        p.getPlanProperties().setOrganization("ICW - Icebears for Climate warming");
        p.getSampleRecordsDefinition().setSamplesDescription("yes yes i know");
        p.getState().setValue(PlanState.ANALYSED);
        p.setTree(t);
        Alternative alt = new Alternative();
        alt.setName("Alternative Name");
        p.getAlternativesDefinition().getAlternatives().add(alt);
        p.getAlternativesDefinition().getAlternatives().add(alt);

        em.persist(p);

        int i = p.getId();

    }
View Full Code Here

        try {

            HttpSession session = request.getSession(true);

            Plan selectedPlan = (Plan)session.getAttribute("selectedPlan");

            if (selectedPlan == null) {
                response.sendRedirect("/plato/project/loadPlan.seam");
                return null;
            }
View Full Code Here

        if (list.size() != 1) {
            FacesMessages.instance().add(FacesMessage.SEVERITY_ERROR,
                    "An unexpected error has occured while loading the plan with properties"+pid);
            return 0;
        }
        Plan p = list.get(0);
        List<String> alternativeNames = new ArrayList<String>();
        for (Alternative a: p.getAlternativesDefinition().getAlternatives()) {
            alternativeNames.add(a.getName());
        }
        int number = p.getTree().removeLooseValues(alternativeNames,p.getSampleRecordsDefinition().getRecords().size());
        log.info("cleaned up values for plan "+p.getPlanProperties().getName()+":");
        log.info("removed "+number+" Value(s) instances from this project");
         if (number > 0) {
            em.persist(p.getTree());
        }
        em.clear();
        p = null;
        list.clear();
        list = null;
View Full Code Here

                projects.setRowIndex(0);

                // ... and load it
                invokeMethod("#{loadPlan.load}");

                Plan p = (Plan)getValue("#{selectedPlan}");

                assert p != null;

                invokeMethod("#{defineSampleRecords.enter}");
            }

        }.run();

        new FacesRequest("") {

            @Override
            protected void updateModelValues() throws Exception {

                DataModel records = (DataModel)Contexts.getSessionContext().get("records");

                assert records != null;

                List<SampleObject> r = (List<SampleObject>)records.getWrappedData();

                assert r.size() > 0;

                System.out.println("Nr of sample records: " + r.size());

                for (int i = 0; i < records.getRowCount(); i++) {
                    records.setRowIndex(i);
                    System.out.println("Sample Record: " + ((SampleObject)records.getRowData()).getFullname());
                }

                Contexts.getSessionContext().set("record", r.get(0));
            }

            @Override
            protected void invokeApplication() throws Exception {

                ListDataModel records = (ListDataModel)getInstance("records");

                assert records.getRowCount() > 0;

                records.setRowIndex(0);

                invokeMethod("#{defineSampleRecords.askRemoveRecord}");
            }

            @Override
            protected void renderResponse() throws Exception {

                SampleObject toDelete = (SampleObject)Contexts.getSessionContext().get("record");

                int allowRemove = Integer.parseInt(Contexts.getSessionContext().get("allowRemove").toString());

                assert toDelete.getId() == allowRemove;
            }

        }.run();

        new FacesRequest("") {

            @Override
            protected void invokeApplication() throws Exception {

                DataModel records = (DataModel)Contexts.getSessionContext().get("records");

                int nrOfRecords = records.getRowCount();

                invokeMethod("#{defineSampleRecords.removeRecord}");

                records = (DataModel)Contexts.getSessionContext().get("records");

                assert nrOfRecords == records.getRowCount()+1;
            }

            @Override
            protected void renderResponse() throws Exception {

                assert false == isValidationFailure();
            }

        }.run();
        /*
         * save before adding a new record
         *
        new FacesRequest("") {

            @Override
            protected void invokeApplication() throws Exception {

                DataModel records = (DataModel)Contexts.getSessionContext().get("records");

                int sampleRecordCount = records.getRowCount();

                String ret = (String)invokeMethod("#{defineSampleRecords.save}");
                records = (DataModel)Contexts.getSessionContext().get("records");
                assert sampleRecordCount == records.getRowCount();
            }

        }.run();
       
*/
        /*
         * add a new record and proceed to next step
         */
        new FacesRequest("") {

            @Override
            public void updateModelValues() throws Exception {

                String file = "test content";

                Contexts.getSessionContext().set("fileName", "testFile");
                Contexts.getSessionContext().set("contentType", "txt");
                Contexts.getSessionContext().set("file", file.getBytes());

            }

            @Override
            protected void invokeApplication() throws Exception {

                DataModel records = (DataModel)Contexts.getSessionContext().get("records");

                int sampleRecordCount = records.getRowCount();

                String ret = (String)invokeMethod("#{defineSampleRecords.upload}");

                records = (DataModel)Contexts.getSessionContext().get("records");

                records.setRowIndex(1);
                ((SampleObject)records.getRowData()).setShortName("just a short name");

                assert sampleRecordCount+1 == records.getRowCount();

                ret = (String)invokeMethod("#{defineSampleRecords.proceed}");

                System.out.println ("return of proceed: " + ret + " sample record count: " + (sampleRecordCount+1));
            }

        }.run();

        new FacesRequest("workflow/identrequirements.xhtml") {

            @Override
            protected void applyRequestValues() throws Exception {

                ValueBinding vb = getFacesContext().getApplication().createValueBinding("#{identifyRequirements.table}");

                assert vb != null;

                Class clazz = vb.getType(getFacesContext());

                Constructor c = clazz.getConstructor(null);

                assert c != null;

                System.out.println ("Type=" +clazz.getSimpleName());

                IdentifyRequirementsAction ir = (IdentifyRequirementsAction)getInstance(IdentifyRequirementsAction.class);

                assert ir != null;

                ir.setValidator(new MockTreeValidator());

            }

            @Override
            protected void invokeApplication() throws Exception {

                invokeMethod("#{identifyRequirements.proceed}");
            }

            @Override
            protected void renderResponse() throws Exception {
                assert false == isValidationFailure();
            }

        }.run();

        new FacesRequest("workflow/definealternatives.xhtml") {

            @Override
            protected void invokeApplication() throws Exception {

                invokeMethod("#{defineAlternatives.proceed}");
            }

            @Override
            protected void renderResponse() throws Exception {
                assert false == isValidationFailure();
            }

        }.run();

        new FacesRequest("workflow/gonogo.xhtml") {

            @Override
            protected void invokeApplication() throws Exception {

                invokeMethod("#{gonogo.proceed}");
            }

            @Override
            protected void renderResponse() throws Exception {
                assert false == isValidationFailure();
            }

        }.run();

        new FacesRequest("workflow/developexperiment.xhtml") {

            @Override
            protected void invokeApplication() throws Exception {

                invokeMethod("#{devexperiments.proceed}");
            }

            @Override
            protected void renderResponse() throws Exception {
                assert false == isValidationFailure();
            }

        }.run();

        new FacesRequest("workflow/runexperiment.xhtml") {

            @Override
            protected void invokeApplication() throws Exception {

                invokeMethod("#{runexperiments.proceed}");
            }

            @Override
            protected void renderResponse() throws Exception {
                assert false == isValidationFailure();
            }

        }.run();


        new FacesRequest("workflow/evaluateexperiment.xhtml") {

            @Override
            protected void updateModelValues() throws Exception {
                Plan p = (Plan)getValue("#{selectedPlan}");

                assert p != null;

                List<Leaf> leaves = p.getTree().getRoot().getAllLeaves();

                assert leaves.size() > 0;

                Contexts.getSessionContext().set("leaves", leaves);
            }


            @Override
            protected void invokeApplication() throws Exception {
                invokeMethod("#{evalexperiments.approve}");
            }

            @Override
            protected void renderResponse() throws Exception {
                assert false == isValidationFailure();

                List<Leaf> leaves = (List<Leaf>)Contexts.getSessionContext().get("leaves");

                assert leaves != null && leaves.size() > 0;

                Plan p = (Plan)getValue("#{selectedPlan}");

                assert p != null;

                List<Alternative> alternatives = p.getAlternativesDefinition().getConsideredAlternatives();

                for (Leaf leaf : leaves) {

                    for (Alternative alter : alternatives) {

                        if (leaf.isSingle()) {

                            // if (leaf.getScale().getType() == ScaleType.ordinal) {

                                Values vs = leaf.getValueMap().get(alter.getName());

                                assert vs != null;

                                assert vs.getList().get(0) != null;
                            // } else {

                            // }
                        } else {

                            int i = 0;
                            for (SampleObject record : p.getSampleRecordsDefinition().getRecords()) {

                                Values vs = leaf.getValueMap().get(alter.getName());

                                assert vs.getList().get(i++) != null;
                            }
View Full Code Here

    }
   
    public String startFastTrackEvaluation() {
        unlockProject();

        selectedPlan = new Plan();
        selectedPlan.getPlanProperties().setAuthor(user.getFullName());
        selectedPlan.getPlanProperties().setPrivateProject(true);
        selectedPlan.getPlanProperties().setOwner(user.getUsername());

        // set Fast Track properties
View Full Code Here

TOP

Related Classes of eu.planets_project.pp.plato.model.Plan

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.