Examples of buildTree()


Examples of edu.msu.cme.rdp.classifier.train.validation.TreeFactory.buildTree()

   
    }
   
    public void calPairwiseSimilaritye(String taxonFile, String trainSeqFile, String testSeqFile) throws IOException, OverlapCheckFailedException{       
        TreeFactory factory = new TreeFactory(new FileReader(taxonFile));
        factory.buildTree();
        // get the lineage of the trainSeqFile 
        LineageSequenceParser trainParser = new LineageSequenceParser(new File(trainSeqFile));
        ArrayList<LineageSequence> trainSeqList = new ArrayList<LineageSequence>();
        while (trainParser.hasNext()) {
            LineageSequence seq = (LineageSequence) trainParser.next();
View Full Code Here

Examples of org.nextime.ion.backoffice.tree.TreeBuilder.buildTree()

          try {
            treeBuilderImpl =
              Class.forName((String) treeBuilders.get(i));
            treeBuilderBase =
              (TreeBuilder) treeBuilderImpl.newInstance();
            treeBuilderBase.buildTree(control, servlet, request);
          } catch (Throwable t) {
            t.printStackTrace(System.out);
          }
        }
      }
View Full Code Here

Examples of org.telluriumsource.misc.Trie.buildTree()

    @Test
    public void testInsert(){
        String[] dictionary = {"a", "an", "and", "andy", "bo", "body", "bodyguard", "some", "someday", "goodluck", "joke"};
        Trie trie = new Trie();
        String[] ndict = randomize(dictionary);
        trie.buildTree(ndict);
        trie.checkAndIndexLevel();
        trie.printMe();
        Node deepest = trie.getDeepestNode();
        assertNotNull(deepest);
        System.out.println("deepest word: " + deepest.getFullWord() + ", level: " + deepest.getLevel());
View Full Code Here

Examples of org.wso2.carbon.governance.wsdl.ui.TreeNodeBuilder.buildTree()

    public void testRetrieveWSDLDataFull() throws Exception {
        String wsdlFileName = "src/test/resources/InstanceRegIdRetriever.wsdl";
        String wsdl11Content = getFileContent(wsdlFileName);
        TreeNodeBuilder builder = new TreeNodeBuilder(wsdlFileName, wsdl11Content);

        TreeNode wsdlTreeNode = builder.buildTree();
        assertEquals(wsdlTreeNode.getKey(), "Wsdl<em>: InstanceRegIdRetriever.wsdl</em>");

        TreeNode[] rootChilds = getTreeChildNodes(wsdlTreeNode);
        assertEquals(rootChilds[0].getKey(), "Documentation");
        assertEquals(rootChilds[1].getKey(), "Version");
View Full Code Here

Examples of org.wso2.carbon.governance.wsdl.ui.TreeNodeBuilder.buildTree()

    public void testRetrieveWSDLDataFullNoTns() throws Exception {
        String wsdlFileName = "src/test/resources/InstanceRegIdRetrieverNoTns.wsdl";
        String wsdl11Content = getFileContent(wsdlFileName);
        TreeNodeBuilder builder = new TreeNodeBuilder(wsdlFileName, wsdl11Content);

        TreeNode wsdlTreeNode = builder.buildTree();
        assertEquals(wsdlTreeNode.getKey(), "Wsdl<em>: InstanceRegIdRetrieverNoTns.wsdl</em>");

        TreeNode[] rootChilds = getTreeChildNodes(wsdlTreeNode);
        assertEquals(rootChilds[0].getKey(), "Documentation");
        assertEquals(rootChilds[1].getKey(), "Version");
View Full Code Here

Examples of org.wso2.carbon.governance.wsdl.ui.TreeNodeBuilder.buildTree()

    public void testRetrieveWSDLDataNoServices() throws Exception {
        String wsdlFileName = "src/test/resources/InstanceRegIdRetriever-NoServices.wsdl";
        String wsdl11Content = getFileContent(wsdlFileName);
        TreeNodeBuilder builder = new TreeNodeBuilder(wsdlFileName, wsdl11Content);

        TreeNode wsdlTreeNode = builder.buildTree();
        assertEquals(wsdlTreeNode.getKey(), "Wsdl<em>: InstanceRegIdRetriever-NoServices.wsdl</em>");

        TreeNode[] rootChilds = getTreeChildNodes(wsdlTreeNode);
        assertEquals(rootChilds[0].getKey(), "Documentation");
        assertEquals(rootChilds[1].getKey(), "Version");
View Full Code Here

Examples of org.wso2.carbon.governance.wsdl.ui.TreeNodeBuilder.buildTree()

    public void testRetrieveWSDLDataNoServicesNoBindings() throws Exception {
        String wsdlFileName = "src/test/resources/InstanceRegIdRetriever-NoServices-NoBindings.wsdl";
        String wsdl11Content = getFileContent(wsdlFileName);
        TreeNodeBuilder builder = new TreeNodeBuilder(wsdlFileName, wsdl11Content);

        TreeNode wsdlTreeNode = builder.buildTree();
        assertEquals(wsdlTreeNode.getKey(),
                "Wsdl<em>: InstanceRegIdRetriever-NoServices-NoBindings.wsdl</em>");

        TreeNode[] rootChilds = getTreeChildNodes(wsdlTreeNode);
        assertEquals(rootChilds[2].getKey(), "Port Type<em>: InstanceRegIdRetrieverPortType [http://instanceid.services.core.carbon.wso2.org]</em>");
View Full Code Here

Examples of org.wso2.carbon.governance.wsdl.ui.TreeNodeBuilder.buildTree()

    public void testRetrieveWSDLDataNoBindings() throws Exception {
        String wsdlFileName = "src/test/resources/InstanceRegIdRetriever-NoBindings.wsdl";
        String wsdl11Content = getFileContent(wsdlFileName);
        TreeNodeBuilder builder = new TreeNodeBuilder(wsdlFileName, wsdl11Content);

        TreeNode wsdlTreeNode = builder.buildTree();
        assertEquals(wsdlTreeNode.getKey(),
                "Wsdl<em>: InstanceRegIdRetriever-NoBindings.wsdl</em>");

        TreeNode[] rootChilds = getTreeChildNodes(wsdlTreeNode);
        assertEquals(rootChilds[2].getKey(), "Service<em>: InstanceRegIdRetriever [http://instanceid.services.core.carbon.wso2.org]</em>");
View Full Code Here

Examples of ru.spbu.math.ontologycomparison.zhukova.visualisation.modelbuilding.tree.ITreeBuilder.buildTree()

            OWLOntology result = OntologyManager.saveOntologies(manager, firstOntologyManager.getOntology(), secondOntologyManager.getOntology());
            onGraphModelBuilt(manager, result);
            this.main.setGraphModel(graphModel);
            ITreeBuilder firstTreeBuilder = new TreeBuilder(firstFile.getName(), firstOntologyGraph[0].getRoots());
            ITreeBuilder secondTreeBuilder = new TreeBuilder(secondFile.getName(), secondOntologyGraph.getRoots());
            this.main.setTrees(firstTreeBuilder.buildTree(main.areUnmappedConceptsVisible(), main.areUnmappedConceptsWithSynsetsVisible()), secondTreeBuilder.buildTree(main.areUnmappedConceptsVisible(), main.areUnmappedConceptsWithSynsetsVisible()));
            int similarityCount = myGraphModelBuilder.getSimilarity();
            this.main.info(String.format(
                    "Comparing ontology %s (blue) to %s (green). (Absolutely equal concepts are colored orange) <br> The similarity is %d %%. <br> To remove a mapping right-click on it",
                    firstFile.getName(), secondFile.getName(), similarityCount)
            );
View Full Code Here

Examples of ru.spbu.math.ontologycomparison.zhukova.visualisation.modelbuilding.tree.TreeBuilder.buildTree()

            OWLOntology result = OntologyManager.saveOntologies(manager, firstOntologyManager.getOntology(), secondOntologyManager.getOntology());
            onGraphModelBuilt(manager, result);
            this.main.setGraphModel(graphModel);
            ITreeBuilder firstTreeBuilder = new TreeBuilder(firstFile.getName(), firstOntologyGraph[0].getRoots());
            ITreeBuilder secondTreeBuilder = new TreeBuilder(secondFile.getName(), secondOntologyGraph.getRoots());
            this.main.setTrees(firstTreeBuilder.buildTree(main.areUnmappedConceptsVisible(), main.areUnmappedConceptsWithSynsetsVisible()), secondTreeBuilder.buildTree(main.areUnmappedConceptsVisible(), main.areUnmappedConceptsWithSynsetsVisible()));
            int similarityCount = myGraphModelBuilder.getSimilarity();
            this.main.info(String.format(
                    "Comparing ontology %s (blue) to %s (green). (Absolutely equal concepts are colored orange) <br> The similarity is %d %%. <br> To remove a mapping right-click on it",
                    firstFile.getName(), secondFile.getName(), similarityCount)
            );
View Full Code Here
TOP
Copyright © 2018 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.