Package eu.scape_project.planning.model.tree

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


     * @param Node
     *            to attach the Node to.
     * @return New attached Node.
     */
    public Node addNewNode(Node node) {
        Node newNode = new Node();
        node.addChild(newNode);
        // this node has been changed()
        node.touch();
        return newNode;
    }
View Full Code Here


    }
    public boolean createTreeFromPreservationCase(PreservationCase preservationCase) {

        ObjectiveTree newTree = new ObjectiveTree();

        Node root = new Node();
        root.setName(preservationCase.getName());

        newTree.setRoot(root);

        for (ControlPolicy cp : preservationCase.getControlPolicies()) {
View Full Code Here

                    criteriaHierarchy.remove(0);
                    return createLeafInCriteriaHierarchy(n, criteriaHierarchy);
                }
            }

            Node newNode = new Node();
            newNode.setName(criteriaHierarchy.get(0));
            ((Node) node).addChild(newNode);

            criteriaHierarchy.remove(0);

            return createLeafInCriteriaHierarchy(newNode, criteriaHierarchy);
View Full Code Here

     * @param object
     *            Node where the new Leaf should be attached.
     */
    public void addLeaf(Object object) {
        if (object instanceof Node) {
            Node node = (Node) object;
            Leaf newLeaf = identifyRequirements.addNewLeaf(node);
            requirementstreeHelper.expandNode(newLeaf);
        }
    }
View Full Code Here

     * @param object
     *            Node where the new Node should be attached.
     */
    public void addNode(Object object) {
        if (object instanceof Node) {
            Node node = (Node) object;
            Node newNode = identifyRequirements.addNewNode(node);
            requirementstreeHelper.expandNode(newNode);
        }
    }
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

            // leaf.getTransformer());
            for (Values value : leaf.getValueMap().values()) {
                Hibernate.initialize(value);
            }
        } else if (node instanceof Node) {
            Node recnode = (Node) node;
            Hibernate.initialize(node.getChildren());
            for (TreeNode newNode : recnode.getChildren()) {
                initializeNodeRec(newNode);
            }
        }
    }
View Full Code Here

TOP

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

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.