Package eu.scape_project.planning.model.tree

Examples of eu.scape_project.planning.model.tree.TreeNode


     * Resets the transformer of all leaves to the default transformer.
     *
     * @see eu.scape_project.planning.IdentifyRequirements.workflow.IdentifyRequirementsAction#resetTransformers()
     */
    private void resetTransformers() {
        TreeNode root = plan.getTree().getRoot();
        for (Leaf leaf : root.getAllLeaves()) {
            /*
             * maybe the scaletype is not set yet -> leaf.setDefaultTransformer
             * has to handle null-values itself
             */
            if ((leaf.getScale() == null) || (leaf.getScale().isDirty())) {
View Full Code Here


            }
        }

        requirementsRoots.clear();
        if (plan.getTree() != null) {
            TreeNode requirementsRoot = plan.getTree().getRoot();
            if (requirementsRoot != null) {
                requirementsRoots.add(requirementsRoot);
                requirementstreeHelper.expandAll(requirementsRoot);
            }
        }
View Full Code Here

                vector.add(0, 0L);
        }
       
        for(int np = 0; np < nodeCount; np++) {
                Long x = vector.get(np);
                TreeNode child = node.getChildren().get(np);
                double oldWeight = child.getWeight();
                double newWeight = oldWeight + (x * STEP -LIMIT);
                child.setWeight(newWeight);
        }

        counter++;
        if(counter >= rounds) {
            counter = 0;
View Full Code Here

            }
        }

        requirementsRoots.clear();
        if (plan.getTree() != null) {
            TreeNode requirementsRoot = plan.getTree().getRoot();
            if (requirementsRoot != null) {
                requirementsRoots.add(requirementsRoot);
                requirementstreeHelper.expandAll(requirementsRoot);
            }
        }
View Full Code Here

     *
     * @param objectToRemove
     *            Node to remove from the objective tree.
     */
    public void removeTreeNode(Object objectToRemove) {
        TreeNode nodeToRemove = (TreeNode) objectToRemove;
        requirementstreeHelper.closeNode(nodeToRemove);
        identifyRequirements.removeTreeNode(nodeToRemove);
    }
View Full Code Here

     */
    @Transient
    private boolean readOnly = false;

    public Plan() {
        TreeNode root = new Node();
        root.setName("Root");
        getTree().setRoot(root);
    }
View Full Code Here

            setDescription(leaf);
            setMIU(leaf);
            return leaf;
        } else {
            // We start with assuming that I'm a Node
            TreeNode node =  new eu.scape_project.planning.model.tree.Node();

            setNameAndWeight(node);
            setDescription(node);
            for (Node n : children) {
                if (hasLeaves && n.isLeaf()) {
View Full Code Here

TOP

Related Classes of eu.scape_project.planning.model.tree.TreeNode

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.